DB Connection 확인
    • PDF

    DB Connection 확인

    • PDF

    기사 요약

    도메인에 DB upload 기능을 실행전 connection 을 확인합니다.

    POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/db_upload/check_connection
    

    요청

    요청 바디

    파라미터명필수 여부타입제약 사항설명
    dbKindYesStringmysql, mariadbDB 종류
    hostYesStringDB의 IP
    portYesIntegerDB 포트
    userYesString사용자 아이디
    passwordYesString비밀번호
    dbYesStringDatabase 이름
    charsetYesStringDB의 character
    connectTimeoutYesIntconnection 타임아웃, 단위 second

    응답

    응답 Status

    HTTP StatusDesc
    200OK(조회 완료)
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    예시

    요청 예시

    POST /CloudSearch/real/v1/db_upload/check_connection
    Host: cloudsearch.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: cDwtHuQeGmwWyNmwlN6XIGA66zge4iMXvfoDQNna05g=
    x-ncp-apigw-timestamp: 1545817618751
    x-ncp-iam-access-key: teGTwtcSEGA7fu28BGGi
    {
        "dbKind": "mysql",
        "host": "2.2.2.2",
        "port": 3306,
        "user": "root",
        "password": "alskdj",
        "db": "cloud_search",
        "charset": "utf8",
        "connectTimeout": 4,
    }
    

    응답 예시

    {"result":"ok"}
    

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

    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.