Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

setMemberServerImageSharingPermission

Prev Next

Available in VPC

Set sharing permissions for a member server image. KVM-based server images are not supported.

Syntax

The setMemberServerImageSharingPermission syntax is as follows:

./ncloud vserver setMemberServerImageSharingPermission \
    --memberServerImageInstanceNo <member-server-image-instance-no> \
    [--targetLoginIdList <target-login-id-list>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running setMemberServerImageSharingPermission.

Required options

The following options are required for setMemberServerImageSharingPermission.

Options Type Required Description
--memberServerImageInstanceNo String Required Server image instance number

Optional options

These are the optional options for setMemberServerImageSharingPermission. Options that are not specified will use their default values.

Options Type Required Description
--targetLoginIdList List Optional List of NAVER Cloud Platform account login IDs
  • Replace the existing list with the list of accounts entered.
  • If not entered, all sharing settings are deleted.
  • You can enter multiple items separated by spaces. (e.g., --targetLoginIdList id1@example.com id2@example.com)

Common options

For information about the options common to all vserver subcommands, see Server (VPC) options.

Examples

If the request to set sharing permissions for a member server image is successful, the instance's identification information and the updated list of sharing recipients are returned.

Command

The command example is as follows:

./ncloud vserver setMemberServerImageSharingPermission \
    --memberServerImageInstanceNo 91234567 \
    --targetLoginIdList recipient@example.com \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "setMemberServerImageSharingPermissionResponse": {
    "totalRows": 1,
    "memberServerImageInstanceList": [
      {
        "memberServerImageInstanceNo": "91234567",
        "memberServerImageName": "test-msi-01",
        "memberServerImageDescription": "Test member server image",
        "originalServerInstanceNo": "34567890",
        "originalServerImageProductCode": "SW.VSVR.OS.LNX64.ROCKY.0810.B050",
        "memberServerImageInstanceStatus": {
          "code": "CREAT",
          "codeName": "NSI CREATED state"
        },
        "memberServerImageInstanceOperation": {
          "code": "NULL",
          "codeName": "NSI NULL OP"
        },
        "memberServerImageInstanceStatusName": "created",
        "createDate": "2026-05-14T16:33:01+0900",
        "memberServerImageBlockStorageTotalRows": 1,
        "memberServerImageBlockStorageTotalSize": 53687091200,
        "shareStatus": {
          "code": "SHARE",
          "codeName": "NSI Share SHARE State"
        },
        "sharedLoginIdList": [
          "recipient@example.com"
        ]
      }
    ],
    "requestId": "4b234567-8901-2345-4567-123456789012",
    "returnCode": "0",
    "returnMessage": "success"
  }
}