curl -H 'Accept: application/json' http://0.0.0.0:8585/v1/resource_classes/1
{
"service_type": "compute",
"racks": [],
"id": 1,
"links": [{
"href": "http://0.0.0.0:8585/v1/resource_classes/1",
"rel": "self"
}],
"name": "test-chassis"
}
curl -H 'Accept: application/json' http://0.0.0.0:8585/v1/resource_classes/
curl -iX POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '
{
"service_type": "compute",
"name": "test-chassis",
"racks":[
{
"id": 1,
"links": [
{
"href":"http://0.0.0.0:8585/v1/racks/1",
"rel":"self"
}
]
}
]
}
' http://0.0.0.0:8585/v1/resource_classes``
curl -iX PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -d '
{
"service_type": "compute",
"name": "test-chassis",
"racks":[]
}
' http://0.0.0.0:8585/v1/resource_classes/13``
curl -iX PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -d '
{
"service_type": "compute",
"name": "test-chassis",
"racks":[
{
"id": 2,
"links": [
{
"href":"http://0.0.0.0:8585/v1/racks/2",
"rel":"self"
}
]
}
]
}
' http://0.0.0.0:8585/v1/resource_classes/13``
curl -iX DELETE -H 'Accept: application/json' http://0.0.0.0:8585/v1/resource_classes/13