Update component environment variables

Basic Information

This interface is mainly used to update component environment variables

请求路径

  1. PUT /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/services/{service_id}/envs

Body 请求体示例

  1. {
  2. "envs": [
  3. {
  4. "note": "string",
  5. "name": "string",
  6. "value": "string",
  7. "is_change": true,
  8. "scope": "inner "
  9. }
  10. ]
  11. }

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

  1. {
  2. "envs": [
  3. {
  4. "note": "string",
  5. "name": "string",
  6. "value": "string",
  7. "is_change": true,
  8. "scope": "inner "
  9. }
  10. ]
  11. }

Attributes

nametyperequiredconstraintChinese nameillustrate
envs[ComponentEnvsBaseSerializers]truenonenone

ComponentEnvsBaseSerializers

  1. {
  2. "note": "string",
  3. "name": "string",
  4. "value": "string",
  5. "is_change": true,
  6. "scope": "inner"
  7. }

Attributes

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