setNasVolumeAccessControl
    • PDF

    setNasVolumeAccessControl

    • PDF

    기사 요약

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

    개요

    NAS의 기존 접근제어설정을 지우고 새롭게 설정합니다. 기존 설정을 유지한 채, 접근정보를 추가하기 위해서는 addNasVolumeAccessControl 액션을 사용해야 합니다.
    설정된 접근제어 권한은 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

    응답

    응답 바디

    예시

    요청 예시

    GET {SERVER_API_URL}/setNasVolumeAccessControl
    ?nasVolumeInstanceNo=***3118
    &accessControlRuleList.1.serverInstanceNo=***1003
    &accessControlRuleList.1.writeAccess=true
    &accessControlRuleList.2.customIp=***.***.3.81
    &accessControlRuleList2.writeAccess=true
    

    응답 예시

    <setNasVolumeAccessControlResponse>
      <requestId>febe8512-95d7-48c7-a665-f5876c54197f</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <nasVolumeInstanceList>
        <nasVolumeInstance>
          <nasVolumeInstanceNo>***3118</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-11-26T11:09:28+0900</createDate>
          <nasVolumeDescription></nasVolumeDescription>
          <mountInformation>***.***.53.74:/n2532613_test10</mountInformation>
          <volumeAllotmentProtocolType>
            <code>NFS</code>
            <codeName>NFS</codeName>
          </volumeAllotmentProtocolType>
          <volumeName>n***2613_test10</volumeName>
          <volumeTotalSize>1073741824000</volumeTotalSize>
          <volumeSize>1073741824000</volumeSize>
          <snapshotVolumeConfigurationRatio>0.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>
            <nasVolumeInstanceCustomIp>
              <customIp>***.***.3.81</customIp>
            </nasVolumeInstanceCustomIp>
          </nasVolumeInstanceCustomIpList>
          <nasVolumeServerInstanceList>
            <serverInstance>
              <serverInstanceNo>1021003</serverInstanceNo>
              <serverName>s1669aa4e78c</serverName>
              <serverDescription/>
              <cpuCount>2</cpuCount>
              <memorySize>4294967296</memorySize>
              <baseBlockStorageSize>53687091200</baseBlockStorageSize>
              <platformType>
                <code>LNX64</code>
                <codeName>Linux 64 Bit</codeName>
              </platformType>
              <loginKeyName>***-kim</loginKeyName>
              <isFeeChargingMonitoring>false</isFeeChargingMonitoring>
              <publicIp>***.***.46.237</publicIp>
              <privateIp>***.***.3.81</privateIp>
              <serverImageName>tensorflow-centos-7.3-64</serverImageName>
              <serverInstanceStatus>
                <code>RUN</code>
                <codeName>Server run state</codeName>
              </serverInstanceStatus>
              <serverInstanceOperation>
                <code>NULL</code>
                <codeName>Server NULL OP</codeName>
              </serverInstanceOperation>
              <serverInstanceStatusName>running</serverInstanceStatusName>
              <createDate>2018-10-22T16:19:50+0900</createDate>
              <uptime>2018-11-23T17:38:44+0900</uptime>
              <serverImageProductCode>SPSW0LINUX000066</serverImageProductCode>
              <serverProductCode>SPSVRSSD00000003</serverProductCode>
              <isProtectServerTermination>false</isProtectServerTermination>
              <portForwardingPublicIp>***.***.51.90</portForwardingPublicIp>
              <zone>
                <zoneNo>2</zoneNo>
                <zoneName>KR-1</zoneName>
                <zoneCode>KR-1</zoneCode>
                <zoneDescription>KR-1 zone</zoneDescription>
                <regionNo>1</regionNo>
              </zone>
              <region>
                <regionNo>1</regionNo>
                <regionCode>KR</regionCode>
                <regionName>KOREA</regionName>
              </region>
              <baseBlockStorageDiskType>
                <code>NET</code>
                <codeName>Network Storage</codeName>
              </baseBlockStorageDiskType>
              <baseBlockStorageDiskDetailType>
                <code>SSD</code>
                <codeName>SSD</codeName>
              </baseBlockStorageDiskDetailType>
              <serverInstanceType>
                <code>STAND</code>
                <codeName>Standard</codeName>
              </serverInstanceType>
              <userData></userData>
              <accessControlGroupList>
                <accessControlGroup>
                  <accessControlGroupConfigurationNo>***9995</accessControlGroupConfigurationNo>
                  <accessControlGroupName>ncloud-default-acg</accessControlGroupName>
                  <accessControlGroupDescription>Default AccessControlGroup</accessControlGroupDescription>
                  <isDefault>true</isDefault>
                  <createDate>2018-04-09T11:12:54+0900</createDate>
                </accessControlGroup>
              </accessControlGroupList>
              <instanceTagList/>
            </serverInstance>
          </nasVolumeServerInstanceList>
        </nasVolumeInstance>
      </nasVolumeInstanceList>
    </setNasVolumeAccessControlResponse>
    

    에러 코드

    아래 에러 코드는 이 액션(Action)에서 특징적으로 발생하는 에러입니다. 공통적으로 발생하는 에러에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요

    HTTP Response Code리턴 코드리턴 메시지
    40024138The server information for setting up NFS is invalid.
    40024152{0} IP is already entered.
    40024153{0} IP is Loopback IP.
    40024154{0} IP is public IP.
    40024155Please check the IP {0}.
    40024157IP {0} is not supported by region.

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

    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.