GetKeys
Get the DNSKEY and DS records of DNSSEC-signed managed zones. For more information see the official documentation and API.
Using GetKeys
function getKeys(args: GetKeysArgs, opts?: InvokeOptions): Promise<GetKeysResult>function get_keys(managed_zone=None, project=None, opts=None)func GetKeys(ctx *Context, args *GetKeysArgs, opts ...InvokeOption) (*GetKeysResult, error)public static class GetKeys {
public static Task<GetKeysResult> InvokeAsync(GetKeysArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Managed
Zone string The name or id of the Cloud DNS managed zone.
- Project string
The ID of the project in which the resource belongs. If
projectis not provided, the provider project is used.
- Managed
Zone string The name or id of the Cloud DNS managed zone.
- Project string
The ID of the project in which the resource belongs. If
projectis not provided, the provider project is used.
- managed
Zone string The name or id of the Cloud DNS managed zone.
- project string
The ID of the project in which the resource belongs. If
projectis not provided, the provider project is used.
- managed_
zone str The name or id of the Cloud DNS managed zone.
- project str
The ID of the project in which the resource belongs. If
projectis not provided, the provider project is used.
GetKeys Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Signing List<GetKeys Keys Key Signing Key> A list of Key-signing key (KSK) records. Structure is documented below. Additionally, the DS record is provided:
- Managed
Zone string - Project string
- Zone
Signing List<GetKeys Keys Zone Signing Key> A list of Zone-signing key (ZSK) records. Structure is documented below.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Signing []GetKeys Keys Key Signing Key A list of Key-signing key (KSK) records. Structure is documented below. Additionally, the DS record is provided:
- Managed
Zone string - Project string
- Zone
Signing []GetKeys Keys Zone Signing Key A list of Zone-signing key (ZSK) records. Structure is documented below.
- id string
The provider-assigned unique ID for this managed resource.
- key
Signing GetKeys Keys Key Signing Key[] A list of Key-signing key (KSK) records. Structure is documented below. Additionally, the DS record is provided:
- managed
Zone string - project string
- zone
Signing GetKeys Keys Zone Signing Key[] A list of Zone-signing key (ZSK) records. Structure is documented below.
- id str
The provider-assigned unique ID for this managed resource.
- key_
signing_ List[Getkeys Keys Key Signing Key] A list of Key-signing key (KSK) records. Structure is documented below. Additionally, the DS record is provided:
- managed_
zone str - project str
- zone_
signing_ List[Getkeys Keys Zone Signing Key] A list of Zone-signing key (ZSK) records. Structure is documented below.
Supporting Types
GetKeysKeySigningKey
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Algorithm string
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- Creation
Time string The time that this resource was created in the control plane. This is in RFC3339 text format.
- Description string
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- Digests
List<Get
Keys Key Signing Key Digest Args> A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- Ds
Record string The DS record based on the KSK record. This is used when delegating DNSSEC-signed subdomains.
- Id string
Unique identifier for the resource; defined by the server.
- Is
Active bool Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- Key
Length int Length of the key in bits. Specified at creation time then immutable.
- Key
Tag int The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- Public
Key string Base64 encoded public half of this key.
- Algorithm string
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- Creation
Time string The time that this resource was created in the control plane. This is in RFC3339 text format.
- Description string
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- Digests
[]Get
Keys Key Signing Key Digest A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- Ds
Record string The DS record based on the KSK record. This is used when delegating DNSSEC-signed subdomains.
- Id string
Unique identifier for the resource; defined by the server.
- Is
Active bool Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- Key
Length int Length of the key in bits. Specified at creation time then immutable.
- Key
Tag int The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- Public
Key string Base64 encoded public half of this key.
- algorithm string
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- creation
Time string The time that this resource was created in the control plane. This is in RFC3339 text format.
- description string
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- digests
Get
Keys Key Signing Key Digest[] A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- ds
Record string The DS record based on the KSK record. This is used when delegating DNSSEC-signed subdomains.
- id string
Unique identifier for the resource; defined by the server.
- is
Active boolean Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- key
Length number Length of the key in bits. Specified at creation time then immutable.
- key
Tag number The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- public
Key string Base64 encoded public half of this key.
- algorithm str
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- creation_
time str The time that this resource was created in the control plane. This is in RFC3339 text format.
- description str
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- digests
List[Get
Keys Key Signing Key Digest] A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- ds
Record str The DS record based on the KSK record. This is used when delegating DNSSEC-signed subdomains.
- id str
Unique identifier for the resource; defined by the server.
- is
Active bool Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- key
Length float Length of the key in bits. Specified at creation time then immutable.
- key
Tag float The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- public_
key str Base64 encoded public half of this key.
GetKeysKeySigningKeyDigest
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetKeysZoneSigningKey
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Algorithm string
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- Creation
Time string The time that this resource was created in the control plane. This is in RFC3339 text format.
- Description string
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- Digests
List<Get
Keys Zone Signing Key Digest Args> A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- Id string
Unique identifier for the resource; defined by the server.
- Is
Active bool Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- Key
Length int Length of the key in bits. Specified at creation time then immutable.
- Key
Tag int The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- Public
Key string Base64 encoded public half of this key.
- Algorithm string
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- Creation
Time string The time that this resource was created in the control plane. This is in RFC3339 text format.
- Description string
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- Digests
[]Get
Keys Zone Signing Key Digest A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- Id string
Unique identifier for the resource; defined by the server.
- Is
Active bool Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- Key
Length int Length of the key in bits. Specified at creation time then immutable.
- Key
Tag int The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- Public
Key string Base64 encoded public half of this key.
- algorithm string
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- creation
Time string The time that this resource was created in the control plane. This is in RFC3339 text format.
- description string
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- digests
Get
Keys Zone Signing Key Digest[] A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- id string
Unique identifier for the resource; defined by the server.
- is
Active boolean Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- key
Length number Length of the key in bits. Specified at creation time then immutable.
- key
Tag number The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- public
Key string Base64 encoded public half of this key.
- algorithm str
String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time. Possible values are
ecdsap256sha256,ecdsap384sha384,rsasha1,rsasha256, andrsasha512.- creation_
time str The time that this resource was created in the control plane. This is in RFC3339 text format.
- description str
A mutable string of at most 1024 characters associated with this resource for the user’s convenience.
- digests
List[Get
Keys Zone Signing Key Digest] A list of cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Each contains: -
digest- The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. -type- Specifies the algorithm used to calculate this digest. Possible values aresha1,sha256andsha384- id str
Unique identifier for the resource; defined by the server.
- is
Active bool Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
- key
Length float Length of the key in bits. Specified at creation time then immutable.
- key
Tag float The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone’s DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B.
- public_
key str Base64 encoded public half of this key.
GetKeysZoneSigningKeyDigest
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.