setMemberServerImageSharingPermission

Prev Next

Available in VPC

Overview

Sets sharing permission for member server images.

Caution

My server images on KVM servers are not supported.

Request

Request parameter

Parameter name Required Type Restrictions Description
regionCode No String - Region code
Determine the Region in which the member server image instance will be set for sharing permissions
regionCode can be obtained through the getRegionList action
Default: Select the first Region of the getRegionList search result
memberServerImageInstanceNo Yes String - Member server image instance number
memberServerImageInstanceNo can be obtained through the getMemberServerImageInstanceList action
targetLoginIdList.N No List<String> - Target login ID list
Specify the list of login IDs of the target to share the member server image with
If targetLoginId is not entered, all sharing settings will be removed
e.g., targetLoginIdList.1=id1@email.com&targetLoginIdList.2=id2@email.com
responseFormatType No String - Response result's format type
Options: xml | json
Default: xml

Response

Response body

Examples

Request example

GET {API_URL}/setMemberServerImageSharingPermission
?memberServerImageInstanceNo=***4605
&targetLoginIdList.1=test-***@naver.com

Response example

<setMemberServerImageSharingPermissionResponse>
  <requestId/>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <memberServerImageInstanceList>
    <memberServerImageInstance>
      <memberServerImageInstanceNo>***4605</memberServerImageInstanceNo>
      <memberServerImageName>test-***</memberServerImageName>
      <memberServerImageDescription/>
      <originalServerInstanceNo>***4594</originalServerInstanceNo>
      <originalServerImageProductCode>SW.VSVR.OS.LNX64.CNTOS.0703.B050</originalServerImageProductCode>
      <memberServerImageInstanceStatus>
        <code>CREAT</code>
        <codeName>NSI CREATED state</codeName>
      </memberServerImageInstanceStatus>
      <memberServerImageInstanceOperation>
        <code>NULL</code>
        <codeName>NSI NULLOP</codeName>
      </memberServerImageInstanceOperation>
      <memberServerImageInstanceStatusName>created</memberServerImageInstanceStatusName>
      <createDate>2021-01-15T08:56:24+0900</createDate>
      <shareStatus>
        <code>SHARE</code>
        <codeName>NSI Share SHARE State</codeName>
      </shareStatus>
      <sharedLoginIdList>
        <sharedLoginId>test-***@naver.com</sharedLoginId>
      </sharedLoginIdList>
    </memberServerImageInstance>
  </memberServerImageInstanceList>
</setMemberServerImageSharingPermissionResponse>