Sha256: 910a7b16aa01a248bc20480ba81a074da3765cc42b0136f7adfc16e06be58f6a

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::KeyManagementAPI.new
api_key_id = "api_key_id_example" # String | The ID of the API key.
opts = {
  include: "created_by,modified_by", # String | Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`.
}

begin
  # Get API key
  result = api_instance.get_api_key(api_key_id, opts)
  p result
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling KeyManagementAPI->get_api_key: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 examples/generated/v2/key-management/GetApiKey.rb