Available in VPC
Set sharing permissions for My server image instance. Update the list of accounts to which you want to grant sharing permissions.
KVM-based server images are not supported.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /vserver/v2/setMemberServerImageSharingPermission |
This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.
Request headers
For information about the headers common to all Server APIs, see Server request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
regionCode |
String | Optional | Region code
|
memberServerImageInstanceNo |
String | Required | Server image instance number |
targetLoginIdList.N |
Array | Optional | NAVER Cloud Platform account login ID list
|
responseFormatType |
String | Optional | Format of the response data
|
Request example
The request example is as follows:
curl --location --request GET 'https://ncloud.apigw.ntruss.com/vserver/v2/setMemberServerImageSharingPermission
?memberServerImageInstanceNo=*****2264
&targetLoginIdList.1=test-***@naver.com
&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
setMemberServerImageSharingPermissionResponse |
Object | - | Response result |
setMemberServerImageSharingPermissionResponse.requestId |
String | - | ID for the request
|
setMemberServerImageSharingPermissionResponse.returnCode |
String | - | Response code |
setMemberServerImageSharingPermissionResponse.returnMessage |
String | - | Response message |
Response status codes
For information about the response status codes common to all Server APIs, see Server response status codes.
Response example
The response example is as follows:
{
"setMemberServerImageSharingPermissionResponse": {
"totalRows": 1,
"memberServerImageInstanceList": [
{
"memberServerImageInstanceNo": "*****2264",
"memberServerImageName": "test-***",
"originalServerInstanceNo": "*****2010",
"originalServerImageProductCode": "SW.VSVR.OS.LNX64.UBNTU.SVR2004.B050",
"memberServerImageInstanceStatus": {
"code": "CREAT",
"codeName": "NSI CREATED state"
},
"memberServerImageInstanceOperation": {
"code": "NULL",
"codeName": "NSI NULL OP"
},
"memberServerImageInstanceStatusName": "created",
"createDate": "2025-06-26T11:09:07+0900",
"memberServerImageBlockStorageTotalRows": 1,
"memberServerImageBlockStorageTotalSize": 53687091200,
"shareStatus": {
"code": "SHARE",
"codeName": "NSI Share SHARE State"
},
"sharedLoginIdList": [
"test-***@naver.com"
]
}
],
"requestId": "a367bfea-cfd9-4732-a5a8-784cd4173c0d",
"returnCode": "0",
"returnMessage": "success"
}
}