setNasVolumeAccessControl
    • PDF

    setNasVolumeAccessControl

    • PDF

    기사 요약

    Classic 환경에서 이용 가능합니다.

    개요

    NAS 볼륨 인스턴스 접근 제어 설정

    설명

    NAS의 접근 제어를 설정합니다.
    설정된 접근제어 권한은 getNasVolumeAccessControlRuleList 액션을 통해 확인 가능합니다.

    요청 파라미터

    파라미터 명필수 여부타입제약사항설명
    nasVolumeInstanceNoYesString- NAS 볼륨 인스턴스 번호
    nasVolumeInstanceNo는 getNasVolumeInstanceList 액션을 통해 획득 가능
    accessControlRuleList.N.serverInstanceNoConditionalString중복 불가- 서버 인스턴스 번호
    serverInstanceNo는 getServerInstanceList 액션을 통해 획득 가능
    사용자가 소유하고 있는 서버의 인스턴스 번호만 입력 가능
    한 개의 Rule에 serverInstanceNo 또는 customIp 둘중 한가지만 입력
    accessControlRuleList.N.customIpConditionalString중복 불가- 커스텀 IP
    customIp는 getServerInstanceList 액션을 통해 획득 가능
    사설 IP만 설정 가능 공인 IP 설정 불가
    한 개의 Rule에 serverInstanceNo 또는 customIp 둘중 한가지만 입력
    accessControlRuleList.N.writeAccessNoBoolean- 쓰기 권한 여부
    Options : true | false
    Default : true

    응답 데이터 타입

    • NasVolumeInstanceList 타입
    NasVolumeInstanceList extends CommonResponse
    private int totalRows;
    private List<NasVolumeInstance> nasVolumeInstanceList = new ArrayList<NasVolumeInstance>();
    NasVolumeInstance
    private String nasVolumeInstanceNo;
    private CommonCode nasVolumeInstanceStatus;
    private CommonCode nasVolumeInstanceOperation;
    private String nasVolumeInstanceStatusName;
    private Date createDate;
    private String nasVolumeInstanceDescription;
    private String mountInformation;
    private CommonCode volumeAllotmentProtocolType;
    private String volumeName;
    private long volumeTotalSize;
    private long volumeSize;
    private float snapshotVolumeConfigurationRatio;
    private CommonCode snapshotVolumeConfigPeriodType;
    private CommonCode snapshotVolumeConfigDayOfWeekType;
    private Integer snapshotVolumeConfigTime;
    private long snapshotVolumeSize;
    private Boolean isSnapshotConfiguration;
    private Boolean isEventConfiguration;
    private Region region;
    private Zone zone;
    private Boolean isReturnProtection;
    private List<NasVolumeInstanceCustomIp> nasVolumeInstanceCustomIpList = new ArrayList<NasVolumeInstanceCustomIp>();
    private List<ServerInstance> nasVolumeServerInstanceList = new ArrayList<ServerInstance>();

    예시

    호출

    ncloud server setNasVolumeAccessControl --nasVolumeInstanceNo ***7367 --accessControlRuleList "customIp='***.***.1.1', writeAccess=true" "customIp='***.***.1.2', writeAccess=true"
    

    응답

    {
      "setNasVolumeAccessControlResponse": {
        "requestId": "f7c2b5f8-a38c-467c-a306-d6b3895cf760",
        "returnCode": "0",
        "returnMessage": "success",
        "totalRows": 1,
        "nasVolumeInstanceList": [
          {
            "nasVolumeInstanceNo": "***7367",
            "nasVolumeInstanceStatus": {
              "code": "CREAT",
              "codeName": "NAS create"
            },
            "nasVolumeInstanceOperation": {
              "code": "NULL",
              "codeName": "NAS NULL OP"
            },
            "nasVolumeInstanceStatusName": "created",
            "createDate": "2018-02-23T15:49:22+0900",
            "nasVolumeInstanceDescription": "",
            "mountInformation": "***.***.84.81:/n***212_mktest",
            "volumeAllotmentProtocolType": {
              "code": "NFS",
              "codeName": "NFS"
            },
            "volumeName": "n***212_mktest",
            "volumeTotalSize": 21474836480,
            "volumeSize": 21474836480,
            "snapshotVolumeConfigurationRatio": 0.0,
            "snapshotVolumeSize": 0,
            "isSnapshotConfiguration": false,
            "isEventConfiguration": false,
            "region": {
              "regionNo": "1",
              "regionCode": "KR",
              "regionName": "KOREA"
            },
            "zone": {
              "zoneNo": "2",
              "zoneName": "KR-1",
              "zoneCode": "KR-1",
              "zoneDescription": "KR-1 zone",
              "regionNo" : "1"
            },
            "isReturnProtection": false,
            "nasVolumeInstanceCustomIpList": [
              {
                "customIp": "***.***.1.1"
              },
              {
                "customIp": "***.***.1.2"
              }
            ],
            "nasVolumeServerInstanceList": []
          }
        ]
      }
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <setNasVolumeAccessControlResponse>
      <requestId>f7c2b5f8-a38c-467c-a306-d6b3895cf760</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <nasVolumeInstanceList>
        <nasVolumeInstanceNo>***7367</nasVolumeInstanceNo>
        <nasVolumeInstanceStatus>
          <code>CREAT</code>
          <codeName>NAS create</codeName>
        </nasVolumeInstanceStatus>
        <nasVolumeInstanceOperation>
          <code>NULL</code>
          <codeName>NAS NULL OP</codeName>
        </nasVolumeInstanceOperation>
        <nasVolumeInstanceStatusName>created</nasVolumeInstanceStatusName>
        <createDate>2018-02-23T15:49:22+0900</createDate>
        <nasVolumeInstanceDescription></nasVolumeInstanceDescription>
        <mountInformation>***.***.84.81:/n***212_mktest</mountInformation>
        <volumeAllotmentProtocolType>
          <code>NFS</code>
          <codeName>NFS</codeName>
        </volumeAllotmentProtocolType>
        <volumeName>n***212_mktest</volumeName>
        <volumeTotalSize>21474836480</volumeTotalSize>
        <volumeSize>21474836480</volumeSize>
        <snapshotVolumeConfigurationRatio>0</snapshotVolumeConfigurationRatio>
        <snapshotVolumeSize>0</snapshotVolumeSize>
        <isSnapshotConfiguration>false</isSnapshotConfiguration>
        <isEventConfiguration>false</isEventConfiguration>
        <region>
          <regionNo>1</regionNo>
          <regionCode>KR</regionCode>
          <regionName>KOREA</regionName>
        </region>
        <zone>
          <zoneNo>2</zoneNo>
          <zoneName>KR-1</zoneName>
          <zoneCode>KR-1</zoneCode>
          <zoneDescription>KR-1 zone</zoneDescription>
          <regionNo>1</regionNo>
        </zone>
        <isReturnProtection>false</isReturnProtection>
        <nasVolumeInstanceCustomIpList>
          <customIp>***.***.1.1</customIp>
        </nasVolumeInstanceCustomIpList>
        <nasVolumeInstanceCustomIpList>
          <customIp>***.***.1.2</customIp>
        </nasVolumeInstanceCustomIpList>
        <nasVolumeServerInstanceList/>
      </nasVolumeInstanceList>
    </setNasVolumeAccessControlResponse>
    

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.