Get-AzCosmosDBTableRoleDefinition
Hämtar CosmosDB-rolldefinitionen.
Syntax
Get-AzCosmosDBTableRoleDefinition
-ResourceGroupName <String>
-AccountName <String>
[-Id <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzCosmosDBTableRoleDefinition
[-Id <String>]
-ParentObject <PSDatabaseAccountGetResults>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzCosmosDBTableRoleDefinition hämtar listan över alla befintliga CosmosDB-tabellrolldefinitioner för en viss ResourceGroupName, AccountName och hämtar en enda CosmosDB-tabelldatabas för en viss ResourceGroupName, AccountName och ID. ID kan antingen vara fullständigt kvalificerat eller bara guid.
Exempel
Exempel 1
Get-AzCosmosDBTableRoleDefinition -AccountName accountName -ResourceGroupName resourceGroupName -Id id
RoleName : roleName
Id : /subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/tableRoleDefinitions/id
Type : CustomRole
Permissions : {Microsoft.Azure.Management.CosmosDB.Models.Permission}
AssignableScopes : {/subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/accountName}
Parametrar
-AccountName
Namnet på Cosmos DB-databaskontot.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Id
Rolldefinitions-ID.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ParentObject
CosmosDB-kontoobjekt
Typ: | PSDatabaseAccountGetResults |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceGroupName
Namn på resursgrupp.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
None
Utdata
Microsoft.Azure.Commands.CosmosDB.Models.PSTableRoleDefinitionGetResults
Azure PowerShell