Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi
oci.Dns.getTsigKey
Explore with Pulumi AI
This data source provides details about a specific Tsig Key resource in Oracle Cloud Infrastructure DNS service.
Gets information about the specified TSIG key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTsigKey = oci.Dns.getTsigKey({
    tsigKeyId: testTsigKeyOciDnsTsigKey.id,
});
import pulumi
import pulumi_oci as oci
test_tsig_key = oci.Dns.get_tsig_key(tsig_key_id=test_tsig_key_oci_dns_tsig_key["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dns.GetTsigKey(ctx, &dns.GetTsigKeyArgs{
			TsigKeyId: testTsigKeyOciDnsTsigKey.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testTsigKey = Oci.Dns.GetTsigKey.Invoke(new()
    {
        TsigKeyId = testTsigKeyOciDnsTsigKey.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Dns.DnsFunctions;
import com.pulumi.oci.Dns.inputs.GetTsigKeyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testTsigKey = DnsFunctions.getTsigKey(GetTsigKeyArgs.builder()
            .tsigKeyId(testTsigKeyOciDnsTsigKey.id())
            .build());
    }
}
variables:
  testTsigKey:
    fn::invoke:
      function: oci:Dns:getTsigKey
      arguments:
        tsigKeyId: ${testTsigKeyOciDnsTsigKey.id}
Using getTsigKey
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTsigKey(args: GetTsigKeyArgs, opts?: InvokeOptions): Promise<GetTsigKeyResult>
function getTsigKeyOutput(args: GetTsigKeyOutputArgs, opts?: InvokeOptions): Output<GetTsigKeyResult>def get_tsig_key(tsig_key_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTsigKeyResult
def get_tsig_key_output(tsig_key_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetTsigKeyResult]func GetTsigKey(ctx *Context, args *GetTsigKeyArgs, opts ...InvokeOption) (*GetTsigKeyResult, error)
func GetTsigKeyOutput(ctx *Context, args *GetTsigKeyOutputArgs, opts ...InvokeOption) GetTsigKeyResultOutput> Note: This function is named GetTsigKey in the Go SDK.
public static class GetTsigKey 
{
    public static Task<GetTsigKeyResult> InvokeAsync(GetTsigKeyArgs args, InvokeOptions? opts = null)
    public static Output<GetTsigKeyResult> Invoke(GetTsigKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTsigKeyResult> getTsigKey(GetTsigKeyArgs args, InvokeOptions options)
public static Output<GetTsigKeyResult> getTsigKey(GetTsigKeyArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Dns/getTsigKey:getTsigKey
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Tsig
Key stringId  - The OCID of the target TSIG key.
 
- Tsig
Key stringId  - The OCID of the target TSIG key.
 
- tsig
Key StringId  - The OCID of the target TSIG key.
 
- tsig
Key stringId  - The OCID of the target TSIG key.
 
- tsig_
key_ strid  - The OCID of the target TSIG key.
 
- tsig
Key StringId  - The OCID of the target TSIG key.
 
getTsigKey Result
The following output properties are available:
- Algorithm string
 - TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute. Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha512. For more information on these algorithms, see RFC 4635.
 - Compartment
Id string - The OCID of the compartment containing the TSIG key.
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Dictionary<string, string>
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
 - Id string
 - The OCID of the resource.
 - Name string
 - A globally unique domain name identifying the key for a given pair of hosts.
 - Secret string
 - A base64 string encoding the binary shared secret.
 - Self string
 - The canonical absolute URL of the resource.
 - State string
 - The current state of the resource.
 - Time
Created string - The date and time the resource was created, expressed in RFC 3339 timestamp format.
 - Time
Updated string - The date and time the resource was last updated, expressed in RFC 3339 timestamp format.
 - Tsig
Key stringId  
- Algorithm string
 - TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute. Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha512. For more information on these algorithms, see RFC 4635.
 - Compartment
Id string - The OCID of the compartment containing the TSIG key.
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - map[string]string
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
 - Id string
 - The OCID of the resource.
 - Name string
 - A globally unique domain name identifying the key for a given pair of hosts.
 - Secret string
 - A base64 string encoding the binary shared secret.
 - Self string
 - The canonical absolute URL of the resource.
 - State string
 - The current state of the resource.
 - Time
Created string - The date and time the resource was created, expressed in RFC 3339 timestamp format.
 - Time
Updated string - The date and time the resource was last updated, expressed in RFC 3339 timestamp format.
 - Tsig
Key stringId  
- algorithm String
 - TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute. Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha512. For more information on these algorithms, see RFC 4635.
 - compartment
Id String - The OCID of the compartment containing the TSIG key.
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Map<String,String>
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
 - id String
 - The OCID of the resource.
 - name String
 - A globally unique domain name identifying the key for a given pair of hosts.
 - secret String
 - A base64 string encoding the binary shared secret.
 - self String
 - The canonical absolute URL of the resource.
 - state String
 - The current state of the resource.
 - time
Created String - The date and time the resource was created, expressed in RFC 3339 timestamp format.
 - time
Updated String - The date and time the resource was last updated, expressed in RFC 3339 timestamp format.
 - tsig
Key StringId  
- algorithm string
 - TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute. Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha512. For more information on these algorithms, see RFC 4635.
 - compartment
Id string - The OCID of the compartment containing the TSIG key.
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - {[key: string]: string}
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
 - id string
 - The OCID of the resource.
 - name string
 - A globally unique domain name identifying the key for a given pair of hosts.
 - secret string
 - A base64 string encoding the binary shared secret.
 - self string
 - The canonical absolute URL of the resource.
 - state string
 - The current state of the resource.
 - time
Created string - The date and time the resource was created, expressed in RFC 3339 timestamp format.
 - time
Updated string - The date and time the resource was last updated, expressed in RFC 3339 timestamp format.
 - tsig
Key stringId  
- algorithm str
 - TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute. Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha512. For more information on these algorithms, see RFC 4635.
 - compartment_
id str - The OCID of the compartment containing the TSIG key.
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Mapping[str, str]
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
 - id str
 - The OCID of the resource.
 - name str
 - A globally unique domain name identifying the key for a given pair of hosts.
 - secret str
 - A base64 string encoding the binary shared secret.
 - self str
 - The canonical absolute URL of the resource.
 - state str
 - The current state of the resource.
 - time_
created str - The date and time the resource was created, expressed in RFC 3339 timestamp format.
 - time_
updated str - The date and time the resource was last updated, expressed in RFC 3339 timestamp format.
 - tsig_
key_ strid  
- algorithm String
 - TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute. Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha512. For more information on these algorithms, see RFC 4635.
 - compartment
Id String - The OCID of the compartment containing the TSIG key.
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Map<String>
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
 - id String
 - The OCID of the resource.
 - name String
 - A globally unique domain name identifying the key for a given pair of hosts.
 - secret String
 - A base64 string encoding the binary shared secret.
 - self String
 - The canonical absolute URL of the resource.
 - state String
 - The current state of the resource.
 - time
Created String - The date and time the resource was created, expressed in RFC 3339 timestamp format.
 - time
Updated String - The date and time the resource was last updated, expressed in RFC 3339 timestamp format.
 - tsig
Key StringId  
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.