MENU
      create

        create


        기사 요약

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

        Data Forest 계정을 생성합니다.

        요청

        요청 파라미터

        파라미터명필수 여부타입제약 사항설명
        nameYESString- 최소 2자에서 최대 16자까지 입력
        - 영어소문자 / 숫자 / 하이픈(-) 으로 구성하여 설정
        Data Forest 계정 이름
        passwordYESString- 최소 8자에서 최대 20자까지 입력
        - 영어대소문자/특수문자/숫자 각각 1자 이상 포함하여 설정
        - 특수 문자(작은따옴표(' '), 큰따옴표(" "), 원 기호(₩), 빗금(/), 앰퍼샌드(&), 억음 부호(`), Space)는 포함 불가
        Data Forest 계정 패스워드

        요청 헤더

        공통 가이드 참조

        요청 바디

        • JSON
          {
              "name": "string",
              "password": "string"
          }
          JSON
        • XML
          <?xml version="1.0" encoding="UTF-8"?>
          <CreateAccountRequest>
            <name>string</name>
            <password>string</password>
          </CreateAccountRequest>
          XML

        응답

        응답 바디

        • JSON
          {
            "id": "string",
            "message": "string",
            "success": true
          }
          JSON
        • XML
          <?xml version="1.0" encoding="UTF-8"?>
          <CreateAccountResponse>
            <id>string</id>
            <message>string</message>
            <success>true</success>
          </CreateAccountResponse>
          XML

        오류코드

        DataForest 개요 참조

        예시

        요청 예시

        • HTTP

          POST https://df.apigw.ntruss.com/api/v2/accounts/create
          HOST: df.apigw.ntruss.com
          Content-Type: application/json
          x-ncp-apigw-signature-v2: Azm1WBMWDgEONUCUbsVkB4tRIpc053uOHU8bitbQRtU=
          x-ncp-apigw-timestamp: 1658898041497
          x-ncp-iam-access-key: 17F9A6E9F72BD92ED94B
          
          {
            "name": "cloud1",
            "password": "8ghmuu8x"
          }
          HTTP
        • BASH

          curl -X POST "https://df.apigw.ntruss.com/api/v2/accounts/create" \
          -H "accept: application/json" \
          -H "Content-Type: application/json" \
          -H "x-ncp-apigw-timestamp:1505290625682" \
          -H "x-ncp-iam-access-key:D78BB444D6D3C84CA38A" \
          -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \
          -d '{ "name": "cloud1", "password": "8ghmuu8x"}'\
          Bash

        응답 예시

        • HTTP

          HTTP StatusDescription
          200OK
        • BASH

          {
              "success": true,
              "id": "axE7wU9ERm8fTc7e17vNvu"
          }
          JSON
          {
              "success": false,
              "message": "Data Forest can only create and use one account per user."
          }
          JSON

        오류 코드 예시

        • HTTP
          HTTP StatusDescription
          400invalid request parameters
        • BASH
          {
              "message": "invalid request parameter (password, 'qaZ123@').
              Please enter a valid password, which must be at least 8 characters in length and contain a combination of at least three types of the following: lowercase letters, uppercase letters, special characters and numbers.",
              "success": false
          }
          JSON

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

        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.