Sha256: 48efc439a946b107162997687d83dde34ea41e784928b9d598090f11e30c3b63

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 KB

Contents

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::KeyManagementAPI.new
opts = {
  page_size: 10, # Integer | Size for a given page.
  page_number: 0, # Integer | Specific page number to return.
  sort: DatadogAPIClient::V2::APIKeysSort::CREATED_AT_ASCENDING, # APIKeysSort | API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.
  filter: "filter_example", # String | Filter API keys by the specified string.
  filter_created_at_start: "2020-11-24T18:46:21+00:00", # String | Only include API keys created on or after the specified date.
  filter_created_at_end: "2020-11-24T18:46:21+00:00", # String | Only include API keys created on or before the specified date.
  filter_modified_at_start: "2020-11-24T18:46:21+00:00", # String | Only include API keys modified on or after the specified date.
  filter_modified_at_end: "2020-11-24T18:46:21+00:00", # String | Only include API keys modified on or before the specified date.
  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 all API keys
  result = api_instance.list_api_keys(opts)
  p result
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling KeyManagementAPI->list_api_keys: #{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/ListApiKeys.rb