인증키 생성
- Print
- PDF
인증키 생성
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
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.
(NSML 접속용) 인증키를 생성합니다.
POST https://nsml.apigw.ntruss.com/nsml/v1/auth-keys
요청
요청 파라미터
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
title | String | 인증 키 title | |
key | String | 인증 키 |
응답
응답 Status
HTTP Status | Desc |
---|---|
201 | Created |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
406 | Not Accepted |
500 | Internal Server Error |
예시
요청 예시
POST /nsml/v1/auth-keys
Host: nsml.apigw.ntruss.com
accept: application/json
x-ncp-iam-access-key: {Access key}
x-ncp-apigw-signature-v2: {API GW signature}
x-ncp-apigw-timestamp: {timestamp}
x-ncp-apigw-api-key: {apigw-api-key}
{
"title": "test-auth-key1",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Bsp2RdQ+rxa2Q+fwwK/Qnhl8lgpBKYksN4yVeSzgbdGtYWYKFAkYuG5wlrWwRnfMUKzBWflMF+oI7ZrK9WLx1Lk+ipVKcLZIjD0XSG+tLYFBCVEHsMKKn8H2k/QDbQRKjLOvuFIp0+LUGCfbVbG9KzIs5CbiZuAf/Jp7tFq3Wl7cyFOA+1qwl8x8JcC2vZ0Yup5hysWM3i2z9BfiStnpiDTfYSDHptsMCgwdRHEZ3Mkmvr+oDmaUhlGxxpy6kcjCPvatPq3o5J//N0XZCBWlW48tkAYd59xVGctO0H2nq5PlVA1kVq5l+AJVoJ0tei5+YkqY+bH5tOt+dOzltwPb test-user@test"
}
Was this article helpful?