Sha256: 09996271a39ef1d1208855927bec9aeef1c97ddec35d6e71f4a928e951e562dd

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 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 owned by current user
  result = api_instance.update_current_user_application_key(app_key_id, body)
  p result
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling KeyManagementAPI->update_current_user_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/UpdateCurrentUserApplicationKey.rb