RESTful
Create/Update a Job
Request
Method:
PUT
URL:
https://<host:port>/jobs/<namespace>/<name>
Header:
Content-Type: application/json
Body:
As follows are some of the fields. To learn more, view the Complete List of All Features → .
Response
- OK
- StatusCode:
200
- Body:
{"msg": "OK"}
- StatusCode:
- Invalid
- StatusCode:
400
- Body:
{"msg": "<validation error>"}
- StatusCode:
- Unprocessable
- StatusCode:
422
- Body:
{"msg": "<error>"}
- StatusCode:
Get a Job
Request
- Method:
GET
- URL:
https://<host:port>/jobs/<namespace>/<name>
Response
OK
- StatusCode:
200
- Body:
- StatusCode:
Not Found
- StatusCode:
404
- Body:
{"msg":"not found"}
- StatusCode:
Unprocessable
- StatusCode:
422
- Body:
{"msg": "<error>"}
- StatusCode:
Delete a Job
Request
- Method:
DELETE
- URL:
https://<host:port>/jobs/<namespace>/<name>
Response
- OK
- StatusCode:
200
- Body:
{"msg": "OK"}
- StatusCode:
- Not Found
Same as OK. - Unprocessable
- StatusCode:
422
- Body:
{"msg": "<error>"}
- StatusCode:
Get Job Execution History
Request
- Method:
GET
- URL:
https://<host:port>/jobs/<namespace>/<name>/his
Response
OK
- StatusCode:
200
- Body:
- StatusCode:
Not Found
- StatusCode:
404
- Body:
{"msg":"not found"}
- StatusCode:
Unprocessable
- StatusCode:
422
- Body:
{"msg": "<error>"}
- StatusCode:
Host:Port
<dcs-dns-name>:<port>
.<dcs-dns-name>
is the DNS name generated by K8S for DCS,
and defaults to dcs.<namespace>.svc.cluster.local
,
and can be abbreviated to dcs.<namespace>
,
and can be abbreviated to dcs
if the service which sends the request is deployed in the same namespace as DCS.<port>
defaults to 1058
.
Mutual TLS Authentication
DCS and client authenticate each other during TLS handshake.
Defend Against DDoS Attacks
DCS limits max number of concurrent requests.
Meshless Mode
Since v1.2.0
→
, DCS Enterprise can communicate with other services via Meshless
→
.
You may choose to run DCS Enterprise in the standard mode or the new Meshless mode.
If you call DCS RESTful APIs in the Meshless mode, note the following differences between standard mode and Meshless mode.
Mode | Standard | Meshless |
---|---|---|
Transport | TCP | UDS |
TLS | Mutual TLS Authentication | N/A |
Service ID | N/A | rest.dcs.<namespace> |
Scheme | https | http |
Host:Port | <dcs-dns-name>:<port> | irrelevant |
See also Meshless Client User Guide →