View product list
    • PDF

    View product list

    • PDF

    Article summary

    Available in Classic and VPC

    View the list of products that meet the user-defined conditions.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET/products

    Request headers

    For headers common to API Gateway, see API Gateway common request headers.

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    offsetLongOptionalStarting point of the response data
    • 0 - 9,223,372,036,854,775,807
    • It is used with limit to implement pagination
    limitLongOptionalMaximum number of response data
    • 1 - 9,223,372,036,854,775,807
    • It is used with offset to implement pagination
    productNameStringOptionalName of the product to view
    • 0 - 100 characters
    isPublishedBooleanOptionalPublishing status
    • true | false
      • true: published
      • false: not published
    subscriptionCodeStringOptionalSubscription method
    • PUBLIC | PROTECTED
      • PUBLIC: The API can be used by anyone without approval
      • PROTECTED: Publisher approval is required to use the API
    hasDeployedStageBooleanOptionalStage creation status
    • true | false
      • true: created
      • false: not created
    hasStageNotAssociatedWithUsagePlanIdStringOptionalView excluding stages associated with a specific usage plan
    • Entering a specific usage plan ID returns APIs that are not related to that usage plan ID

    Request example

    The following is a sample request.

    curl --location --request GET 'https://apigateway.apigw.ntruss.com/api/v1/products?hasDeployedStage=true&isPublished=false&subscriptionCode=PUBLIC' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
    

    Response

    The following describes the response format.

    Response syntax

    The response syntax is as follows.

    {
        "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"
            } ]
        }
    }
    

    Response status codes

    For response status codes common to API Gateway, see API Gateway response status codes.

    Response example

    The following is a sample response.

    {
        "productPage": {
            "content": [
                {
                    "productId": "***ksk9***",
                    "invokeId": "***ksk9***",
                    "tenantId": "***e230cebc1402ba89b148896951***",
                    "productName": "product",
                    "productDescription": "",
                    "isPublished": false,
                    "subscriptionCode": "PUBLIC",
                    "modifier": "***d3020-5bb7-11ec-bfb8-246e96591***",
                    "domainCode": "PUB",
                    "zoneCode": "PUBLIC",
                    "hasDeployedStage": true
                }
            ],
            "total": 1
        },
        "initialCount": 4
    }
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.