你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Recovery points - Get access token for Crr - Get Access Token
Returns the Access token for communication between BMS and Protection service
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/accessToken?api-version=2023-01-15
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
container
|
path | True |
string |
Name of the container. |
fabric
|
path | True |
string |
Fabric name associated with the container. |
protected
|
path | True |
string |
Name of the Protected Item. |
recovery
|
path | True |
string |
Recovery Point Id |
resource
|
path | True |
string |
The name of the resource group where the recovery services vault is present. |
subscription
|
path | True |
string |
The subscription Id. |
vault
|
path | True |
string |
The name of the recovery services vault. |
api-version
|
query | True |
string |
Client Api Version. |
Request Body
Name | Type | Description |
---|---|---|
eTag |
string |
Optional ETag. |
location |
string |
Resource location. |
properties |
AADPropertiesResource properties |
|
tags |
object |
Resource tags. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
400 Bad Request |
BadRequest |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account. |
Examples
Get Access Token for Crr
Sample Request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/26083826328862/accessToken?api-version=2023-01-15
{
"properties": {
"tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d",
"audience": "https://RecoveryServices/IaasCoord/aadmgmt/ase",
"servicePrincipalObjectId": "5ecd8123-cf74-4037-83e9-9246b227b351"
}
}
Sample Response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/26083826328862",
"name": "26083826328862",
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints",
"properties": {
"objectType": "WorkloadCrrAccessToken",
"accessTokenString": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjVocE9ZWkdhZnk2VG50bUhKeGZZaEZKWHpQcyJ9.eyJVc2VySWRlbnRpdHlUeXBlIjoiQUFEIiwiQWFkVGVuYW50SWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJBYWRTUE9iamVjdElkIjoiODlkMmY3NzQtODBkNy00YzU0LTgwMjQtMjY2YzIzZGI0ZWNiIiwiUmVzdG9yZVBvaW50UGVybWlzc2lvbnMiOiJSZWFkIiwiUmVzdG9yZVBvaW50SUQiOiJyZXNvdXJjZXMvMzYzOTI0OTUyNDMwMjg4Mjk3MS9wcm90ZWN0aW9uQ29udGFpbmVycy8xMDA2NjAwL3Byb3RlY3RlZEl0ZW1zLzIyNTIzNDUxNzI0OTY4MjgyMTEvcmVjb3ZlcnlQb2ludHMvMjI1Mjg4NDA2MDEwNDg4OTkwNyIsImlzcyI6Imh0dHBzOi8vUmVjb3ZlcnlTZXJ2aWNlIiwiYXVkIjoiaHR0cHM6Ly9SZWNvdmVyeVNlcnZpY2VzL1Byb3RlY3Rpb25TZXJ2aWNlIiwiZXhwIjoxNTcwMjAwOTEzLCJuYmYiOjE1NzAxMTQyMTN9.gOGEmAhrAio3M6gcQHZ7EpEAbz4o-JaLE6dIFa4bF_-6VaP4LiBU_Qemjev_s-2fKZTAk3AVEXevbxbKIX6DENALXyOy3cMZsSPIr7L0_VrC6nlNnrwMBpiwQWGLuPckh4LHhsQE2cgOKmsIifqb4XrSJlwNq18aT_XyV6ZlkKqog3w7n4f-_eANJXDjxzOvAzsDIjnw_R-rVBNUI8w5OyO01mK1s2xStYgCBLpkTNEw5dxTTNOv5wPzmgjgRa2p-GmecE0ZTUfsL3VUvzpzfO8tRHBTbUYIIAG2Cn9utmXLK-PmAAanJVCOQ0YuoNSTN40D1NhpklJOtyD_TKdmvA",
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
"resourceGroupName": "gaallaReportingV2",
"resourceName": "garbvtd2",
"resourceId": "3639249524302882971",
"recoveryPointId": "2252884060104889907",
"recoveryPointTime": "10/3/2019 1:35:19 AM",
"containerName": "iaasvmcontainerv2;anubhtest;anubh-ext-2",
"containerType": "IaasVMContainer",
"backupManagementType": "AzureIaasVM",
"datasourceType": "VM",
"datasourceName": "anubh-ext-2",
"datasourceId": "2252345172496828211",
"datasourceContainerName": "iaasvmcontainerv2;anubhtest;anubh-ext-2",
"coordinatorServiceStampUri": "https://sea-bvtd2-coord1-t56tl.ext.trafficmanager.net",
"protectionServiceStampId": "253c2223-fefd-483d-912f-55fb46ce0eab",
"protectionServiceStampUri": "https://sea-bvtd2-prot1-t56tl.ext.trafficmanager.net",
"tokenExtendedInformation": "<IaaSVMRecoveryPointMetadataBase xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" i:type=\"IaaSVMRecoveryPointMetadata_V2015_09\" xmlns=\"http://windowscloudbackup.com/CloudCommon/V2011_09\"><MetadataVersion>V2015_09</MetadataVersion><ContainerType i:nil=\"true\" /><InstantRpGCId>1a2311d9-66f5-47d3-a9fb-7a37da63934b;BackUpOperationJobId;e1ebcf24-81a5-434e-b64b-cc81be65ae16</InstantRpGCId><IsBlockBlobEnabled>false</IsBlockBlobEnabled><IsManagedVirtualMachine>false</IsManagedVirtualMachine><OriginalSAOption>true</OriginalSAOption><OsType>Windows</OsType><ReadMetadaFromConfigBlob i:nil=\"true\" /><RecoveryPointConsistencyType>CrashConsistent</RecoveryPointConsistencyType><RpDiskDetails i:nil=\"true\" /><SourceIaaSVMRPKeyAndSecret i:nil=\"true\" /><SourceIaaSVMStorageType>NormalStorage</SourceIaaSVMStorageType><VMSizeDescription>Standard_D2s_v3</VMSizeDescription></IaaSVMRecoveryPointMetadataBase>"
}
}
Definitions
Name | Description |
---|---|
AADProperties | |
AADProperties |
|
Crr |
|
Error |
The error object. |
Error |
The resource management error additional info. |
New |
The resource management error response. |
Workload |
AADProperties
Name | Type | Description |
---|---|---|
audience |
string |
|
authority |
string |
|
servicePrincipalClientId |
string |
|
servicePrincipalObjectId |
string |
|
tenantId |
string |
AADPropertiesResource
Name | Type | Description |
---|---|---|
eTag |
string |
Optional ETag. |
id |
string |
Resource Id represents the complete path to the resource. |
location |
string |
Resource location. |
name |
string |
Resource name associated with the resource. |
properties |
AADPropertiesResource properties |
|
tags |
object |
Resource tags. |
type |
string |
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... |
CrrAccessTokenResource
Name | Type | Description |
---|---|---|
eTag |
string |
Optional ETag. |
id |
string |
Resource Id represents the complete path to the resource. |
location |
string |
Resource location. |
name |
string |
Resource name associated with the resource. |
properties | CrrAccessToken: |
CrrAccessTokenResource properties |
tags |
object |
Resource tags. |
type |
string |
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... |
Error
The error object.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
NewErrorResponse
The resource management error response.
Name | Type | Description |
---|---|---|
error |
The error object. |
WorkloadCrrAccessToken
Name | Type | Description |
---|---|---|
accessTokenString |
string |
Access token used for authentication |
bMSActiveRegion |
string |
Active region name of BMS Stamp |
backupManagementType |
string |
Backup Management Type |
containerId |
string |
Container Id |
containerName |
string |
Container Unique name |
containerType |
string |
Container Type |
coordinatorServiceStampId |
string |
CoordinatorServiceStampId to be used by BCM in restore call |
coordinatorServiceStampUri |
string |
CoordinatorServiceStampUri to be used by BCM in restore call |
datasourceContainerName |
string |
Datasource Container Unique Name |
datasourceId |
string |
Datasource Id |
datasourceName |
string |
Datasource Friendly Name |
datasourceType |
string |
Datasource Type |
objectType | string: |
Type of the specific object - used for deserializing |
policyId |
string |
Policy Id |
policyName |
string |
Policy Name |
protectableObjectContainerHostOsName |
string |
|
protectableObjectFriendlyName |
string |
|
protectableObjectParentLogicalContainerName |
string |
|
protectableObjectProtectionState |
string |
|
protectableObjectUniqueName |
string |
|
protectableObjectWorkloadType |
string |
|
protectionContainerId |
integer |
Protected item container id |
protectionServiceStampId |
string |
ProtectionServiceStampId to be used by BCM in restore call |
protectionServiceStampUri |
string |
ProtectionServiceStampUri to be used by BCM in restore call |
recoveryPointId |
string |
Recovery Point Id |
recoveryPointTime |
string |
Recovery Point Time |
resourceGroupName |
string |
Resource Group name of the source vault |
resourceId |
string |
Resource Id of the source vault |
resourceName |
string |
Resource Name of the source vault |
rpIsManagedVirtualMachine |
boolean |
Recovery point information: Managed virtual machine |
rpOriginalSAOption |
boolean |
Recovery point information: Original SA option |
rpTierInformation |
object |
Recovery point Tier Information |
rpVMSizeDescription |
string |
Recovery point information: VM size description |
subscriptionId |
string |
Subscription Id of the source vault |
tokenExtendedInformation |
string |
Extended Information about the token like FileSpec etc. |