Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
dnsKeyId
string
The identifier of the requested DnsKey.
Query parameters
Parameters
clientOperationId
string
For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
digestType
string
An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of DnsKey.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[[["\u003cp\u003eThis endpoint retrieves the details of a specific DnsKey using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires three path parameters: \u003ccode\u003eproject\u003c/code\u003e, \u003ccode\u003emanagedZone\u003c/code\u003e, and \u003ccode\u003ednsKeyId\u003c/code\u003e, to identify the specific resource.\u003c/p\u003e\n"],["\u003cp\u003eTwo optional query parameters, \u003ccode\u003eclientOperationId\u003c/code\u003e and \u003ccode\u003edigestType\u003c/code\u003e, can be included for additional control and information in the request.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response returns an instance of the DnsKey resource.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize the request, one of the listed OAuth scopes, related to cloud platform and DNS operations, is required.\u003c/p\u003e\n"]]],[],null,["# Method: dnsKeys.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nFetches the representation of an existing DnsKey.\n\n### HTTP request\n\n`GET https://dns.googleapis.com/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [DnsKey](/dns/docs/reference/rest/v1beta2/dnsKeys#DnsKey).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/cloud-platform.read-only`\n- `\n https://www.googleapis.com/auth/ndev.clouddns.readonly`\n- `\n https://www.googleapis.com/auth/ndev.clouddns.readwrite`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/external/authorization-gcp)."]]