Authorizer
- 인쇄
- PDF
Authorizer
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Authorizer 생성
URL
POST https://apigateway.apigw.ntruss.com/api/v1/authorizers
요청 파라미터
- 없음
요청 바디
{
"cacheTtlSec" : 0,
"authorizerName" : "authorizerName",
"authorizerConfig" : {
"functionId" : "functionId",
"payload" : [ {
"in" : "HEADER",
"name" : "name"
} ],
"region" : "region"
},
"authorizerType" : "CLOUD_FUNCTIONS",
"authorizerDescription" : "authorizerDescription"
}
응답 코드
- 201
응답 바디
{
"cacheTtlSec" : 0,
"authorizerId" : "authorizerId",
"domainCode" : "domainCode",
"modTime" : "2000-01-23T04:56:07.000+00:00",
"modifier" : "modifier",
"authorizerName" : "authorizerName",
"tenantId" : "tenantId",
"authorizerConfig" : {
"functionId" : "functionId",
"payload" : [ {
"in" : "HEADER",
"name" : "name"
} ],
"region" : "region"
},
"authorizerType" : "authorizerType",
"authorizerDescription" : "authorizerDescription"
}
Authorizer 삭제
URL
DELETE https://apigateway.apigw.ntruss.com/api/v1/authorizers/{authorizer-id}
요청 파라미터
이름 | 위치 | 필수여부 | 타입 | 설명 |
---|---|---|---|---|
authorizerId | path | Y | String | Authorizer Id 길이(최대/최소): 0/10 |
요청 바디
- 없음
응답 코드
- 204
응답 바디
- 없음
Authorizer 조회
URL
GET https://apigateway.apigw.ntruss.com/api/v1/authorizers/{authorizer-id}
요청 파라미터
이름 | 위치 | 필수여부 | 타입 | 설명 |
---|---|---|---|---|
authorizerId | path | Y | String | Authorizer Id 길이(최대/최소): 0/10 |
요청 바디
- 없음
응답 코드
- 200
응답 바디
{
"cacheTtlSec" : 0,
"authorizerId" : "authorizerId",
"domainCode" : "domainCode",
"modTime" : "2000-01-23T04:56:07.000+00:00",
"modifier" : "modifier",
"authorizerName" : "authorizerName",
"tenantId" : "tenantId",
"authorizerConfig" : {
"functionId" : "functionId",
"payload" : [ {
"in" : "HEADER",
"name" : "name"
} ],
"region" : "region"
},
"authorizerType" : "authorizerType",
"authorizerDescription" : "authorizerDescription"
}
Authorizer 목록 검색
URL
GET https://apigateway.apigw.ntruss.com/api/v1/authorizers
요청 파라미터
이름 | 위치 | 필수여부 | 타입 | 설명 |
---|---|---|---|---|
offset | query string | N | Long | Offset 최소: 0 최대: 9,223,372,036,854,775,807 |
limit | query string | N | Long | Limit 최소: 1 최대: 9,223,372,036,854,775,807 |
name | query string | N | String | Name 길이(최대/최소): 0/20 |
요청 바디
- 없음
응답 코드
- 200
응답 바디
{
"initialCount" : 0,
"total" : 6,
"authorizers" : [ {
"authorizerId" : "authorizerId",
"authorizerName" : "authorizerName",
"disabled" : true,
"permission" : "permission",
"authorizerDescription" : "authorizerDescription",
"actionName" : "actionName"
} ]
}
Authorizer 수정
URL
PUT https://apigateway.apigw.ntruss.com/api/v1/authorizers/{authorizer-id}
요청 파라미터
이름 | 위치 | 필수여부 | 타입 | 설명 |
---|---|---|---|---|
authorizerId | path | Y | String | Authorizer Id 길이(최대/최소): 0/10 |
요청 바디
{
"cacheTtlSec" : 0,
"authorizerName" : "authorizerName",
"authorizerConfig" : {
"functionId" : "functionId",
"payload" : [ {
"in" : "HEADER",
"name" : "name"
} ],
"region" : "region"
},
"authorizerType" : "CLOUD_FUNCTIONS",
"authorizerDescription" : "authorizerDescription"
}
응답 코드
- 204
응답 바디
- 없음
Authorizer 테스트
URL
POST https://apigateway.apigw.ntruss.com/api/v1/authorizers/{authorizer-id}/test
요청 파라미터
이름 | 위치 | 필수여부 | 타입 | 설명 |
---|---|---|---|---|
authorizerId | path | Y | String | Authorizer Id 길이(최대/최소): 0/10 |
요청 바디
{
"params" : "{}"
}
응답 코드
- 200
응답 바디
{
"response" : {
"latency" : "latency",
"body" : "{}",
"status" : 0
}
}
이 문서가 도움이 되었습니까?