Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 1.71 KB

revokeAcceptedShare.md

File metadata and controls

70 lines (50 loc) · 1.71 KB

pv share revokeAcceptedShare

Command Reference > share > revokeAcceptedShare

Description

Revoke an accepted sent share's access

Syntax

pv share revokeAcceptedShare --sentShareName=<val> --acceptedSentShareName=<val>

Required Arguments

--sentShareName (string)

The name of the sent share.

--acceptedSentShareName (string)

The name of the accepted sent share.

Optional Arguments

None

API Mapping

Share Data Plane > Accepted Sent Shares > Revoke

POST https://{accountName}.purview.azure.com/share/sentShares/{sentShareName}/acceptedSentShares/{acceptedSentShareName}:revoke

Examples

Revoke an accepted share.

pv share revokeAcceptedShare --sentShareName "MyNewSentShare" --acceptedSentShareName "4f5e1b4b-44f8-42c1-a783-b6c2265e49f5"
Sample response.

{
   "id":"/sentShares/MyNewSentShare/acceptedSentShares/4f5e1b4b-44f8-42c1-a783-b6c2265e49f5",
   "name":"4f5e1b4b-44f8-42c1-a783-b6c2265e49f5",
   "properties":{
      "createdAt":"2022-09-05T10:56:20.93346Z",
      "expirationDate":null,
      "receivedShareStatus":"Revoking",
      "receiverEmail":"tarifat@microsoft.com",
      "receiverName":"Taygan Rifat",
      "receiverTargetObjectId":"095354ff-cae8-44ff-8120-22ec5a941b40",
      "receiverTenantName":"Microsoft",
      "senderEmail":"tarifat@microsoft.com",
      "senderName":"Taygan Rifat",
      "senderTenantName":"Microsoft",
      "sharedAt":"2022-09-05T10:36:02.8027502Z"
   },
   "shareKind":"InPlace",
   "type":"sentShares/acceptedSentShares"
}