Sha256: 8da3984270b9fd6c51f4b98f303a2cf7b878d4c9bce66d3b941a5fdbd0271808

Contents?: true

Size: 675 Bytes

Versions: 22

Compression:

Stored size: 675 Bytes

Contents

# Create an application key for current user returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::KeyManagementAPI.new

body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({
  data: DatadogAPIClient::V2::ApplicationKeyCreateData.new({
    attributes: DatadogAPIClient::V2::ApplicationKeyCreateAttributes.new({
      name: "Application Key for managing dashboards",
      scopes: [
        "dashboards_read",
        "dashboards_write",
        "dashboards_public_share",
      ],
    }),
    type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS,
  }),
})
p api_instance.create_current_user_application_key(body)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
datadog_api_client-2.16.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.15.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.14.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.13.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.12.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.11.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.10.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.9.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.8.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.7.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.6.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.5.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.4.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.3.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.2.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.1.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.0.2 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.0.1 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-2.0.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb
datadog_api_client-1.11.0 examples/v2/key-management/CreateCurrentUserApplicationKey.rb