addLoadBalancerSslCertificate
- 인쇄
- PDF
addLoadBalancerSslCertificate
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
개요
로드밸런서에서 사용하는 SSL 인증서를 추가합니다.
요청
요청 헤더
헤더 명 | 설명 |
---|---|
x-ncp-apigw-timestamp | 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타낸 것 API Gateway 서버와 시간차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주 |
x-ncp-apigw-api-key | API Gateway에서 발급받은 키(v2버전에서는 넣을 필요 없음) |
x-ncp-iam-access-key | 네이버 클라우드 플랫폼[공공기관용]에서 발급받은 API Key 또는 IAM에서 발급받은 AccessKey |
x-ncp-apigw-signature-v2 | Body를 AccessKey와 맵핑되는 SecretKey로 암호화한 서명 HMAC 암호화 알고리즘은 HmacSHA256 사용 |
요청 파라미터
파라미터 명 | 필수 여부 | 타입 | 제약사항 | 설명 |
---|---|---|---|---|
certificateName | Yes | String | 중복 불가 | 로드밸런서에 추가할 인증서명 입력 |
privateKey | Yes | String | 중복 불가 | 인증서 비밀키 입력 |
publicKeyCertificate | Yes | String | 중복 불가 | 인증서 공개키 입력 |
certificateChain | Optional | String | 중복 불가 | chainCA 인증서 (인증서 발급시 chainCA를 같이 발급받은 경우 필수) |
응답
응답 바디
예시
요청 예시
POST {LOADBALANCER_API_URL}/loadbalancer/v2/addLoadBalancerSslCertificate?certificateName=ssl-key&privateKey=-----BEGIN%20RSA%20PRIVATE%20KEY-----%0AMIICXQIBAAKBgQDVCm3rCfYeQDQW1yzWIofJtRc3wD6fft4Vm%2FEhFAFg77tPzCUr%0AGwMEAdJ0a6mM8bTJdNAsLgS2ArqcNhwDwt%2Fo7Vwo6Jo8faYDJzz6CFyBMXr2IRfq%0AirT3ffoCq%2B3tL9rwQ9llP5%2BL%2BPo%2Fk1BfaJd5Z%2BmTn8UG5T8Npaj4UQOYuwIDAQAB%0AAoG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MAoGA1UEChMDTkJQMQwwCgYDVQQLEwNSTkQxDTALBgNVBAMTBHRlc3QxHzAdBgkq%0AhkiG9w0BCQEWEGZhc3QwMkBuYXZlci5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0A%0AMIGJAoGBANUKbesJ9h5ANBbXLNYih8m1FzfAPp9%2B3hWb8SEUAWDvu0%2FMJSsbAwQB%0A0nRrqYzxtMl00CwuBLYCupw2HAPC3%2BjtXCjomjx9pgMnPPoIXIExevYhF%2BqKtPd9%0A%2BgKr7e0v2vBD2WU%2Fn4v4%2Bj%2BTUF9ol3ln6ZOfxQblPw2lqPhRA5i7AgMBAAEwDQYJ%0AKoZIhvcNAQEFBQADgYEAhbcSYDrEnBKuEepa35FQBlLMTVA%2B2RocfRZPdXV0s3i5%0A5iwH%2F6S23Gy%2FnKkEXJSGhUst5HjgRJqhvHyfM2uXY8zeq0oVhGu0C3iaE49Q0Vdp%0Ai1pMe%2B14UFKW8iohI8ZU2eUL5tm0VdNtV8JPF%2Fsagh4LLyPzrf65PwOIbtSttcY%3D%0A-----END%20CERTIFICATE-----
응답 예시
<addLoadBalancerSslCertificateResponse>
<requestId>3c860c5d-10b0-464d-b7da-c464ae31c042</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<sslCertificateList>
<sslCertificate>
<certificateName>ssl-key</certificateName>
<privateKey>-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQDVCm3rCfYeQDQW1yzWIofJtRc3wD6fft4Vm/EhFAFg77tPzCUr
GwMEAdJ0a6mM8bTJdNAsLgS2ArqcNhwDwt/o7Vwo6Jo8faYDJzz6CFyBMXr2IRfq
irT3ffoCq+3tL9rwQ9llP5+L+Po/k1BfaJd5Z+mTn8UG5T8Npaj4UQOYuwIDAQAB
AoGBAIxATnbC2xW1PNWgmPLsTqq7HmrklBWahwiA3jDho7q2eIEjK4ECSmzz6iIc
0sVoRpWt4nKDZTSR/VpjwPO08oSIywUFyh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b8SEUAWDvu0/MJSsbAwQB
0nRrqYzxtMl00CwuBLYCupw2HAPC3+jtXCjomjx9pgMnPPoIXIExevYhF+qKtPd9
+gKr7e0v2vBD2WU/n4v4+j+TUF9ol3ln6ZOfxQblPw2lqPhRA5i7AgMBAAEwDQYJ
KoZIhvcNAQEFBQADgYEAhbcSYDrEnBKuEepa35FQBlLMTVA+2RocfRZPdXV0s3i5
5iwH/6S23Gy/nKkEXJSGhUst5HjgRJqhvHyfM2uXY8zeq0oVhGu0C3iaE49Q0Vdp
i1pMe+14UFKW8iohI8ZU2eUL5tm0VdNtV8JPF/sagh4LLyPzrf65PwOIbtSttcY=
-----END CERTIFICATE-----</publicKeyCertificate>
<certificateChain></certificateChain>
</sslCertificate>
</sslCertificateList>
</addLoadBalancerSslCertificateResponse>
에러 코드
아래 에러 코드는 이 액션(Action)에서 특징적으로 발생하는 에러입니다. 공통적으로 발생하는 에러에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요
HTTP Response Code | 리턴 코드 | 리턴 메시지 |
---|---|---|
400 | 26036 | Not found certificateName OR privateKey OR publicKeyCertificate Please check your input parameter. |
400 | 26041 | The certificate name already existent. |
이 문서가 도움이 되었습니까?