Sha256: a3dedf604d1d3b8b2c52981305aa6c6d416e910254930eae02d05343acf537aa
Contents?: true
Size: 842 Bytes
Versions: 2
Compression:
Stored size: 842 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new service_account_id = "00000000-0000-1234-0000-000000000000" # String | The ID of the service account. body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({ data: DatadogAPIClient::V2::ApplicationKeyCreateData.new({ attributes: DatadogAPIClient::V2::ApplicationKeyCreateAttributes.new({ name: "Application Key for managing dashboards" }), type: DatadogAPIClient::V2::ApplicationKeysType::APPLICATION_KEYS }) }) # ApplicationKeyCreateRequest | begin # Create an application key for this service account result = api_instance.create_service_account_application_key(service_account_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling ServiceAccountsAPI->create_service_account_application_key: #{e}" end
Version data entries
2 entries across 2 versions & 1 rubygems