Resources
The /apply route will try to parse resources and upsert them into the store.
Body
resourcesobject[]Optional
Responses
202
Accepted
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
409
Conflict
application/json
500
Internal Server Error
application/json
post
POST /v1/apply HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"resources": [
{}
]
}
{
"updates": [
{
"before": null,
"reason": "string",
"resource": null,
"status": "error"
}
]
}
/delete endpoint will try to parse resources and delete them from the store.
Bodyobject[]
object[]Optional
Responses
202
Accepted
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post
POST /v1/delete HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 4
[
{}
]
{
"errors": [
"text"
],
"updates": [
{
"before": null,
"reason": "string",
"resource": null,
"status": "error"
}
]
}
Path parameters
kindstringRequired
the kind of the resource
namestringRequired
the name of the resource
Responses
200
OK
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
GET /v1/resources/{kind}/{name} HTTP/1.1
Host:
Accept: */*
{
"resource": null
}
Path parameters
kindstringRequired
the kind of the resource
namestringRequired
the name of the resource
Responses
204
Successful Delete, no content
No content
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
delete
DELETE /v1/resources/{kind}/{name} HTTP/1.1
Host:
Accept: */*
No content
Path parameters
kindstringRequired
the kind of the resource
namestringRequired
the name of the resource
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
GET /v1/{kind}/{name}/history HTTP/1.1
Host:
Accept: */*
{
"versions": [
{}
]
}
Was this helpful?