Sha256: 8c91381d1ff5360512472ce58c01fe23011609edc2ff82d7b6b013e64b42931c
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::KeyManagementAPI.new app_key_id = "app_key_id_example" # String | The ID of the application key. body = DatadogAPIClient::V2::ApplicationKeyUpdateRequest.new({ data: DatadogAPIClient::V2::ApplicationKeyUpdateData.new({ attributes: DatadogAPIClient::V2::ApplicationKeyUpdateAttributes.new, id: "00112233-4455-6677-8899-aabbccddeeff", type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS }) }) # ApplicationKeyUpdateRequest | begin # Edit an application key result = api_instance.update_application_key(app_key_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling KeyManagementAPI->update_application_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/UpdateApplicationKey.rb |