Canary Test
    • PDF

    Canary Test

    • PDF

    Article Summary

    Canary 비활성화

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    stageIdpathYStringStage Id
    길이(최대/최소): 0/10

    요청 바디

    • 없음

    응답 코드

    • 204

    응답 바디

    • 없음

    Canary 활성화

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    stageIdpathYStringStage Id
    길이(최대/최소): 0/10

    요청 바디

    • 없음

    응답 코드

    • 200

    응답 바디

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

    SDK 내보내기

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    stageIdpathYStringStage Id
    길이(최대/최소): 0/10
    platformquery stringNStringPlatform
    허용 가능한 값: SWAGGER_JSON, JAVA_SDK
    기본값: SWAGGER_JSON
    packageNamequery stringNStringPackage Name
    groupIdquery stringNStringGroup Id
    artifactIdquery stringNStringArtifact Id
    artifactVersionquery stringNStringArtifact Version
    licensequery stringNStringLicense
    versionquery stringNStringVersion

    요청 바디

    • 없음

    응답 코드

    • 200

    응답 바디

    "Download File"
    

    Canary 수정

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    stageIdpathYStringStage Id
    길이(최대/최소): 0/10

    요청 바디

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

    응답 코드

    • 200

    응답 바디

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

    Canary 승급

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    stageIdpathYStringStage Id
    길이(최대/최소): 0/10

    요청 바디

    • 없음

    응답 코드

    • 204

    응답 바디

    • 없음

    Canary Swagger Json 조회

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    stageIdpathYStringStage Id
    길이(최대/최소): 0/10

    요청 바디

    • 없음

    응답 코드

    • 200

    응답 바디

    {
      "documentJson" : "documentJson"
    }
    

    이 문서가 도움이 되었습니까?

    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.