createVpc
    • PDF

    createVpc

    • PDF

    Article Summary

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

    개요

    VPC를 생성합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    regionCodeNoString- 리전 코드
    VPC가 생성될 리전(Region) 결정 가능
    regionCode는 getRegionList 액션을 통해 획득 가능
    Default : getRegionList 조회 결과의 첫 번째 리전을 선택
    vpcNameNoStringMin : 3, Max : 30
    소문자, 숫자, "-"의 특수문자만 허용하며 알파벳 문자로 시작해야 함
    영어 또는 숫자로 끝나야 함
    - 생성할 VPC 이름
    Default : NAVER CLOUD PLATFORM가 자동으로 부여함
    ipv4CidrBlockYesStringprivate 대역(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) 내에서 /16 ~ /28 범위여야 함생성할 VPC의 IP 주소 범위
    responseFormatTypeNoString- 응답 결과의 포맷 타입
    Options : xml | json
    Default : xml

    응답

    응답 데이터 타입

    • VpcList 타입
    VpcList extends CommonResponse
    private Integer totalRows;
    private List vpcList = new ArrayList<>();
    Vpc
    private String vpcNo;
    private String vpcName;
    private String ipv4CidrBlock;
    private CommonCode vpcStatus;
    private String regionCode;
    private Date createDate;

    예시

    요청 예시

    ncloud vpc createVpc --regionCode FKR --vpcName test-*** --ipv4CidrBlock ***.***.0.0/16
    

    응답 예시

    <createVpcResponse>
      <requestId>21a29c59-3139-4c23-9f92-10c1fddafef6</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <vpcList>
        <vpc>
          <vpcNo>***04</vpcNo>
          <vpcName>test-***</vpcName>
          <ipv4CidrBlock>***.***.0.0/16</ipv4CidrBlock>
          <vpcStatus>
            <code>INIT</code>
            <codeName>init</codeName>
          </vpcStatus>
          <regionCode>FKR</regionCode>
          <createDate>2020-07-27T17:17:05+0900</createDate>
        </vpc>
      </vpcList>
    </createVpcResponse>
    

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

    What's Next
    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.