Sha256: 9bc8925e70f62c4c3ead38cc77d4e87f36c50020d935e4277b881feb8035549b
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::RolesAPI.new role_id = "role_id_example" # String | The ID of the role. body = DatadogAPIClient::V2::RelationshipToUser.new({ data: DatadogAPIClient::V2::RelationshipToUserData.new({ id: "00000000-0000-0000-2345-000000000000", type: DatadogAPIClient::V2::UsersType::USERS }) }) # RelationshipToUser | begin # Add a user to a role result = api_instance.add_user_to_role(role_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling RolesAPI->add_user_to_role: #{e}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.8.0 | examples/generated/v2/roles/AddUserToRole.rb |
datadog_api_client-1.7.0 | examples/generated/v2/roles/AddUserToRole.rb |