Adds a variable to an environment.
Operation description
This operation is intended for API providers.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:CreateApiStageVariable |
create |
*ApiGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The ID of the API group. |
523e8dc7bbe04613b5b1d726c2a7889d |
| StageId |
string |
Yes |
The ID of the runtime environment. |
6EF60BEC-0242-43AF-BB20-270359FB54A7 |
| VariableName |
string |
Yes |
The name of the variable to be added. This parameter is case-sensitive. |
serverName |
| SupportRoute |
boolean |
No |
Specifies whether routing is supported. |
true |
| VariableValue |
string |
No |
The value of the variable. |
api.domain.com |
StageRouteModel
deprecated
|
string |
No |
The routing model of the environment. |
{ "location": "HEAD", "parameterCatalog": "CUSTOM", "parameterType": "String", "serviceParameterName": "TestConstant", "routeMatchSymbol": "IN", "routeRules": [ { "conditionValue": "aaa,bbb", "resultValue": "apigateway-test.com" } ] } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
03442A3D-3B7D-434C-8A95-A5FEB999B529 |
Examples
Success response
JSON format
{
"RequestId": "03442A3D-3B7D-434C-8A95-A5FEB999B529"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.