Update component environment variables
This interface is mainly used to update component environment variables
请求路径
PUT /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/services/{service_id}/envs
Body 请求体示例
{
"envs": [
{
"note": "string",
"name": "string",
"value": "string",
"is_change": true,
"scope": "inner "
}
]
}
request parameters
name | Location | type | required | Chinese name | illustrate |
---|
app_id | path | integer | Yes | | app id |
service_id | path | string | Yes | | app id |
team_id | path | string | Yes | | team id |
region_name | path | string | Yes | | cluster name |
body | body | ComponentEnvsSerializers | no | | none |
return result
Model
ComponentEnvsSerializers
{
"envs": [
{
"note": "string",
"name": "string",
"value": "string",
"is_change": true,
"scope": "inner "
}
]
}
Attributes
ComponentEnvsBaseSerializers
{
"note": "string",
"name": "string",
"value": "string",
"is_change": true,
"scope": "inner"
}
Attributes
name | type | required | constraint | Chinese name | illustrate |
---|
note | string | false | none | Note | Remark |
name | string | true | none | Name | environment variable name |
value | string | true | none | Value | environment variable value |
is_change | boolean | false | none | Is change | Can it be changed |
scope | string | false | none | Scope | scope |