GET /api/hosts/:host_id/puppetclass_ids
호스트의 모든 Puppet 클래스 ID 나열

Examples

GET /api/hosts/host2666/puppetclass_ids
200
{
  "results": [
    1018350797
  ]
}

Params

Param Name Description
location_id
Optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
Optional

조직 별 범위

Validations:

  • Must be a Integer


POST /api/hosts/:host_id/puppetclass_ids
호스트에 Puppet 클래스 추가

Examples

POST /api/hosts/host2667/puppetclass_ids
{
  "puppetclass_id": "invalid_id",
  "host_class": {
    "puppetclass_id": "invalid_id"
  }
}
404
{
  "error": {
    "message": "Resource host_class not found by id ''"
  }
}

Params

Param Name Description
location_id
Optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
Optional

조직 별 범위

Validations:

  • Must be a Integer

host_id
Required

호스트 ID

Validations:

  • Must be a String

puppetclass_id
Required

Puppet 클래스 ID

Validations:

  • Must be a String


DELETE /api/hosts/:host_id/puppetclass_ids/:id
호스트에 Puppet 클래스 삭제

Examples

DELETE /api/hosts/host2669/puppetclass_ids/1018350800
{
  "host_class": {}
}
200
[

]

Params

Param Name Description
location_id
Optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
Optional

조직 별 범위

Validations:

  • Must be a Integer

host_id
Required

호스트 ID

Validations:

  • Must be a String

id
Required

Puppet 클래스 ID

Validations:

  • Must be a String