edit-icon download-icon

Create an API stage variable

Last Updated: May 17, 2017

Description

This function is for adding a variable to a stage.

  • This function is intended for API providers.

Request parameters

Name Type Required? Description
Action String Yes Interface name, which is a required parameter; value: CreateApiStageVariable.
GroupId String Yes API group ID.
StageId String Yes Stage ID.
VariableName String Yes Variable name, which is case-sensitive.
VariableValue String No Variable value.

Returned parameters

Name Type Description
RequestId String Unique request ID.

Examples

Request example

  1. http://apigateway.cn-hangzhou.aliyuncs.com?Action=CreateApiStageVariable
  2. &GroupId=523e8dc7bbe04613b5b1d726c2a7889d
  3. &StageId=6EF60BEC-0242-43AF-BB20-270359FB54A7
  4. &VariableName=serverName
  5. &VariableValue=api.domain.com
  6. &<Public request parameters>

Response example

XML format

  1. <CreateApiStageVariableResponse>
  2. <RequestId>03442A3D-3B7D-434C-8A95-A5FEB999B529</RequestId>
  3. </CreateApiStageVariableResponse>

JSON format

  1. {
  2. "RequestId": "03442A3D-3B7D-434C-8A95-A5FEB999B529"
  3. }
Thank you! We've received your feedback.