Galleries - Create Or Update

Shared Image Gallery 만들거나 업데이트합니다.

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

URI 매개 변수

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

string

Shared Image Gallery 이름입니다. 허용되는 문자는 중간에 점과 마침표가 허용되는 알파벳 및 숫자입니다. 최대 길이는 80자입니다.

resourceGroupName
path True

string

리소스 그룹의 이름.

subscriptionId
path True

string

Microsoft Azure 구독을 고유하게 식별하는 구독 자격 증명 구독 ID는 모든 서비스 호출에 대한 URI의 파트를 형성합니다.

api-version
query True

string

클라이언트 API 버전.

요청 본문

Name 필수 형식 Description
location True

string

리소스 위치

properties.description

string

이 Shared Image Gallery 리소스에 대한 설명입니다. 이 속성은 업데이트할 수 있습니다.

properties.identifier

GalleryIdentifier

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

properties.sharingProfile

SharingProfile

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

properties.softDeletePolicy

SoftDeletePolicy

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

tags

object

리소스 태그

응답

Name 형식 Description
200 OK

Gallery

정상

201 Created

Gallery

생성일

202 Accepted

Gallery

수락됨

Other Status Codes

CloudError

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

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.

Create a community gallery.

Sample Request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName?api-version=2023-07-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"
      }
    }
  }
}

Sample Response

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

Sample Request

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

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

Sample Response

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

Sample Request

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

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

Sample Response

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

Create or update a simple gallery.

Sample Request

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

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

Sample Response

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

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

Gallery

만들거나 업데이트하려는 Shared Image Gallery 대한 정보를 지정합니다.

GalleryIdentifier

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

GalleryProvisioningState

갤러리 또는 갤러리 아티팩트 현재 상태입니다.

GallerySharingPermissionTypes

이 속성을 사용하면 갤러리 공유 권한을 지정할 수 있습니다. 가능한 값은 Private,Groups,Community입니다.

InnerError

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

RegionalSharingStatus

갤러리 지역 공유 상태

SharingProfile

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

SharingProfileGroup

갤러리 공유 프로필 그룹

SharingProfileGroupTypes

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

SharingState

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

SharingStatus

현재 갤러리의 상태 공유.

SoftDeletePolicy

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

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

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

만들거나 업데이트하려는 Shared Image Gallery 대한 정보를 지정합니다.

Name 형식 Description
id

string

리소스 ID

location

string

리소스 위치

name

string

리소스 이름

properties.description

string

이 Shared Image Gallery 리소스에 대한 설명입니다. 이 속성은 업데이트할 수 있습니다.

properties.identifier

GalleryIdentifier

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

properties.provisioningState

GalleryProvisioningState

갤러리 또는 갤러리 아티팩트 현재 상태입니다.
응답에만 표시되는 프로비전 상태입니다.

properties.sharingProfile

SharingProfile

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

properties.sharingStatus

SharingStatus

현재 갤러리의 상태 공유.

properties.softDeletePolicy

SoftDeletePolicy

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

tags

object

리소스 태그

type

string

리소스 유형

GalleryIdentifier

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

Name 형식 Description
uniqueName

string

Shared Image Gallery 고유 이름입니다. 이 이름은 Azure에서 자동으로 생성됩니다.

GalleryProvisioningState

갤러리 또는 갤러리 아티팩트 현재 상태입니다.

Name 형식 Description
Creating

string

Deleting

string

Failed

string

Migrating

string

Succeeded

string

Updating

string

GallerySharingPermissionTypes

이 속성을 사용하면 갤러리 공유 권한을 지정할 수 있습니다. 가능한 값은 Private,Groups,Community입니다.

Name 형식 Description
Community

string

Groups

string

Private

string

InnerError

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

Name 형식 Description
errordetail

string

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

exceptiontype

string

예외 형식입니다.

RegionalSharingStatus

갤러리 지역 공유 상태

Name 형식 Description
details

string

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

region

string

지역 이름

state

SharingState

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

SharingProfile

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

Name 형식 Description
communityGalleryInfo

CommunityGalleryInfo

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

groups

SharingProfileGroup[]

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

permissions

GallerySharingPermissionTypes

이 속성을 사용하면 갤러리 공유 권한을 지정할 수 있습니다. 가능한 값은 Private,Groups,Community입니다.

SharingProfileGroup

갤러리 공유 프로필 그룹

Name 형식 Description
ids

string[]

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

type

SharingProfileGroupTypes

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

SharingProfileGroupTypes

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

Name 형식 Description
AADTenants

string

Subscriptions

string

SharingState

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

Name 형식 Description
Failed

string

InProgress

string

Succeeded

string

Unknown

string

SharingStatus

현재 갤러리의 상태 공유.

Name 형식 Description
aggregatedState

SharingState

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

summary

RegionalSharingStatus[]

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

SoftDeletePolicy

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

Name 형식 Description
isSoftDeleteEnabled

boolean

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