Share via


PermissionProperties Class

Definition

Represents a permission in the Azure Cosmos DB service.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonPermissionPropertiesConverter))]
public class PermissionProperties
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonPermissionPropertiesConverter))>]
type PermissionProperties = class
Public Class PermissionProperties
Inheritance
PermissionProperties
Attributes

Constructors

PermissionProperties(String, PermissionMode, CosmosContainer, Nullable<PartitionKey>)

Initialize a new instance of the PermissionProperties with permssion to CosmosContainer.

PermissionProperties(String, PermissionMode, CosmosContainer, PartitionKey, String)

Initialize a new instance of the PermissionProperties with permssion to cosnmos item.

Properties

ETag

Gets the entity tag associated with the resource from the Azure Cosmos DB service.

Id

Gets the Id of the resource in the Azure Cosmos DB service.

LastModified

Gets the last modified time stamp associated with PermissionProperties from the Azure Cosmos DB service.

PermissionMode

Gets the permission mode in the Azure Cosmos DB service.

ResourcePartitionKey

Gets optional partition key value for the permission in the Azure Cosmos DB service. A permission applies to resources when two conditions are met: 1. ResourceUri is prefix of resource's link. For example "/dbs/mydatabase/colls/mycollection" applies to "/dbs/mydatabase/colls/mycollection" and "/dbs/mydatabase/colls/mycollection/docs/mydocument" 2. ResourcePartitionKey is superset of resource's partition key. For example absent/empty partition key is superset of all partition keys.

ResourceUri

Gets the self-uri of resource to which the permission applies in the Azure Cosmos DB service.

Token

Gets the access token granting the defined permission from the Azure Cosmos DB service.

Applies to