Aracılığıyla paylaş


Galleries - Create Or Update

Paylaşılan Görüntü Galerisi oluşturun veya güncelleştirin.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}?api-version=2024-03-03

URI Parametreleri

Name İçinde Gerekli Tür Description
galleryName
path True

string

Paylaşılan Görüntü Galerisi'nin adı. İzin verilen karakterler, ortada nokta ve nokta izin verilen alfabeler ve sayılardır. Uzunluk üst sınırı 80 karakterdir.

resourceGroupName
path True

string

Kaynak grubunun adı.

subscriptionId
path True

string

Microsoft Azure aboneliğini benzersiz olarak tanımlayan abonelik kimlik bilgileri. Abonelik kimliği, her hizmet çağrısı için URI'nin bir parçasını oluşturur.

api-version
query True

string

İstemci Api Sürümü.

İstek Gövdesi

Name Gerekli Tür Description
location True

string

Kaynak konumu

identity

GalleryIdentity

Yapılandırıldıysa galerinin kimliği.

properties.description

string

Bu Paylaşılan Görüntü Galerisi kaynağının açıklaması. Bu özellik güncelleştirilebilir.

properties.identifier

GalleryIdentifier

Galerinin benzersiz adını açıklar.

properties.sharingProfile

SharingProfile

Galeri paylaşımı için abonelik veya kiracı profili

properties.softDeletePolicy

SoftDeletePolicy

Galerinin geçici silme ilkesi hakkında bilgi içerir.

tags

object

Kaynak etiketleri

Yanıtlar

Name Tür Description
200 OK

Gallery

TAMAM

201 Created

Gallery

Oluşturulan

202 Accepted

Gallery

Kabul

Other Status Codes

CloudError

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Akışı

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

Create a community gallery.
Create or update a simple gallery with sharing profile.
Create or update a simple gallery with soft deletion enabled.
Create or update a simple gallery with system-assigned and user-assigned managed identities.
Create or update a simple gallery.

Create a community gallery.

Örnek isteği

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName?api-version=2024-03-03

{
  "location": "West US",
  "properties": {
    "description": "This is the gallery description.",
    "sharingProfile": {
      "permissions": "Community",
      "communityGalleryInfo": {
        "publisherUri": "uri",
        "publisherContact": "pir@microsoft.com",
        "eula": "eula",
        "publicNamePrefix": "PirPublic"
      }
    }
  }
}

Örnek yanıt

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating",
    "sharingProfile": {
      "permissions": "Community",
      "communityGalleryInfo": {
        "publisherUri": "uri",
        "publisherContact": "pir@microsoft.com",
        "eula": "eula",
        "publicNamePrefix": "PirPublic"
      }
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Creating",
    "sharingProfile": {
      "permissions": "Community",
      "communityGalleryInfo": {
        "publisherUri": "uri",
        "publisherContact": "pir@microsoft.com",
        "eula": "eula",
        "publicNamePrefix": "PirPublic"
      }
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating",
    "sharingProfile": {
      "permissions": "Community",
      "communityGalleryInfo": {
        "publisherUri": "uri",
        "publisherContact": "pir@microsoft.com",
        "eula": "eula",
        "publicNamePrefix": "PirPublic"
      }
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}

Örnek isteği

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName?api-version=2024-03-03

{
  "location": "West US",
  "properties": {
    "description": "This is the gallery description.",
    "sharingProfile": {
      "permissions": "Groups"
    }
  }
}

Örnek yanıt

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating",
    "sharingProfile": {
      "permissions": "Groups"
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Creating",
    "sharingProfile": {
      "permissions": "Groups"
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating",
    "sharingProfile": {
      "permissions": "Groups"
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}

Örnek isteği

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName?api-version=2024-03-03

{
  "location": "West US",
  "properties": {
    "description": "This is the gallery description.",
    "softDeletePolicy": {
      "isSoftDeleteEnabled": true
    }
  }
}

Örnek yanıt

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating",
    "softDeletePolicy": {
      "isSoftDeleteEnabled": true
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Creating",
    "softDeletePolicy": {
      "isSoftDeleteEnabled": true
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating",
    "softDeletePolicy": {
      "isSoftDeleteEnabled": true
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}

Örnek isteği

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName?api-version=2024-03-03

{
  "location": "West US",
  "identity": {
    "type": "SystemAssigned, UserAssigned",
    "userAssignedIdentities": {
      "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity": {}
    }
  },
  "properties": {
    "description": "This is the gallery description."
  }
}

Örnek yanıt

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "identity": {
    "type": "SystemAssigned, UserAssigned",
    "principalId": "00000000-0000-0000-0000-000000000000",
    "tenantId": "00000000-0000-0000-0000-000000000000",
    "userAssignedIdentities": {
      "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity": {}
    }
  },
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "identity": {
    "type": "SystemAssigned, UserAssigned",
    "principalId": "00000000-0000-0000-0000-000000000000",
    "tenantId": "00000000-0000-0000-0000-000000000000",
    "userAssignedIdentities": {
      "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity": {}
    }
  },
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Creating",
    "softDeletePolicy": {
      "isSoftDeleteEnabled": true
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName",
  "identity": {
    "type": "SystemAssigned, UserAssigned",
    "principalId": "00000000-0000-0000-0000-000000000000",
    "tenantId": "00000000-0000-0000-0000-000000000000",
    "userAssignedIdentities": {
      "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity": {}
    }
  },
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating",
    "softDeletePolicy": {
      "isSoftDeleteEnabled": true
    }
  },
  "location": "West US",
  "name": "myGalleryName"
}

Create or update a simple gallery.

Örnek isteği

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName?api-version=2024-03-03

{
  "location": "West US",
  "properties": {
    "description": "This is the gallery description."
  }
}

Örnek yanıt

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGallery",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGallery",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Creating"
  },
  "location": "West US",
  "name": "myGalleryName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGallery",
  "properties": {
    "description": "This is the gallery description.",
    "identifier": {
      "uniqueName": "{subscription-id}-MYGALLERYNAME"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "myGalleryName"
}

Tanımlar

Name Description
ApiError

API hatası.

ApiErrorBase

Api hata tabanı.

CloudError

İşlem hizmetinden bir hata yanıtı.

CommunityGalleryInfo

Geçerli galeri toplulukla paylaşılıyorsa topluluk galerisinin bilgileri

Gallery

Oluşturmak veya güncelleştirmek istediğiniz Paylaşılan Görüntü Galerisi hakkındaki bilgileri belirtir.

GalleryIdentifier

Galerinin benzersiz adını açıklar.

GalleryIdentity

Sanal makine için kimlik.

GalleryProvisioningState

Galerinin veya galeri yapıtının geçerli durumu.

GallerySharingPermissionTypes

Bu özellik, paylaşım galerisi iznini belirtmenize olanak tanır. Olası değerler şunlardır: Özel,Grupları,Topluluğu.

InnerError

İç hata ayrıntıları.

RegionalSharingStatus

Galeri bölgesel paylaşım durumu

ResourceIdentityType

Galeri için kullanılan kimlik türü. 'SystemAssigned, UserAssigned' türü hem örtük olarak oluşturulmuş bir kimliği hem de kullanıcı tarafından atanan bir kimlik kümesini içerir. 'Hiçbiri' türü galerideki tüm kimlikleri kaldırır.

SharingProfile

Galeri paylaşımı için abonelik veya kiracı profili

SharingProfileGroup

Galeri paylaşım profili grubu

SharingProfileGroupTypes

Bu özellik, paylaşım grubu türünü belirtmenize olanak tanır. Olası değerler şunlardır: Abonelikleri,AADTenants.

SharingState

Galerinin paylaşım durumu.

SharingStatus

Geçerli galerinin paylaşım durumu.

SoftDeletePolicy

Galerinin geçici silme ilkesi hakkında bilgi içerir.

UserAssignedIdentities

Sanal Makine ile ilişkili kullanıcı kimliklerinin listesi. Kullanıcı kimliği sözlük anahtarı başvuruları şu biçimde ARM kaynak kimlikleri olacaktır: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

ApiError

API hatası.

Name Tür Description
code

string

Hata kodu.

details

ApiErrorBase[]

Api hata ayrıntıları

innererror

InnerError

Api iç hatası

message

string

Hata iletisi.

target

string

Belirli bir hatanın hedefi.

ApiErrorBase

Api hata tabanı.

Name Tür Description
code

string

Hata kodu.

message

string

Hata iletisi.

target

string

Belirli bir hatanın hedefi.

CloudError

İşlem hizmetinden bir hata yanıtı.

Name Tür Description
error

ApiError

API hatası.

CommunityGalleryInfo

Geçerli galeri toplulukla paylaşılıyorsa topluluk galerisinin bilgileri

Name Tür Description
communityGalleryEnabled

boolean

Topluluk galerisi paylaşımının etkinleştirilip etkinleştirilmediği hakkında bilgi içerir.

eula

string

Topluluk galerisi resmi için son kullanıcı lisans sözleşmesi.

publicNamePrefix

string

Genel olarak görüntülenecek galeri adının ön eki. Tüm kullanıcılar tarafından görülebilir.

publicNames

string[]

Topluluk galerisi genel ad listesi.

publisherContact

string

Topluluk galerisi yayımcısı destek e-postası. Yayımcının e-posta adresi. Tüm kullanıcılar tarafından görülebilir.

publisherUri

string

Yayımcı web sitesinin bağlantısı. Tüm kullanıcılar tarafından görülebilir.

Oluşturmak veya güncelleştirmek istediğiniz Paylaşılan Görüntü Galerisi hakkındaki bilgileri belirtir.

Name Tür Description
id

string

Kaynak Kimliği

identity

GalleryIdentity

Yapılandırıldıysa galerinin kimliği.

location

string

Kaynak konumu

name

string

Kaynak adı

properties.description

string

Bu Paylaşılan Görüntü Galerisi kaynağının açıklaması. Bu özellik güncelleştirilebilir.

properties.identifier

GalleryIdentifier

Galerinin benzersiz adını açıklar.

properties.provisioningState

GalleryProvisioningState

Galerinin veya galeri yapıtının geçerli durumu.
Yalnızca yanıtta görünen sağlama durumu.

properties.sharingProfile

SharingProfile

Galeri paylaşımı için abonelik veya kiracı profili

properties.sharingStatus

SharingStatus

Geçerli galerinin paylaşım durumu.

properties.softDeletePolicy

SoftDeletePolicy

Galerinin geçici silme ilkesi hakkında bilgi içerir.

tags

object

Kaynak etiketleri

type

string

Kaynak türü

GalleryIdentifier

Galerinin benzersiz adını açıklar.

Name Tür Description
uniqueName

string

Paylaşılan Görüntü Galerisi'nin benzersiz adı. Bu ad Azure tarafından otomatik olarak oluşturulur.

GalleryIdentity

Sanal makine için kimlik.

Name Tür Description
principalId

string

Galeri kimliğinin asıl kimliği. Bu özellik yalnızca sistem tarafından atanan kimlik için sağlanacaktır.

tenantId

string

Galeri kimliğinin AAD kiracı kimliği. Bu özellik yalnızca sistem tarafından atanan kimlik için sağlanacaktır.

type

ResourceIdentityType

Galeri için kullanılan kimlik türü. 'SystemAssigned, UserAssigned' türü hem örtük olarak oluşturulmuş bir kimliği hem de kullanıcı tarafından atanan bir kimlik kümesini içerir. 'Hiçbiri' türü galerideki tüm kimlikleri kaldırır.

userAssignedIdentities

UserAssignedIdentities

Galeriyle ilişkilendirilmiş kullanıcı kimliklerinin listesi. Kullanıcı kimliği sözlük anahtarı başvuruları şu biçimde ARM kaynak kimlikleri olacaktır: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

GalleryProvisioningState

Galerinin veya galeri yapıtının geçerli durumu.

Değer Description
Creating
Deleting
Failed
Migrating
Succeeded
Updating

GallerySharingPermissionTypes

Bu özellik, paylaşım galerisi iznini belirtmenize olanak tanır. Olası değerler şunlardır: Özel,Grupları,Topluluğu.

Değer Description
Community
Groups
Private

InnerError

İç hata ayrıntıları.

Name Tür Description
errordetail

string

İç hata iletisi veya özel durum dökümü.

exceptiontype

string

Özel durum türü.

RegionalSharingStatus

Galeri bölgesel paylaşım durumu

Name Tür Description
details

string

Galeri bölgesel paylaşım hatasının ayrıntıları.

region

string

Bölge adı

state

SharingState

Galerinin paylaşım durumu.
Geçerli bölgedeki galeri paylaşım durumu

ResourceIdentityType

Galeri için kullanılan kimlik türü. 'SystemAssigned, UserAssigned' türü hem örtük olarak oluşturulmuş bir kimliği hem de kullanıcı tarafından atanan bir kimlik kümesini içerir. 'Hiçbiri' türü galerideki tüm kimlikleri kaldırır.

Değer Description
None
SystemAssigned
SystemAssigned, UserAssigned
UserAssigned

SharingProfile

Galeri paylaşımı için abonelik veya kiracı profili

Name Tür Description
communityGalleryInfo

CommunityGalleryInfo

Geçerli galeri toplulukla paylaşılıyorsa topluluk galerisinin bilgileri.

groups

SharingProfileGroup[]

Paylaşım profili gruplarının listesi.

permissions

GallerySharingPermissionTypes

Bu özellik, paylaşım galerisi iznini belirtmenize olanak tanır. Olası değerler şunlardır: Özel,Grupları,Topluluğu.

SharingProfileGroup

Galeri paylaşım profili grubu

Name Tür Description
ids

string[]

Galerinin paylaşılması hedeflenen abonelik/kiracı kimliklerinin listesi.

type

SharingProfileGroupTypes

Bu özellik, paylaşım grubu türünü belirtmenize olanak tanır. Olası değerler şunlardır: Abonelikleri,AADTenants.

SharingProfileGroupTypes

Bu özellik, paylaşım grubu türünü belirtmenize olanak tanır. Olası değerler şunlardır: Abonelikleri,AADTenants.

Değer Description
AADTenants
Subscriptions

SharingState

Galerinin paylaşım durumu.

Değer Description
Failed
InProgress
Succeeded
Unknown

SharingStatus

Geçerli galerinin paylaşım durumu.

Name Tür Description
aggregatedState

SharingState

Galerinin paylaşım durumu.
Geçerli galerinin toplu paylaşım durumu.

summary

RegionalSharingStatus[]

Tüm bölgesel paylaşım durumunun özeti.

SoftDeletePolicy

Galerinin geçici silme ilkesi hakkında bilgi içerir.

Name Tür Description
isSoftDeleteEnabled

boolean

Bu galerideki kaynaklar için geçici silmeyi etkinleştirerek saklama süresi içinde kurtarılmalarını sağlar.

UserAssignedIdentities

Sanal Makine ile ilişkili kullanıcı kimliklerinin listesi. Kullanıcı kimliği sözlük anahtarı başvuruları şu biçimde ARM kaynak kimlikleri olacaktır: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Name Tür Description