Sha256: 2600105147c51b580d46d2bb4d87320a372cc445461b9d4a00f1dc9bde8d174c
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::UsersAPI.new body = DatadogAPIClient::V2::ServiceAccountCreateRequest.new({ data: DatadogAPIClient::V2::ServiceAccountCreateData.new({ attributes: DatadogAPIClient::V2::ServiceAccountCreateAttributes.new({ email: "jane.doe@example.com", service_account: true }), type: DatadogAPIClient::V2::UsersType::USERS }) }) # ServiceAccountCreateRequest | begin # Create a service account result = api_instance.create_service_account(body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling UsersAPI->create_service_account: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v2/users/CreateServiceAccount.rb |