다음을 통해 공유


Galleries - Create Or Update

공유 이미지 갤러리를 만들거나 업데이트합니다.

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

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
galleryName
path True

string

공유 이미지 갤러리의 이름입니다.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

리소스 그룹의 이름입니다. 이름은 대소문자를 구분하지 않습니다.

subscriptionId
path True

string

minLength: 1

대상 구독의 ID입니다.

api-version
query True

string

minLength: 1

이 작업에 사용할 API 버전입니다.

요청 본문

Name 필수 형식 Description
location True

string

리소스가 있는 지리적 위치

identity

GalleryIdentity

구성된 경우 갤러리의 ID입니다.

properties.description

string

이 공유 이미지 갤러리 리소스에 대한 설명입니다. 이 속성은 업데이트할 수 있습니다.

properties.identifier

GalleryIdentifier

갤러리 고유 이름을 설명합니다.

properties.sharingProfile

SharingProfile

구독 또는 테넌트에 갤러리 공유 프로필

properties.softDeletePolicy

SoftDeletePolicy

갤러리의 일시 삭제 정책에 대한 정보를 포함합니다.

tags

object

리소스 태그.

응답

Name 형식 Description
200 OK

Gallery

리소스 '갤러리' 업데이트 작업이 성공했습니다.

201 Created

Gallery

리소스 '갤러리' 만들기 작업이 성공했습니다.

헤더

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

Gallery

처리를 위해 요청이 수락되었지만 처리가 아직 완료되지 않았습니다.

헤더

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

CloudError

예기치 않은 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 흐름.

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

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.

샘플 요청

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

샘플 응답

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

샘플 요청

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

샘플 응답

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

샘플 요청

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

샘플 응답

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

샘플 요청

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

샘플 응답

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

샘플 요청

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

샘플 응답

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

정의

Name Description
ApiError

API 오류입니다.

ApiErrorBase

API 오류 기준입니다.

CloudError

Compute 서비스의 오류 응답입니다.

CommunityGalleryInfo

현재 갤러리가 커뮤니티에 공유되는 경우 커뮤니티 갤러리의 정보

createdByType

리소스를 만든 ID의 형식입니다.

Gallery

만들거나 업데이트하려는 공유 이미지 갤러리에 대한 정보를 지정합니다.

GalleryIdentifier

갤러리 고유 이름을 설명합니다.

GalleryIdentity

가상 머신의 ID입니다.

GalleryProvisioningState

응답에만 표시되는 프로비전 상태입니다.

GallerySharingPermissionTypes

이 속성을 사용하면 갤러리 공유 권한을 지정할 수 있습니다. 가능한 값은 프라이빗,그룹,커뮤니티입니다.

InnerError

내부 오류 세부 정보입니다.

RegionalSharingStatus

갤러리 지역 공유 상태

ResourceIdentityType

갤러리에 사용되는 ID의 형식입니다. 'SystemAssigned, UserAssigned' 형식에는 암시적으로 생성된 ID와 사용자 할당 ID 집합이 모두 포함됩니다. 'None' 형식은 갤러리에서 모든 ID를 제거합니다.

SharingProfile

구독 또는 테넌트에 갤러리 공유 프로필

SharingProfileGroup

갤러리 공유 프로필 그룹

SharingProfileGroupTypes

이 속성을 사용하면 공유 그룹의 유형을 지정할 수 있습니다. 가능한 값은 구독,AADTenants입니다.

SharingState

응답에만 표시되는 갤러리의 공유 상태입니다.

SharingStatus

현재 갤러리의 공유 상태입니다.

SoftDeletePolicy

갤러리의 일시 삭제 정책에 대한 정보를 포함합니다.

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

UserAssignedIdentitiesValue

ApiError

API 오류입니다.

Name 형식 Description
code

string

오류 코드입니다.

details

ApiErrorBase[]

API 오류 세부 정보

innererror

InnerError

API 내부 오류

message

string

오류 메시지입니다.

target

string

특정 오류의 대상입니다.

ApiErrorBase

API 오류 기준입니다.

Name 형식 Description
code

string

오류 코드입니다.

message

string

오류 메시지입니다.

target

string

특정 오류의 대상입니다.

CloudError

Compute 서비스의 오류 응답입니다.

Name 형식 Description
error

ApiError

API 오류입니다.

CommunityGalleryInfo

현재 갤러리가 커뮤니티에 공유되는 경우 커뮤니티 갤러리의 정보

Name 형식 Description
communityGalleryEnabled

boolean

커뮤니티 갤러리 공유를 사용할 수 있는지 여부에 대한 정보를 포함합니다.

eula

string

커뮤니티 갤러리 이미지에 대한 최종 사용자 라이선스 계약입니다.

publicNamePrefix

string

공개적으로 표시될 갤러리 이름의 접두사입니다. 모든 사용자에게 표시됩니다.

publicNames

string[]

커뮤니티 갤러리 공용 이름 목록입니다.

publisherContact

string

커뮤니티 갤러리 게시자는 전자 메일을 지원합니다. 게시자의 전자 메일 주소입니다. 모든 사용자에게 표시됩니다.

publisherUri

string

게시자 웹 사이트에 대한 링크입니다. 모든 사용자에게 표시됩니다.

createdByType

리소스를 만든 ID의 형식입니다.

Description
User
Application
ManagedIdentity
Key

만들거나 업데이트하려는 공유 이미지 갤러리에 대한 정보를 지정합니다.

Name 형식 Description
id

string

리소스에 대한 정규화된 리소스 ID입니다. 예 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity

GalleryIdentity

구성된 경우 갤러리의 ID입니다.

location

string

리소스가 있는 지리적 위치

name

string

리소스의 이름

properties.description

string

이 공유 이미지 갤러리 리소스에 대한 설명입니다. 이 속성은 업데이트할 수 있습니다.

properties.identifier

GalleryIdentifier

갤러리 고유 이름을 설명합니다.

properties.provisioningState

GalleryProvisioningState

응답에만 표시되는 프로비전 상태입니다.

properties.sharingProfile

SharingProfile

구독 또는 테넌트에 갤러리 공유 프로필

properties.sharingStatus

SharingStatus

현재 갤러리의 공유 상태입니다.

properties.softDeletePolicy

SoftDeletePolicy

갤러리의 일시 삭제 정책에 대한 정보를 포함합니다.

systemData

systemData

createdBy 및 modifiedBy 정보가 포함된 Azure Resource Manager 메타데이터입니다.

tags

object

리소스 태그.

type

string

리소스의 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"

GalleryIdentifier

갤러리 고유 이름을 설명합니다.

Name 형식 Description
uniqueName

string

공유 이미지 갤러리의 고유한 이름입니다. 이 이름은 Azure에서 자동으로 생성됩니다.

GalleryIdentity

가상 머신의 ID입니다.

Name 형식 Description
principalId

string

갤러리 ID의 보안 주체 ID입니다. 이 속성은 시스템 할당 ID에 대해서만 제공됩니다.

tenantId

string

갤러리 ID의 AAD 테넌트 ID입니다. 이 속성은 시스템 할당 ID에 대해서만 제공됩니다.

type

ResourceIdentityType

갤러리에 사용되는 ID의 형식입니다. 'SystemAssigned, UserAssigned' 형식에는 암시적으로 생성된 ID와 사용자 할당 ID 집합이 모두 포함됩니다. 'None' 형식은 갤러리에서 모든 ID를 제거합니다.

userAssignedIdentities

<string,  UserAssignedIdentitiesValue>

갤러리와 연결된 사용자 ID 목록입니다. 사용자 ID 사전 키 참조는 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}' 형식의 ARM 리소스 ID입니다.

GalleryProvisioningState

응답에만 표시되는 프로비전 상태입니다.

Description
Creating
Updating
Failed
Succeeded
Deleting
Migrating

GallerySharingPermissionTypes

이 속성을 사용하면 갤러리 공유 권한을 지정할 수 있습니다. 가능한 값은 프라이빗,그룹,커뮤니티입니다.

Description
Private
Groups
Community

InnerError

내부 오류 세부 정보입니다.

Name 형식 Description
errordetail

string

내부 오류 메시지 또는 예외 덤프입니다.

exceptiontype

string

예외 형식입니다.

RegionalSharingStatus

갤러리 지역 공유 상태

Name 형식 Description
details

string

갤러리 지역 공유 실패에 대한 세부 정보입니다.

region

string

지역 이름

state

SharingState

현재 지역의 갤러리 공유 상태

ResourceIdentityType

갤러리에 사용되는 ID의 형식입니다. 'SystemAssigned, UserAssigned' 형식에는 암시적으로 생성된 ID와 사용자 할당 ID 집합이 모두 포함됩니다. 'None' 형식은 갤러리에서 모든 ID를 제거합니다.

Description
SystemAssigned
UserAssigned
SystemAssigned, UserAssigned
None

SharingProfile

구독 또는 테넌트에 갤러리 공유 프로필

Name 형식 Description
communityGalleryInfo

CommunityGalleryInfo

현재 갤러리가 커뮤니티에 공유되는 경우 커뮤니티 갤러리의 정보입니다.

groups

SharingProfileGroup[]

공유 프로필 그룹의 목록입니다.

permissions

GallerySharingPermissionTypes

이 속성을 사용하면 갤러리 공유 권한을 지정할 수 있습니다. 가능한 값은 프라이빗,그룹,커뮤니티입니다.

SharingProfileGroup

갤러리 공유 프로필 그룹

Name 형식 Description
ids

string[]

갤러리에서 공유하려는 구독/테넌트 ID 목록입니다.

type

SharingProfileGroupTypes

이 속성을 사용하면 공유 그룹의 유형을 지정할 수 있습니다. 가능한 값은 구독,AADTenants입니다.

SharingProfileGroupTypes

이 속성을 사용하면 공유 그룹의 유형을 지정할 수 있습니다. 가능한 값은 구독,AADTenants입니다.

Description
Subscriptions
AADTenants

SharingState

응답에만 표시되는 갤러리의 공유 상태입니다.

Description
Succeeded
InProgress
Failed
Unknown

SharingStatus

현재 갤러리의 공유 상태입니다.

Name 형식 Description
aggregatedState

SharingState

현재 갤러리의 집계된 공유 상태입니다.

summary

RegionalSharingStatus[]

모든 지역 공유 상태에 대한 요약입니다.

SoftDeletePolicy

갤러리의 일시 삭제 정책에 대한 정보를 포함합니다.

Name 형식 Description
isSoftDeleteEnabled

boolean

이 갤러리의 리소스에 대해 일시 삭제를 사용하도록 설정하여 보존 시간 내에 복구할 수 있습니다.

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

Name 형식 Description
createdAt

string (date-time)

리소스 만들기의 타임스탬프(UTC)입니다.

createdBy

string

리소스를 만든 ID입니다.

createdByType

createdByType

리소스를 만든 ID의 형식입니다.

lastModifiedAt

string (date-time)

리소스 마지막 수정의 타임스탬프(UTC)

lastModifiedBy

string

리소스를 마지막으로 수정한 ID입니다.

lastModifiedByType

createdByType

리소스를 마지막으로 수정한 ID의 형식입니다.

UserAssignedIdentitiesValue

Name 형식 Description
clientId

string

사용자 할당 ID의 클라이언트 ID입니다.

principalId

string

사용자 할당 ID의 보안 주체 ID입니다.