Provider Share Subscriptions - Reinstate
Reinstate share subscription in a provider share
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/reinstate?api-version=2021-08-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
account
|
path | True |
string |
The name of the share account. |
provider
|
path | True |
string |
To locate shareSubscription |
resource
|
path | True |
string |
The resource group name. |
share
|
path | True |
string |
The name of the share. |
subscription
|
path | True |
string |
The subscription identifier |
api-version
|
query | True |
string |
The api version to use. |
Request Body
Name | Type | Description |
---|---|---|
properties.expirationDate |
string |
Expiration date of the share subscription in UTC format |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Success |
|
Other Status Codes |
An error response received from the Microsoft.DataShare resource provider. |
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
ProviderShareSubscriptions_Reinstate
Sample Request
POST https://management.azure.com/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscriptions/4256e2cf-0f82-4865-961b-12f83333f487/reinstate?api-version=2021-08-01
{
"properties": {
"expirationDate": "2020-12-26T22:33:24.5785265Z"
}
}
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",
"shareSubscriptionObjectId": "1ce51340-19be-4ef2-9450-0ea0b1324cbb",
"shareSubscriptionStatus": "Active",
"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"
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Data |
The data share error model. |
Data |
The data share error body model. |
last |
The type of identity that last modified the resource. |
Provider |
A provider side share subscription data transfer object. |
share |
Gets the status of share subscription |
System |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DataShareError
The data share error model.
Name | Type | Description |
---|---|---|
error |
The data share error body |
DataShareErrorInfo
The data share error body model.
Name | Type | Description |
---|---|---|
code |
string |
Code of the error |
details |
Nested details of the error model |
|
message |
string |
Message of the error |
target |
string |
Target of the error |
lastModifiedByType
The type of identity that last modified the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ProviderShareSubscription
A provider side share subscription data transfer object.
Name | Type | Description |
---|---|---|
id |
string |
The resource id of the azure resource |
name |
string |
Name of the azure resource |
properties.consumerEmail |
string |
Email of the consumer who created the share subscription |
properties.consumerName |
string |
Name of the consumer who created the share subscription |
properties.consumerTenantName |
string |
Tenant name of the consumer who created the share subscription |
properties.createdAt |
string |
created at |
properties.expirationDate |
string |
Expiration date of the share subscription in UTC format |
properties.providerEmail |
string |
Email of the provider who created the share |
properties.providerName |
string |
Name of the provider who created the share |
properties.shareSubscriptionObjectId |
string |
share Subscription Object Id |
properties.shareSubscriptionStatus |
Gets the status of share subscription |
|
properties.sharedAt |
string |
Shared at |
systemData |
System Data of the Azure resource. |
|
type |
string |
Type of the azure resource |
shareSubscriptionStatus
Gets the status of share subscription
Name | Type | Description |
---|---|---|
Active |
string |
|
Revoked |
string |
|
Revoking |
string |
|
SourceDeleted |
string |
SystemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The type of identity that last modified the resource. |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |