getLoginKeyList
- 인쇄
- PDF
getLoginKeyList
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
VPC 환경에서 이용 가능합니다.
LoginKey 목록을 확인합니다.
요청
요청 헤더
요청 바디
- JSON
{}
- XML
<?xml version="1.0" encoding="UTF-8"?> <!-- XML example cannot be generated; root element name is undefined -->
응답
응답 바디
- JSON
{ "contents": [ { "createdAt": "2023-06-07T06:32:34.258Z", "fingerprint": "string", "loginKeyName": "string", "publicKey": "string" } ], "message": "string", "success": true, "total": 0 }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetLoginKeyListResponse> <contents> <createdAt>2023-06-07T06:33:19.001Z</createdAt> <fingerprint>string</fingerprint> <loginKeyName>string</loginKeyName> <publicKey>string</publicKey> </contents> <message>string</message> <success>true</success> <total>0</total> </GetLoginKeyListResponse>
오류코드
예시
요청 예시
POST https://df.apigw.ntruss.com/api/v2/notebooks/getLoginKeyList
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: F5O55GOTR4CqYJqPDnCu
curl -X POST "https://df.apigw.ntruss.com/api/v2/notebooks/getLoginKeyList" \
-H "accept: application/json" \
-H "Content-Type: application/json"\
-H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
-H "x-ncp-apigw-timestamp: 1684807368735" \
-H "x-ncp-apigw-signature-v2: InW80kKGn+SN1GFHlJjrdoIY/+/JcFvFd3gPTEw+eYU=" \
-d "{}"
응답 예시
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "total": 1, "contents": [ { "loginKeyName": "test-key", "publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbEiF7VfpErJK3U7pntP8j/Ife9hZ9Z5t/dEUVsICfsd0CzVPB/YURsNwnXowsrjS7nJWBnzhHPbHqbfS5P/ni7ntdgNsw3fhY5Rm/Jwvev8O/61KKDWCKNa7ncA6IeCeb3GyHpbOh4rzdVXQ9Pn6UOU8hssSKLhTw89WDUazWM2WAN+eMXZ3T6R1CmZclv7iJbqwIqLkHLFwh0guAt8c5MHCLpsMpWncaZ9wgm4gDgPfrXJDgn2ZHoBRPjEk4W8KRIm9DQf9IjjOcmU6tAtVcIKyDkvNO+J8mLfEY0rXwG0J7HUOayJ4r/+pQhTFRFUPFzuZp2MJHRRzLLlaPKD6F test-key\n", "fingerprint": "6b:d6:3a:cc:49:9e:86:10:2b:95:b9:76:0b:18:0a:8a", "createdAt": "2023-04-11T17:00:37.438+09:00" } ] }
이 문서가 도움이 되었습니까?