Sent Shares - Create Or Replace
Gönderilmiş paylaşımı oluşturma veya değiştirme
PUT {endpoint}/sentShares/{sentShareId}?api-version=2023-02-15-preview
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
endpoint
|
path | True |
string |
Purview hesabınızın paylaşım uç noktası. Örnek: https://{accountName}.purview.azure.com/share |
|
sent
|
path | True |
string maxLength: 36pattern: ^(?:\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\}{0,1})$ |
Gönderilen paylaşımın kimliği |
|
api-version
|
query | True |
string |
Kullanılacak api sürümü |
İstek Gövdesi
InPlaceSentShare
InPlace paylaşım türü.
| Name | Gerekli | Tür | Description |
|---|---|---|---|
| properties | True |
InPlace gönderilen paylaşımının özellikleri. |
|
| shareKind | True |
string:
In |
Paylaşım için desteklenen türleri tanımlar. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK | SentShare: |
Başarı Üst Bilgiler Operation-Location: string |
| 201 Created | SentShare: |
Başarı Üst Bilgiler Operation-Location: string |
| Other Status Codes |
Varsayılan hata yanıtı. Üst Bilgiler x-ms-error-code: string |
Güvenlik
azureAuth
Azure Active Directory OAuth2 Akışı.
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| https://purview.azure.net/.default | Purview hizmet kapsamı |
Örnekler
|
Sent |
|
Sent |
|
Sent |
SentShares_CreateOrReplace
Örnek isteği
PUT accountName.purview.azure.com/share/sentShares/FF4A2AAE-8755-47BB-9C00-A774B5A7006E?api-version=2023-02-15-preview
{
"properties": {
"artifact": {
"storeKind": "AdlsGen2Account",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "SharedFile.txt"
}
]
}
},
"displayName": "sentShare1",
"description": "description"
},
"shareKind": "InPlace"
}
Örnek yanıt
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
x-ms-long-running-operation: True
Operation-Location: https://accountName.purview.azure.com/share/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2023-02-15-preview
Operation-Id: dad6baec-3a39-41df-a469-843a9ee94213
{
"properties": {
"artifact": {
"storeKind": "AdlsGen2Account",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "ShareFile.txt"
}
]
}
},
"createdAt": "2021-07-21T23:45:35.3708674Z",
"displayName": "sentShare1",
"description": "description",
"dependsOn": [],
"state": "Succeeded",
"senderName": "John Smith",
"senderEmail": "johnsmith@contoso.com",
"senderTenantName": "Contoso"
},
"id": "FF4A2AAE-8755-47BB-9C00-A774B5A7006E",
"type": "SentShare",
"shareKind": "InPlace"
}
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
x-ms-long-running-operation: True
Operation-Location: https://accountName.purview.azure.com/share/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2023-02-15-preview
Operation-Id: dad6baec-3a39-41df-a469-843a9ee94213
{
"properties": {
"artifact": {
"storeKind": "AdlsGen2Account",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "ShareFile.txt"
}
]
}
},
"createdAt": "2021-07-21T23:45:35.3708674Z",
"displayName": "sentShare1",
"description": "description",
"dependsOn": [],
"state": "Succeeded",
"senderName": "John Smith",
"senderEmail": "johnsmith@contoso.com",
"senderTenantName": "Contoso"
},
"id": "FF4A2AAE-8755-47BB-9C00-A774B5A7006E",
"type": "SentShare",
"shareKind": "InPlace"
}
SentShares_CreateOrReplaceAdlsGen2Account
Örnek isteği
PUT accountName.purview.azure.com/share/sentShares/FF4A2AAE-8755-47BB-9C00-A774B5A7006E?api-version=2023-02-15-preview
{
"properties": {
"artifact": {
"storeKind": "AdlsGen2Account",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "SharedFile.txt"
}
]
}
},
"displayName": "sentShare1",
"description": "description"
},
"shareKind": "InPlace"
}
Örnek yanıt
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
x-ms-long-running-operation: True
Operation-Location: https://accountName.purview.azure.com/share/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2023-02-15-preview
Operation-Id: dad6baec-3a39-41df-a469-843a9ee94213
{
"properties": {
"artifact": {
"storeKind": "AdlsGen2Account",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "ShareFile.txt"
}
]
}
},
"createdAt": "2021-07-21T23:45:35.3708674Z",
"displayName": "sentShare1",
"description": "description",
"dependsOn": [],
"state": "Succeeded",
"senderName": "John Smith",
"senderEmail": "johnsmith@contoso.com",
"senderTenantName": "Contoso"
},
"id": "FF4A2AAE-8755-47BB-9C00-A774B5A7006E",
"type": "SentShare",
"shareKind": "InPlace"
}
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
x-ms-long-running-operation: True
Operation-Location: https://accountName.purview.azure.com/share/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2023-02-15-preview
Operation-Id: dad6baec-3a39-41df-a469-843a9ee94213
{
"properties": {
"artifact": {
"storeKind": "AdlsGen2Account",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "ShareFile.txt"
}
]
}
},
"createdAt": "2021-07-21T23:45:35.3708674Z",
"displayName": "sentShare1",
"description": "description",
"dependsOn": [],
"state": "Succeeded",
"senderName": "John Smith",
"senderEmail": "johnsmith@contoso.com",
"senderTenantName": "Contoso"
},
"id": "FF4A2AAE-8755-47BB-9C00-A774B5A7006E",
"type": "SentShare",
"shareKind": "InPlace"
}
SentShares_CreateOrReplaceBlobAccount
Örnek isteği
PUT accountName.purview.azure.com/share/sentShares/FF4A2AAE-8755-47BB-9C00-A774B5A7006E?api-version=2023-02-15-preview
{
"properties": {
"artifact": {
"storeKind": "BlobAccount",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "SharedFile.txt"
}
]
}
},
"displayName": "sentShare1",
"description": "description"
},
"shareKind": "InPlace"
}
Örnek yanıt
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
x-ms-long-running-operation: True
Operation-Location: https://accountName.purview.azure.com/share/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2023-02-15-preview
Operation-Id: dad6baec-3a39-41df-a469-843a9ee94213
{
"properties": {
"artifact": {
"storeKind": "BlobAccount",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "ShareFile.txt"
}
]
}
},
"createdAt": "2021-07-21T23:45:35.3708674Z",
"displayName": "sentShare1",
"description": "description",
"dependsOn": [],
"state": "Succeeded",
"senderName": "John Smith",
"senderEmail": "johnsmith@contoso.com",
"senderTenantName": "Contoso"
},
"id": "FF4A2AAE-8755-47BB-9C00-A774B5A7006E",
"type": "SentShare",
"shareKind": "InPlace"
}
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
x-ms-long-running-operation: True
Operation-Location: https://accountName.purview.azure.com/share/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2023-02-15-preview
Operation-Id: dad6baec-3a39-41df-a469-843a9ee94213
{
"properties": {
"artifact": {
"storeKind": "BlobAccount",
"storeReference": {
"referenceName": "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage",
"type": "ArmResourceReference"
},
"properties": {
"paths": [
{
"containerName": "container1",
"senderPath": "directory/file.txt",
"receiverPath": "ShareFile.txt"
}
]
}
},
"createdAt": "2021-07-21T23:45:35.3708674Z",
"displayName": "sentShare1",
"description": "description",
"dependsOn": [],
"state": "Succeeded",
"senderName": "John Smith",
"senderEmail": "johnsmith@contoso.com",
"senderTenantName": "Contoso"
},
"id": "FF4A2AAE-8755-47BB-9C00-A774B5A7006E",
"type": "SentShare",
"shareKind": "InPlace"
}
Tanımlar
| Name | Description |
|---|---|
|
Adls |
Adls 2. Nesil depolama hesabı yapıtı. |
|
Adls |
Adls 2. Nesil depolama hesabının özellikleri. |
|
Blob |
Blob depolama hesabı yapıtı. |
|
Blob |
Blob depolama hesabının özellikleri. |
|
In |
InPlace paylaşım türü. |
|
In |
InPlace gönderilen paylaşımının özellikleri. |
|
Purview |
purview paylaşımı hata modeli. |
|
Purview |
purview paylaşımı hata gövdesi modeli. |
|
Reference |
Paylaşılmakta olan kaynağın türünü tanımlar |
|
Share |
Paylaşım için desteklenen türleri tanımlar. |
| State |
Kaynağın durumu |
|
Storage |
Tek bir StorageAccountPath yolu tanımlar |
|
Store |
Varlık türleri. |
|
Store |
Yapıt veya havuz için Mağaza Başvurusu. |
AdlsGen2Artifact
Adls 2. Nesil depolama hesabı yapıtı.
| Name | Tür | Description |
|---|---|---|
| properties |
Adls 2. Nesil depolama hesabının özellikleri. |
|
| storeKind |
string:
Adls |
Varlık türleri. |
| storeReference |
Yapıt veya havuz için Mağaza Başvurusu. |
AdlsGen2ArtifactProperties
Adls 2. Nesil depolama hesabının özellikleri.
| Name | Tür | Description |
|---|---|---|
| location |
string |
Depolama hesabının konumu. |
| paths |
Adls 2. Nesil depolama hesabı yollarının listesi. |
BlobStorageArtifact
Blob depolama hesabı yapıtı.
| Name | Tür | Description |
|---|---|---|
| properties |
Blob depolama hesabının özellikleri. |
|
| storeKind |
string:
Blob |
Varlık türleri. |
| storeReference |
Yapıt veya havuz için Mağaza Başvurusu. |
BlobStorageArtifactProperties
Blob depolama hesabının özellikleri.
| Name | Tür | Description |
|---|---|---|
| location |
string |
Depolama hesabının konumu. |
| paths |
Blob depolama hesabı yollarının listesi. |
InPlaceSentShare
InPlace paylaşım türü.
| Name | Tür | Description |
|---|---|---|
| id |
string |
Kaynağın benzersiz kimliği. |
| properties |
InPlace gönderilen paylaşımının özellikleri. |
|
| shareKind |
string:
In |
Paylaşım için desteklenen türleri tanımlar. |
| type |
string |
Kaynağın türü. |
InPlaceSentShareProperties
InPlace gönderilen paylaşımının özellikleri.
| Name | Tür | Description |
|---|---|---|
| artifact | Artifact: |
Gönderilmiş paylaşım yapıtı için bir sınıf. |
| createdAt |
string (date-time) |
Gönderilen paylaşımın oluşturulduğu saat. RFC 3339 tarafından tanımlanan standart tarih-saat biçiminde temsil edilir |
| dependsOn |
string[] (uuid) |
Gönderilen paylaşımın bağlı olduğu paylaşımların listesi. |
| description |
string |
Gönderilen paylaşım açıklaması. |
| displayName |
string |
Gönderilen paylaşımın adı |
| senderEmail |
string |
Gönderilen paylaşımı oluşturan gönderenin e-postası. |
| senderName |
string |
Gönderilen paylaşımı oluşturan gönderenin adı. |
| senderTenantName |
string |
Gönderilen paylaşımı oluşturan gönderenin kiracı adı. |
| state |
Kaynağın durumu |
PurviewShareError
purview paylaşımı hata modeli.
| Name | Tür | Description |
|---|---|---|
| error |
purview paylaşımı hata gövdesi modeli. |
PurviewShareErrorInfo
purview paylaşımı hata gövdesi modeli.
| Name | Tür | Description |
|---|---|---|
| code |
string |
Hatanın kodu |
| details |
Hata modelinin iç içe ayrıntıları |
|
| message |
string |
Hata iletisi |
| target |
string |
Hatanın hedefi |
ReferenceNameType
Paylaşılmakta olan kaynağın türünü tanımlar
| Değer | Description |
|---|---|
| ArmResourceReference |
Başvuru türü bir ARM kaynağıdır |
ShareKind
Paylaşım için desteklenen türleri tanımlar.
| Değer | Description |
|---|---|
| InPlace |
Paylaşım türü yerinde paylaşımdır |
State
Kaynağın durumu
| Değer | Description |
|---|---|
| Unknown |
Kaynağın durumu 'Bilinmiyor' |
| Succeeded |
Kaynağın durumu 'Başarılı' |
| Creating |
Kaynağın durumu 'Oluşturuluyor' |
| Deleting |
Kaynağın durumu 'Siliniyor' |
| Moving |
Kaynağın durumu 'Taşınıyor' |
| Failed |
Kaynağın durumu 'Başarısız' |
StorageAccountPath
Tek bir StorageAccountPath yolu tanımlar
| Name | Tür | Description |
|---|---|---|
| containerName |
string |
Kapsayıcı adını alır veya ayarlar |
| receiverPath |
string |
Yapıtın eşlenecek olduğu alıcı tarafında yolu alır veya ayarlar |
| senderPath |
string |
Paylaşılacak kapsayıcı içinde dosya/klasör yolunu alır veya ayarlar |
StoreKind
Varlık türleri.
| Değer | Description |
|---|---|
| AdlsGen2Account |
Mağaza türü bir Adls 2. Nesil depolama hesabıdır |
| BlobAccount |
Mağaza türü bir Blob depolama hesabıdır |
StoreReference
Yapıt veya havuz için Mağaza Başvurusu.
| Name | Tür | Description |
|---|---|---|
| referenceName |
string |
Havuz veya yapıtla ilişkili kaynağın başvuru adı. |
| type |
Paylaşılmakta olan kaynağın türünü tanımlar |