Skip to main content

Update component environment variables

Basic Information

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

nameLocationtyperequiredChinese nameillustrate
app_idpathintegerYesapp id
service_idpathstringYesapp id
team_idpathstringYesteam id
region_namepathstringYescluster name
bodybodyComponentEnvsSerializersnonone

return result

status codeStatus code meaningillustratedata model
200OKsuccessComponentEnvsSerializers

Model

ComponentEnvsSerializers

{
"envs": [
{
"note": "string",
"name": "string",
"value": "string",
"is_change": true,
"scope": "inner "
}
]
}

Attributes

nametyperequiredconstraintChinese nameillustrate
envs[ComponentEnvsBaseSerializers]truenonenone

ComponentEnvsBaseSerializers

{
"note": "string",
"name": "string",
"value": "string",
"is_change": true,
"scope": "inner"
}

Attributes

nametyperequiredconstraintChinese nameillustrate
notestringfalsenoneNoteRemark
namestringtruenoneNameenvironment variable name
valuestringtruenoneValueenvironment variable value
is_changebooleanfalsenoneIs changeCan it be changed
scopestringfalsenoneScopescope