Deletes environment variables of a Routine.
Operation description
Operation description
When you create a Routine code version for deployment, the environment name
Envsupports only the staging environmentstagingor the production environmentproduction.The
CodeVersionsparameter supports canary release of up to two versions, and the total proportion of these versions must equal 100%.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the Routine function. |
my-routine |
| Env |
string |
Yes |
The environment name. Valid values:
Valid values:
|
production |
| EnvironmentVariableKeys |
array |
Yes |
The list of environment variable keys to delete. |
["LOG_LEVEL"] |
|
string |
No |
The environment variable value. |
"LOG_LEVEL" |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| DeletedKeys |
array |
The list of environment variable keys that were deleted successfully. |
|
|
string |
The environment variable key name. |
['LOG_LEVEL'] |
|
| FailedKeys |
array |
The list of environment variable keys that failed to be deleted. |
|
|
string |
The environment variable key name. |
LOG_LEVEL |
Examples
Success response
JSON format
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"DeletedKeys": [
"['LOG_LEVEL']"
],
"FailedKeys": [
"LOG_LEVEL"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | UserOperationStatusIsLocked | You are calling an another routine related api. Please wait for the api finished, and try again later. | You are calling an another routine related api. Please wait for the api finished, and try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.