Sha256: 6ab69d30c6c8048d1390af30b30126c651140b9a30bbf7c8c8d283f718141b99

Contents?: true

Size: 368 Bytes

Versions: 17

Compression:

Stored size: 368 Bytes

Contents

# Create a user returns "User created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::UsersAPI.new

body = DatadogAPIClient::V1::User.new({
  access_role: DatadogAPIClient::V1::AccessRole::READ_ONLY,
  disabled: false,
  email: "test@datadoghq.com",
  handle: "test@datadoghq.com",
  name: "test user",
})
p api_instance.create_user(body)

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v1/users/CreateUser.rb
datadog_api_client-2.28.1 examples/v1/users/CreateUser.rb
datadog_api_client-2.27.1 examples/v1/users/CreateUser.rb
datadog_api_client-2.26.1 examples/v1/users/CreateUser.rb
datadog_api_client-2.26.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.25.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.24.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.22.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.21.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.20.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.19.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.18.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.17.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.16.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.15.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.14.0 examples/v1/users/CreateUser.rb
datadog_api_client-2.13.0 examples/v1/users/CreateUser.rb