Sha256: fef23c251b52f5f697d3ad95c92409b39409e5f47b229a32186ff4d0b078a896
Contents?: true
Size: 746 Bytes
Versions: 5
Compression:
Stored size: 746 Bytes
Contents
# Create role returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::RolesAPI.new body = DatadogAPIClient::V2::RoleCreateRequest.new({ data: DatadogAPIClient::V2::RoleCreateData.new({ attributes: DatadogAPIClient::V2::RoleCreateAttributes.new({ name: "developers", }), relationships: DatadogAPIClient::V2::RoleRelationships.new({ permissions: DatadogAPIClient::V2::RelationshipToPermissions.new({ data: [ DatadogAPIClient::V2::RelationshipToPermissionData.new({ type: DatadogAPIClient::V2::PermissionsType::PERMISSIONS, }), ], }), }), type: DatadogAPIClient::V2::RolesType::ROLES, }), }) p api_instance.create_role(body)
Version data entries
5 entries across 5 versions & 1 rubygems