Canary Test
    • PDF

    Canary Test

    • PDF

    Article Summary

    Disable canary test

    URL

    DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/canary
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    stageIdpathYStringStage Id
    Length(Min/Max): 0/10

    Request Body

    • None

    Response Code

    • 204

    Response Body

    • None

    Enable canary test

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/canary
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    stageIdpathYStringStage Id
    Length(Min/Max): 0/10

    Request Body

    • None

    Response Code

    • 200

    Response Body

    {
      "canaryDeployedTime" : "2000-01-23T04:56:07.000+00:00",
      "canaryDeploymentNo" : 6,
      "deployedStageDeploymentNo" : 5,
      "canaryCacheTtlSec" : 0,
      "useDistributionRate" : true,
      "canaryConditions" : [ {
        "parameterName" : "parameterName",
        "parameterCode" : "REQUEST_HEADER",
        "parameterValue" : "parameterValue"
      } ],
      "canaryDeploymentDescription" : "canaryDeploymentDescription",
      "canaryEndpointDomain" : "canaryEndpointDomain",
      "canaryDistributionRate" : 1.4658129,
      "canaryThrottleRps" : 5,
      "stageId" : "stageId"
    }
    

    Export sdk from stage

    URL

    GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/canary/export
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    stageIdpathYStringStage Id
    Length(Min/Max): 0/10
    platformquery stringNStringPlatform
    Allowable values: SWAGGER_JSON, JAVA_SDK
    Default value: SWAGGER_JSON
    packageNamequery stringNStringPackage Name
    groupIdquery stringNStringGroup Id
    artifactIdquery stringNStringArtifact Id
    artifactVersionquery stringNStringArtifact Version
    licensequery stringNStringLicense
    versionquery stringNStringVersion

    Request Body

    • None

    Response Code

    • 200

    Response Body

    "Download File"
    

    Modify canary test

    URL

    PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/canary
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    stageIdpathYStringStage Id
    Length(Min/Max): 0/10

    Request Body

    {
      "canaryCacheTtlSec" : 0,
      "useDistributionRate" : true,
      "canaryConditions" : [ {
        "parameterName" : "parameterName",
        "parameterCode" : "REQUEST_HEADER",
        "parameterValue" : "parameterValue"
      } ],
      "canaryEndpointDomain" : "canaryEndpointDomain",
      "canaryThrottleRps" : 6,
      "canaryDistributionRate" : 1.4658129
    }
    

    Response Code

    • 200

    Response Body

    {
      "canaryDeployedTime" : "2000-01-23T04:56:07.000+00:00",
      "canaryDeploymentNo" : 6,
      "deployedStageDeploymentNo" : 5,
      "canaryCacheTtlSec" : 0,
      "useDistributionRate" : true,
      "canaryConditions" : [ {
        "parameterName" : "parameterName",
        "parameterCode" : "REQUEST_HEADER",
        "parameterValue" : "parameterValue"
      } ],
      "canaryDeploymentDescription" : "canaryDeploymentDescription",
      "canaryEndpointDomain" : "canaryEndpointDomain",
      "canaryDistributionRate" : 1.4658129,
      "canaryThrottleRps" : 5,
      "stageId" : "stageId"
    }
    

    Promote canary test

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/canary/promote
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    stageIdpathYStringStage Id
    Length(Min/Max): 0/10

    Request Body

    • None

    Response

    • 204

    Response Body

    • None

    Canary test swagger json

    URL

    GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/canary/swagger-json
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    stageIdpathYStringStage Id
    Length(Min/Max): 0/10

    Request Body

    • None

    Response Code

    • 200

    Response Body

    {
      "documentJson" : "documentJson"
    }
    

    Was this article helpful?

    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.