示例

PUT /api/subnets/1018350795-five/parameters/297943576-parameter
{
  "parameter": {
    "name": "special_key",
    "value": "123"
  }
}
200
{
  "priority": null,
  "created_at": "2019-11-07 09:09:56 UTC",
  "updated_at": "2019-11-07 09:09:59 UTC",
  "id": 297943576,
  "name": "special_key",
  "parameter_type": "string",
  "value": "123"
}

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

domain_id
选填

域 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

location_id
选填

位置 ID

Validations:

  • Must be a String

organization_id
选填

机构 ID

Validations:

  • Must be a String

id
必填

参数 ID

Validations:

  • Must be a String

subnet_id
选填

子网 ID

Validations:

  • Must be a String

parameter
必填

Validations:

  • Must be a Hash

parameter[name]
选填

Validations:

  • Must be a String

parameter[value]
选填

Validations:

  • Must be a String

parameter[parameter_type]
选填

Type of value

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.