Get-AzCosmosDBRestorableDatabaseAccount
Gets the restorable database account object
Syntax
Get-AzCosmosDBRestorableDatabaseAccount
[-Location <String>]
[-DatabaseAccountInstanceId <String>]
[-DatabaseAccountName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Gets the list of all restorable database account objects in the given account, or a specific restorable database account object with the given instanceId and location
Examples
Example 1
Get-AzCosmosDBRestorableDatabaseAccount
Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
DatabaseAccountInstanceId : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Location : West US
DatabaseAccountName : deleted-account-1
CreationTime : 8/2/2020 10:23:00 PM
DeletionTime : 8/2/2020 10:26:13 PM
OldestRestorableTime : 8/2/2020 10:23:00 PM
ApiType : Sql
RestorableLocations : {West US, East US}
Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/eastus/restorableDatabaseAccounts/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f
DatabaseAccountInstanceId : bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f
Location : East US
DatabaseAccountName : deleted-account-2
CreationTime : 8/2/2020 6:32:32 PM
DeletionTime : 8/2/2020 6:34:48 PM
OldestRestorableTime : 8/2/2020 6:32:32 PM
ApiType : Sql
RestorableLocations : {Australia Southeast, East US, West US}
Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/cccc2c2c-dd3d-ee4e-ff5f-aaaaaa6a6a6a
DatabaseAccountInstanceId : cccc2c2c-dd3d-ee4e-ff5f-aaaaaa6a6a6a
Location : West US
DatabaseAccountName : live-account-1
CreationTime : 8/2/2020 6:34:35 PM
DeletionTime :
OldestRestorableTime : 8/2/2020 6:34:35 PM
ApiType : MongoDB
RestorableLocations : {West US}
Lists all the restorable database accounts in the current subscription
Example 1
Get-AzCosmosDBRestorableDatabaseAccount -Location "West US" -DatabaseAccountInstanceId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
DatabaseAccountInstanceId : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Location : West US
DatabaseAccountName : deleted-account-1
CreationTime : 8/2/2020 10:23:00 PM
DeletionTime : 8/2/2020 10:26:13 PM
OldestRestorableTime : 8/2/2020 10:23:00 PM
ApiType : Sql
RestorableLocations : {West US, East US}
Gets the restorable database account with the given DatabaseInstanceId in the given ARM location
Parameters
-DatabaseAccountInstanceId
The instance Id of the CosmosDB database account.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DatabaseAccountName
Name of the Cosmos DB database account.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
Name of the Location in string.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure PowerShell