setNasVolumeAccessControl
    • PDF

    setNasVolumeAccessControl

    • PDF

    기사 요약

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

    개요

    볼륨 할당 프로토콜이 NFS인 NAS 볼륨 인스턴스의 접근제어를 주어진 서버 인스턴스 번호 리스트로 설정합니다.
    설정된 접근제어 권한은 getNasVolumeAccessControlRuleList 액션을 통해 확인 가능합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    regionCodeNoString- 리전 코드
    접근제어가 설정될 NAS 볼륨 인스턴스의 리전(Region) 결정 가능
    regionCode는 getRegionList 액션을 통해 획득 가능
    Default : getRegionList 조회 결과의 첫 번째 리전을 선택
    nasVolumeInstanceNoYesString- 접근제어를 설정할 NAS 볼륨 인스턴스 번호
    nasVolumeInstanceNo는 getNasVolumeInstanceList 액션을 통해 획득 가능
    볼륨 할당 프로토콜 유형이 NFS인 NAS 볼륨 인스턴스만 접근제어를 설정할 수 있음
    accessControlRuleList.N.serverInstanceNoYesString- 접근제어로 설정할 서버 인스턴스 번호
    serverInstanceNo는 getServerInstanceList 액션을 통해 획득 가능
    accessControlRuleList.N.writeAccessNoBoolean- 쓰기 권한 여부
    Options : true | false
    Default : true

    응답

    응답 데이터 타입

    • NasVolumeInstanceList 타입
    NasVolumeInstanceList extends CommonResponse
    private Integer totalRows;
    private List<NasVolumeInstance> nasVolumeInstanceList = new ArrayList<>();
    NasVolumeInstance
    private String nasVolumeInstanceNo;
    private CommonCode nasVolumeInstanceStatus;
    private CommonCode nasVolumeInstanceOperation;
    private String nasVolumeInstanceStatusName;
    private Date createDate;
    private String nasVolumeDescription;
    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 String regionCode;
    private String zoneCode;
    private ServerInstanceNoList nasVolumeServerInstanceNoList;
    private Boolean isEncryptedVolume;
    private List<NasVolumeInstanceCustomIp> nasVolumeInstanceCustomIpList;
    private Boolean isReturnProtection;
    NasVolumeInstanceCustomIp
    private String customIp;

    예시

    요청 예시

    ncloud vnas setNasVolumeAccessControl --regionCode KR --nasVolumeInstanceNo ***3901 --accessControlRuleList "serverInstanceNo=***4299, writeAccess=true"
    

    응답 예시

    <setNasVolumeAccessControlResponse>
      <requestId>b6a4308d-48f3-4f0d-90a0-c00f3c41da54</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <nasVolumeInstanceList>
        <nasVolumeInstance>
          <nasVolumeInstanceNo>***3901</nasVolumeInstanceNo>
          <nasVolumeInstanceStatus>
            <code>CREAT</code>
            <codeName>NAS create</codeName>
          </nasVolumeInstanceStatus>
          <nasVolumeInstanceOperation>
            <code>NULL</code>
            <codeName>NAS NULL OP</codeName>
          </nasVolumeInstanceOperation>
          <nasVolumeInstanceStatusName></nasVolumeInstanceStatusName>
          <createDate>1970-01-01T09:00:02+0900</createDate>
          <nasVolumeDescription></nasVolumeDescription>
          <mountInformation>***.***.0.20:/n***4567_test***</mountInformation>
          <volumeAllotmentProtocolType>
            <code>NFS</code>
            <codeName>NFS</codeName>
          </volumeAllotmentProtocolType>
          <volumeName>n***4567_test***</volumeName>
          <volumeTotalSize>536870912000</volumeTotalSize>
          <volumeSize>536870912000</volumeSize>
          <snapshotVolumeConfigurationRatio>0.0</snapshotVolumeConfigurationRatio>
          <snapshotVolumeSize>0</snapshotVolumeSize>
          <isSnapshotConfiguration>false</isSnapshotConfiguration>
          <isEventConfiguration>false</isEventConfiguration>
          <regionCode>KR</regionCode>
          <zoneCode>KR-1</zoneCode>
          <nasVolumeServerInstanceNoList>
            <serverInstanceNo>***4299</serverInstanceNo>
          </nasVolumeServerInstanceNoList>
          <isEncryptedVolume>false</isEncryptedVolume>
          <nasVolumeInstanceCustomIpList>
            <nasVolumeInstanceCustomIp>
              <customIp>10.0.0.1</customIp>
            </nasVolumeInstanceCustomIp>
          </nasVolumeInstanceCustomIpList>
        </nasVolumeInstance>
      </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.