Delen via


Galleries - Create Or Update

Maak of werk een galerie met gedeelde afbeeldingen bij.

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

URI-parameters

Name In Vereist Type Description
galleryName
path True

string

pattern: ^[^_\W][\w-._]{0,79}(?

De naam van de galerie met gedeelde afbeeldingen.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resourcegroep. De naam is hoofdletterongevoelig.

subscriptionId
path True

string

minLength: 1

De id van het doelabonnement.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Name Vereist Type Description
location True

string

De geografische locatie waar de resource zich bevindt

identity

GalleryIdentity

De identiteit van de galerie, indien geconfigureerd.

properties.description

string

De beschrijving van deze Shared Image Gallery-resource. Deze eigenschap kan worden bijgewerkt.

properties.identifier

GalleryIdentifier

Beschrijft de unieke naam van de galerie.

properties.sharingProfile

SharingProfile

Profiel voor het delen van galerie's met een abonnement of tenant

properties.softDeletePolicy

SoftDeletePolicy

Bevat informatie over het beleid voor voorlopig verwijderen van de galerie.

tags

object

Resourcetags.

Antwoorden

Name Type Description
200 OK

Gallery

De updatebewerking van de resource 'Galerij' is geslaagd

201 Created

Gallery

Resource 'Galerij' maken bewerking geslaagd

Kopteksten

  • Location: string
  • Retry-After: integer
202 Accepted

Gallery

De aanvraag is geaccepteerd voor verwerking, maar de verwerking is nog niet voltooid.

Kopteksten

  • Location: string
  • Retry-After: integer
Other Status Codes

CloudError

Een onverwachte foutreactie.

Beveiliging

azure_auth

OAuth2-stroom voor Azure Active Directory.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

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.

Voorbeeldaanvraag

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"
      }
    }
  }
}

Voorbeeldrespons

{
  "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"
}

Voorbeeldaanvraag

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"
    }
  }
}

Voorbeeldrespons

{
  "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"
}

Voorbeeldaanvraag

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
    }
  }
}

Voorbeeldrespons

{
  "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"
}

Voorbeeldaanvraag

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."
  }
}

Voorbeeldrespons

{
  "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.

Voorbeeldaanvraag

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."
  }
}

Voorbeeldrespons

{
  "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"
}

Definities

Name Description
ApiError

Api-fout.

ApiErrorBase

Api-foutbasis.

CloudError

Een foutreactie van de Compute-service.

CommunityGalleryInfo

Informatie van de communitygalerij als de huidige galerij wordt gedeeld met de community

createdByType

Het type identiteit waarmee de resource is gemaakt.

Gallery

Geeft informatie op over de galerie met gedeelde afbeeldingen die u wilt maken of bijwerken.

GalleryIdentifier

Beschrijft de unieke naam van de galerie.

GalleryIdentity

Identiteit voor de virtuele machine.

GalleryProvisioningState

De inrichtingsstatus, die alleen in het antwoord wordt weergegeven.

GallerySharingPermissionTypes

Met deze eigenschap kunt u de machtiging voor de galerie voor delen opgeven. Mogelijke waarden zijn: Privé,Groepen,Community.

InnerError

Interne foutdetails.

RegionalSharingStatus

Status voor regionaal delen van galerij

ResourceIdentityType

Het type identiteit dat wordt gebruikt voor de galerie. Het type SystemAssigned, UserAssigned bevat zowel een impliciet gemaakte identiteit als een set door de gebruiker toegewezen identiteiten. Met het type None worden alle identiteiten uit de galerie verwijderd.

SharingProfile

Profiel voor het delen van galerie's met een abonnement of tenant

SharingProfileGroup

Groep van het profiel voor het delen van galerijen

SharingProfileGroupTypes

Met deze eigenschap kunt u het type groep voor delen opgeven. Mogelijke waarden zijn: Abonnementen,AADTenants.

SharingState

De status van delen van de galerie, die alleen in het antwoord wordt weergegeven.

SharingStatus

Deelstatus van de huidige galerij.

SoftDeletePolicy

Bevat informatie over het beleid voor voorlopig verwijderen van de galerie.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

UserAssignedIdentitiesValue

ApiError

Api-fout.

Name Type Description
code

string

De foutcode.

details

ApiErrorBase[]

Details van de Api-fout

innererror

InnerError

De innerlijke fout van de Api

message

string

Het foutbericht.

target

string

Het doel van de specifieke fout.

ApiErrorBase

Api-foutbasis.

Name Type Description
code

string

De foutcode.

message

string

Het foutbericht.

target

string

Het doel van de specifieke fout.

CloudError

Een foutreactie van de Compute-service.

Name Type Description
error

ApiError

Api-fout.

CommunityGalleryInfo

Informatie van de communitygalerij als de huidige galerij wordt gedeeld met de community

Name Type Description
communityGalleryEnabled

boolean

Bevat informatie over of het delen van communitygalerijen is ingeschakeld.

eula

string

Gebruiksrechtovereenkomst voor de installatiekopieën van de communitygalerie.

publicNamePrefix

string

Het voorvoegsel van de galerienaam die openbaar wordt weergegeven. Zichtbaar voor alle gebruikers.

publicNames

string[]

Lijst met openbare namen in de gemeenschapsgalerij.

publisherContact

string

Ondersteunings-e-mail voor uitgevers van communitygalerie. Het e-mailadres van de uitgever. Zichtbaar voor alle gebruikers.

publisherUri

string

De koppeling naar de website van de uitgever. Zichtbaar voor alle gebruikers.

createdByType

Het type identiteit waarmee de resource is gemaakt.

Waarde Description
User
Application
ManagedIdentity
Key

Geeft informatie op over de galerie met gedeelde afbeeldingen die u wilt maken of bijwerken.

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Vb.: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity

GalleryIdentity

De identiteit van de galerie, indien geconfigureerd.

location

string

De geografische locatie waar de resource zich bevindt

name

string

De naam van de resource

properties.description

string

De beschrijving van deze Shared Image Gallery-resource. Deze eigenschap kan worden bijgewerkt.

properties.identifier

GalleryIdentifier

Beschrijft de unieke naam van de galerie.

properties.provisioningState

GalleryProvisioningState

De inrichtingsstatus, die alleen in het antwoord wordt weergegeven.

properties.sharingProfile

SharingProfile

Profiel voor het delen van galerie's met een abonnement of tenant

properties.sharingStatus

SharingStatus

Deelstatus van de huidige galerij.

properties.softDeletePolicy

SoftDeletePolicy

Bevat informatie over het beleid voor voorlopig verwijderen van de galerie.

systemData

systemData

Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens.

tags

object

Resourcetags.

type

string

Het type bron. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

GalleryIdentifier

Beschrijft de unieke naam van de galerie.

Name Type Description
uniqueName

string

De unieke naam van de galerie met gedeelde installatiekopieën. Deze naam wordt automatisch gegenereerd door Azure.

GalleryIdentity

Identiteit voor de virtuele machine.

Name Type Description
principalId

string

De belangrijkste id van de identiteit van de galerij. Deze eigenschap wordt alleen verstrekt voor een door het systeem toegewezen identiteit.

tenantId

string

De AAD-huurder-id van de identiteit van de galerij. Deze eigenschap wordt alleen verstrekt voor een door het systeem toegewezen identiteit.

type

ResourceIdentityType

Het type identiteit dat wordt gebruikt voor de galerie. Het type SystemAssigned, UserAssigned bevat zowel een impliciet gemaakte identiteit als een set door de gebruiker toegewezen identiteiten. Met het type None worden alle identiteiten uit de galerie verwijderd.

userAssignedIdentities

<string,  UserAssignedIdentitiesValue>

De lijst met gebruikersidentiteiten die zijn gekoppeld aan de galerie. De sleutelverwijzingen voor de gebruikersidentiteitswoordenlijst zijn ARM-resource-id's in de vorm: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.

GalleryProvisioningState

De inrichtingsstatus, die alleen in het antwoord wordt weergegeven.

Waarde Description
Creating
Updating
Failed
Succeeded
Deleting
Migrating

GallerySharingPermissionTypes

Met deze eigenschap kunt u de machtiging voor de galerie voor delen opgeven. Mogelijke waarden zijn: Privé,Groepen,Community.

Waarde Description
Private
Groups
Community

InnerError

Interne foutdetails.

Name Type Description
errordetail

string

De interne foutmelding of uitzonderingsdump.

exceptiontype

string

Het uitzonderingstype.

RegionalSharingStatus

Status voor regionaal delen van galerij

Name Type Description
details

string

Details van de galerij regionaal delen mislukt.

region

string

Regio naam

state

SharingState

Staat voor het delen van galerijen in de huidige regio

ResourceIdentityType

Het type identiteit dat wordt gebruikt voor de galerie. Het type SystemAssigned, UserAssigned bevat zowel een impliciet gemaakte identiteit als een set door de gebruiker toegewezen identiteiten. Met het type None worden alle identiteiten uit de galerie verwijderd.

Waarde Description
SystemAssigned
UserAssigned
SystemAssigned, UserAssigned
None

SharingProfile

Profiel voor het delen van galerie's met een abonnement of tenant

Name Type Description
communityGalleryInfo

CommunityGalleryInfo

Informatie over de communitygalerie als de huidige galerie wordt gedeeld met de community.

groups

SharingProfileGroup[]

Een lijst met profielgroepen voor het delen.

permissions

GallerySharingPermissionTypes

Met deze eigenschap kunt u de machtiging voor de galerie voor delen opgeven. Mogelijke waarden zijn: Privé,Groepen,Community.

SharingProfileGroup

Groep van het profiel voor het delen van galerijen

Name Type Description
ids

string[]

Een lijst met abonnements-/tenant-id's waarmee de galerie moet worden gedeeld.

type

SharingProfileGroupTypes

Met deze eigenschap kunt u het type groep voor delen opgeven. Mogelijke waarden zijn: Abonnementen,AADTenants.

SharingProfileGroupTypes

Met deze eigenschap kunt u het type groep voor delen opgeven. Mogelijke waarden zijn: Abonnementen,AADTenants.

Waarde Description
Subscriptions
AADTenants

SharingState

De status van delen van de galerie, die alleen in het antwoord wordt weergegeven.

Waarde Description
Succeeded
InProgress
Failed
Unknown

SharingStatus

Deelstatus van de huidige galerij.

Name Type Description
aggregatedState

SharingState

Geaggregeerde deelstatus van de huidige galerie.

summary

RegionalSharingStatus[]

Samenvatting van alle regionale deelstatussen.

SoftDeletePolicy

Bevat informatie over het beleid voor voorlopig verwijderen van de galerie.

Name Type Description
isSoftDeleteEnabled

boolean

Hiermee schakelt u voorlopig verwijderen voor resources in deze galerie in, zodat ze binnen de bewaartijd kunnen worden hersteld.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Name Type Description
createdAt

string (date-time)

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit waarmee de resource is gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string (date-time)

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource voor het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.

UserAssignedIdentitiesValue

Name Type Description
clientId

string

De client-id van de door de gebruiker toegewezen identiteit.

principalId

string

De principal-id van de door de gebruiker toegewezen identiteit.