Sha256: f60a99a7bd3227b202a57128d4390cfa7896d922b2a64858f1fd567b8e9a9062
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 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 # Remove a user from a role result = api_instance.remove_user_from_role(role_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling RolesAPI->remove_user_from_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/RemoveUserFromRole.rb |
datadog_api_client-1.7.0 | examples/generated/v2/roles/RemoveUserFromRole.rb |