createNasVolumeInstance
    • PDF

    createNasVolumeInstance

    • PDF

    Article Summary

    The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

    Can be used in a Classic environment.

    Overview

    Create NAS volume instances.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    volumeNameYesString- Name of the NAS volume to be created
    Enter the NAS volume name of 3 - 20 characters at the end of the NAS identification code given by NAVER Cloud Platform for customer identification
    volumeSizeYesLong500 GB to 10,000 GB- NAS volume size
    The default capacity of a volume ranges from 500 GB to 10,000 GB. Additions can be made in units of 100 GB.
    volumeAllotmentProtocolTypeCodeYesStringMin : 1, Max : 5- Volume allotment protocol type code
    Options : NFS | CIFS
    NFS: It can be mounted on Linux servers such as CentOS and Ubuntu.
    CIFS: It can be mounted on Windows Server.
    accessControlRuleList.N.serverInstanceNoNoStringNot to be duplicated- Server instance number
    You can obtain serverInstanceNo through the getServerInstanceList action.
    Only instance numbers of the servers owned by the user can be entered.
    Enter either serverInstanceNo or customIp, not both, for a single rule.
    accessControlRuleList.N.customIpNoStringNot to be duplicated- Custom IP
    You can obtain customIp through the getServerInstanceList action.
    Only private IPs can be set. Public IPs can't be set.
    Enter either serverInstanceNo or customIp, not both, for a single rule.
    accessControlRuleList.N.writeAccessNoBoolean- Whether writing permission is allowed
    Options : true | false
    Default : true
    cifsUserNameConditionalString- CIFS user name
    If volume allotment protocol type code (volumeAllotmentProtocolTypeCode) is CIFS, the user name and password are required.
    Enter the mount access ID, 6 to 19 characters in length, as a combination of English letters and numbers.
    cifsUserPasswordConditionalString- CIFS user password
    If volume allotment protocol type code (volumeAllotmentProtocolTypeCode) is CIFS, the user name and password are required.
    Enter the mount access password, 8 to 14 characters in length, as a combination of two or more English letters, numbers, and special characters.
    nasVolumeDescriptionNoStringMin : 1, Max : 1000NAS volume description
    regionNoNoStringMin : 1, Max : 5- Region number
    If you search by getting the region number, filtering is only available with that region.
    You can obtain the region number through the getRegionList action.
    default : 1 (KR)
    ex) regionNo=10
    zoneNoNoString- Zone number
    It determines the zone where the NAS volume will be created.
    You can obtain the status where input is possible through the getZoneList action.
    Default: Select the first zone of the region.
    isReturnProtectionNoBoolean- Termination protection status
    It sets termination protection status.
    Options : true | false
    Default : false
    isAsyncNoBoolean- Async status
    Options : true | false
    Default : false

    Response

    Response body

    Examples

    Request examples

    GET {SERVER_API_URL}/createNasVolumeInstance
    ?volumeName=testnas&volumeSize=500
    &volumeAllotmentProtocolTypeCode=NFS
    

    Response examples

    <createNasVolumeInstanceResponse>
      <requestId>270e693b-b265-4345-8f23-0476e82f141f</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <nasVolumeInstanceList>
        <nasVolumeInstance>
          <nasVolumeInstanceNo>***4361</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-26T19:40:14+0900</createDate>
          <nasVolumeDescription></nasVolumeDescription>
          <mountInformation>***.***.53.74:/n***2613_testnas</mountInformation>
          <volumeAllotmentProtocolType>
            <code>NFS</code>
            <codeName>NFS</codeName>
          </volumeAllotmentProtocolType>
          <volumeName>n***2613_testnas</volumeName>
          <volumeTotalSize>536870912000</volumeTotalSize>
          <volumeSize>536870912000</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>3</zoneNo>
            <zoneName>KR-2</zoneName>
            <zoneCode>KR-2</zoneCode>
            <zoneDescription>Pyeongchon zone</zoneDescription>
            <regionNo>1</regionNo>
          </zone>
          <isReturnProtection>false</isReturnProtection>
          <nasVolumeInstanceCustomIpList/>
          <nasVolumeServerInstanceList/>
        </nasVolumeInstance>
      </nasVolumeInstanceList>
    </createNasVolumeInstanceResponse>
    

    Error codes

    Errors that may occur while using this action are listed below. For more information about common errors, please refer to NAVER Cloud Platform API.

    HTTP Response CodeReturn codeReturn message
    40024138The server information for setting up NFS is invalid.
    40024139The {0} account you entered is already a CIFS account that is in use elsewhere.
    40024140Created CIFS account and entered CIFS account do not match.
    40024141Password must consist of 8 to 14 characters, a combination of English letters, numbers, and special characters (allow only! @$ % % ^ & *).
    40024142{0} volume name entered is already another name in use.
    40024143CIFS account is already registered
    40024144CIFS account does not exist
    40024145ACL setup is not available for CIFS volumes.
    40024146The snapshot setting percentage information is invalid.
    40024147The snapshot setup time information is invalid.
    40024148Snapshot settings are already turned off.
    40024149Snapshot immediate creation is not available because snapshot is not set.
    40024150Snapshot immediate creation is not available due to a 0 % snapshot setup.
    40024151No snapshot found with {0} name.
    40024152{0} IP is already entered.
    40024153{0} IP is Loopback IP.
    40024154{0} IP is public IP.
    40024155Please check the IP {0}.

    Was this article helpful?

    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.