你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Provider Share Subscriptions - Revoke
撤销提供程序共享中的共享订阅
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/revoke?api-version=2021-08-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
account
|
path | True |
string |
共享帐户的名称。 |
provider
|
path | True |
string |
查找 shareSubscription |
resource
|
path | True |
string |
资源组名称。 |
share
|
path | True |
string |
共享的名称。 |
subscription
|
path | True |
string |
订阅标识符 |
api-version
|
query | True |
string |
要使用的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功 |
|
202 Accepted |
已接受 |
|
Other Status Codes |
从 Microsoft.DataShare 资源提供程序收到的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
ProviderShareSubscriptions_Revoke
Sample Request
Sample Response
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-tenant-reads: 14999
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
{
"properties": {
"consumerName": "John Smith",
"consumerEmail": "john.smith@microsoft.com",
"createdAt": "2018-12-13T08:52:42.6224087Z",
"providerName": "John Smith",
"providerEmail": "john.smith@microsoft.com",
"sharedAt": "2018-12-13T08:45:40.9005877Z",
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Revoked",
"expirationDate": "2020-08-26T22:33:24.5785265Z"
},
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
}
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-tenant-reads: 14999
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
x-ms-long-running-operation: True
Azure-AsyncOperation: https://management.azure.com/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2019-11-01
{
"properties": {
"consumerName": "John Smith",
"consumerEmail": "john.smith@microsoft.com",
"createdAt": "2018-12-13T08:52:42.6224087Z",
"providerName": "John Smith",
"providerEmail": "john.smith@microsoft.com",
"sharedAt": "2018-12-13T08:45:40.9005877Z",
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Revoking"
},
"id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "4256e2cf-0f82-4865-961b-12f83333f487",
"type": "Microsoft.DataShare/accounts/shares/providerShareSubscriptions"
}
定义
名称 | 说明 |
---|---|
created |
创建资源的标识类型。 |
Data |
数据共享错误模型。 |
Data |
数据共享错误主体模型。 |
last |
上次修改资源的标识类型。 |
Provider |
提供程序端共享订阅数据传输对象。 |
share |
获取共享订阅的状态 |
System |
与资源的创建和上次修改相关的元数据。 |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DataShareError
数据共享错误模型。
名称 | 类型 | 说明 |
---|---|---|
error |
数据共享错误正文 |
DataShareErrorInfo
数据共享错误主体模型。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码 |
details |
错误模型的嵌套详细信息 |
|
message |
string |
错误消息 |
target |
string |
错误的目标 |
lastModifiedByType
上次修改资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ProviderShareSubscription
提供程序端共享订阅数据传输对象。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
Azure 资源的资源 ID |
name |
string |
Azure 资源的名称 |
properties.consumerEmail |
string |
创建共享订阅的使用者的Email |
properties.consumerName |
string |
创建共享订阅的使用者的名称 |
properties.consumerTenantName |
string |
创建共享订阅的使用者的租户名称 |
properties.createdAt |
string |
创建于 |
properties.expirationDate |
string |
UTC 格式的共享订阅到期日期 |
properties.providerEmail |
string |
创建共享的提供程序的Email |
properties.providerName |
string |
创建共享的提供程序的名称 |
properties.shareSubscriptionObjectId |
string |
共享订阅对象 ID |
properties.shareSubscriptionStatus |
获取共享订阅的状态 |
|
properties.sharedAt |
string |
共享位置 |
systemData |
Azure 资源的系统数据。 |
|
type |
string |
Azure 资源的类型 |
shareSubscriptionStatus
获取共享订阅的状态
名称 | 类型 | 说明 |
---|---|---|
Active |
string |
|
Revoked |
string |
|
Revoking |
string |
|
SourceDeleted |
string |
SystemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
上次修改资源的标识类型。 |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |