Product
- Print
- PDF
Product
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Modify usage_plan associated with apiKeyRelation
URL
PUT https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/api-keys/{api-key-id}/stages/{stage-id}
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
apiKeyId | path | Y | String | Api Key Id Length(Min/Max): 0/10 |
stageId | path | Y | String | Stage Id Length(Min/Max): 0/10 |
Request Body
{
"usagePlanId" : "usagePlanId"
}
Response Code
- 204
Response Body
- None
Create a product
URL
POST https://apigateway.apigw.ntruss.com/api/v1/products
Request Parameter
- None
Request Body
{
"subscriptionCode" : "PROTECTED",
"description" : "description",
"productName" : "productName"
}
Response Code
- 201
Response Body
{
"product" : {
"invokeId" : "invokeId",
"domainCode" : "domainCode",
"productId" : "productId",
"isPublished" : true,
"modifier" : "modifier",
"permission" : "permission",
"productName" : "productName",
"subscriptionCode" : "PROTECTED",
"isDeleted" : true,
"modTime" : "2000-01-23T04:56:07.000+00:00",
"tenantId" : "tenantId",
"disabled" : true,
"productDescription" : "productDescription",
"actionName" : "actionName"
}
}
Delete a product
URL
DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
Request Body
- None
Response Code
- 204
Response Body
- None
Get self or published product
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
Request Body
- None
Response Code
- 200
Response Body
{
"product" : {
"invokeId" : "invokeId",
"domainCode" : "domainCode",
"productId" : "productId",
"isPublished" : true,
"modifier" : "modifier",
"permission" : "permission",
"productName" : "productName",
"subscriptionCode" : "PROTECTED",
"isDeleted" : true,
"modTime" : "2000-01-23T04:56:07.000+00:00",
"tenantId" : "tenantId",
"disabled" : true,
"productDescription" : "productDescription",
"actionName" : "actionName"
}
}
Get my product
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
offset | query string | N | Long | Offset Min: 0 Max: 9,223,372,036,854,775,807 |
limit | query string | N | Long | Limit Min: 1 Max: 9,223,372,036,854,775,807 |
productName | query string | N | String | Product Name Length(Min/Max): 0/100 |
isPublished | query string | N | Boolean | Is Published |
subscriptionCode | query string | N | String | Subscription Code Allowable values: PROTECTED, PUBLIC |
hasDeployedStage | query string | N | Boolean | Has Deployed Stage |
hasStageNotAssociatedWithUsagePlanId | query string | N | String | Has Stage Not Associated With Usage Plan Id |
Request Body
- None
Response Code
- 200
Response Body
{
"initialCount" : 0,
"productPage" : {
"total" : 6,
"content" : [ {
"invokeId" : "invokeId",
"domainCode" : "domainCode",
"productId" : "productId",
"isPublished" : true,
"modifier" : "modifier",
"permission" : "permission",
"productName" : "productName",
"hasDeployedStage" : true,
"subscriptionCode" : "PROTECTED",
"isDeleted" : true,
"modTime" : "2000-01-23T04:56:07.000+00:00",
"tenantId" : "tenantId",
"disabled" : true,
"productDescription" : "productDescription",
"actionName" : "actionName"
} ]
}
}
Modify a product
URL
PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
Request Body
{
"subscriptionCode" : "PROTECTED",
"description" : "description",
"productName" : "productName"
}
Response Code
- 204
Response Body
- None
Search api keys list by product
URL
POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/api-keys/search
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
Request Body
{
"apiKeyValue" : "apiKeyValue",
"offset" : 6,
"limit" : 0,
"apiKeyId" : "apiKeyId",
"statusSet" : [ "REQUEST" ]
}
Response Code
- 200
Response Body
{
"apiKeyPage" : {
"total" : 0,
"content" : [ {
"domainCode" : "domainCode",
"regTime" : "2000-01-23T04:56:07.000+00:00",
"secondaryKey" : "secondaryKey",
"modTime" : "2000-01-23T04:56:07.000+00:00",
"apiKeyId" : "apiKeyId",
"apiKeyName" : "apiKeyName",
"primaryKey" : "primaryKey",
"status" : "REQUEST"
} ]
}
}
Search a product's document ( api document list with stages ) by product
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/document
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
offset | query string | N | Long | Offset Min: 0 Max: 9,223,372,036,854,775,807 |
limit | query string | N | Long | Limit Min: 1 Max: 9,223,372,036,854,775,807 |
apiName | query string | N | String | Api Name Length(Min/Max): 0/20 |
Request Body
- None
Response Code
- 200
Response Body
{
"apiPage" : {
"total" : 6,
"content" : [ {
"apiName" : "apiName",
"domainCode" : "domainCode",
"stages" : [ {
"deployedStageDeploymentNo" : 0,
"stageName" : "stageName",
"host" : "host",
"stageId" : "stageId"
} ],
"apiDescription" : "apiDescription",
"apiId" : "apiId"
} ]
}
}
Search a product's overview
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/overview
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
Request Body
- None
Response Code
- 200
Response Body
{
"apis" : [ {
"apiName" : "apiName",
"domainCode" : "domainCode",
"methodsCount" : 2,
"stages" : [ {
"deployedStageDeploymentNo" : 0,
"stageName" : "stageName",
"host" : "host",
"stageId" : "stageId"
} ],
"apiId" : "apiId"
} ],
"apiKeyCountInfo" : {
"request" : 5,
"total" : 5,
"rejected" : 1,
"accepted" : 0,
"denied" : 6
}
}
Search product subscription detail by product & apiKey (Own product)
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/subscription-detail
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
offset | query string | N | Long | Offset Min: 0 Max: 9,223,372,036,854,775,807 |
limit | query string | N | Long | Limit Min: 1 Max: 9,223,372,036,854,775,807 |
apiId | query string | N | String | Api Id Length(Min/Max): 0/10 |
stageId | query string | N | String | Stage Id Length(Min/Max): 0/10 |
apiKeyId | query string | Y | String | Api Key Id Length(Min/Max): 0/10 |
Request Body
- None
Response Code
- 200
Response Body
{
"apiKeyRelations" : {
"total" : 5,
"content" : [ {
"apiName" : "apiName",
"domainCode" : "domainCode",
"monthlyUsage" : 5,
"usagePlanId" : "usagePlanId",
"monthCallCount" : 1,
"apiKeyId" : "apiKeyId",
"apiKeyName" : "apiKeyName",
"usagePlanName" : "usagePlanName",
"dailyUsage" : 0,
"regTime" : "2000-01-23T04:56:07.000+00:00",
"stageName" : "stageName",
"modTime" : "2000-01-23T04:56:07.000+00:00",
"dayCallCount" : 6,
"apiId" : "apiId",
"stageId" : "stageId"
} ]
}
}
Set subscription status
URL
PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/api-keys/{api-key-id}
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
apiKeyId | path | Y | String | Api Key Id Length(Min/Max): 0/10 |
Request Body
{
"status" : "ACCEPTED"
}
Response Code
- 204
Response Body
- None
Was this article helpful?