CatenaApiKeys
On the right hand side of this page, you will see a list of "Servers".
To configure which server is shown in example requests:
domain
environment variable.curl -i -X POST \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/fleets/deploy \
-H 'Content-Type: application/json' \
-d '{
"config": {
"name": "string",
"artifacts": [
{
"name": "string",
"remote": "string",
"integrity": {
"alg": "string",
"hash": "string"
},
"config": "string"
}
],
"job": {
"requirements": {
"property1": "string",
"property2": "string"
},
"exec": [
{
"cmd": "string",
"args": [
"string"
],
"environment": [
"string"
]
}
],
"include": [
{
"name": "string",
"dest": "string",
"executable": true
}
],
"restartPolicy": "string"
}
}
}'
{ "hostId": "string", "responses": [ "string" ] }
curl -i -X GET \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/fleets/hosts
{ "hosts": [ { … } ] }
curl -i -X POST \
'https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/fleets/hosts/{hostId}/action' \
-H 'Content-Type: application/json' \
-d '{
"hostId": "string",
"request": {
"targetPx": "string",
"stateAfterAction": "string",
"req": {
"method": "string",
"body": "string",
"path": "string",
"port": 0,
"headers": {
"property1": "string",
"property2": "string"
}
}
}
}'
{}