Table of Contents |
---|
Project API's
POST
Code Block | ||
---|---|---|
| ||
POST
URL: /v2/cadist/projects
POST BODY:
{
"pname": "name of the project" //must be unique
"description": "<description>"
"casignerin": {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>}
}
RETURN STATUS: 201
RETURN BODY:
{
"pname": "name of the project"
"description": "<description>"
} |
GET, DELETE
Code Block | ||
---|---|---|
| ||
GET
URL: /v2/cadist/projects/{project-name}
RETURN STATUS: 200
RETURN BODY:
{
"pname": "name of Project" //must be unique
"description": "<description>"
}
DELETE
URL: /v1/cadist/projects/{project-name}
RETURN STATUS: 204 |
Logical Cloud API's
POST
Code Block | ||
---|---|---|
| ||
POST URL: /v1v2/cadist/logicalcloud/projects/{project-name}/logicalclouds POST BODY: { name"lcname": "name of the logical cloud" //must be unique with in the project "description": "<description>" } RETURN STATUS: 201 RETURN BODY: { name"lcname": "name of the logical cloud" "description": "<description>" } |
GET, DELETE
Code Block | ||
---|---|---|
| ||
GET URL: /v1v2/cadist/logicalcloud/{logical cloud /projects/{project-name}/logicalclouds/{logicalcloud-name} RETURN STATUS: 200 RETURN BODY: { name"lcname": "name of the logical cloud" //must be unique "description": "<description>" } DELETE URL: /v1/cadist/logicalcloud/{logical cloud /projects/{project-name}/logicalclouds/{logicalcloud-name} RETURN STATUS: 204 |
Cluster API's
POST
Code Block | ||
---|---|---|
| ||
POST URL: /v1v2/cadist/logicalcloud/{logical cloud projects/{project-name}/logicalclouds/{logicalcloud-name}/clusterclusters POST BODY: { name"cname": "name of the cluster"cluster1", //must be unique with in the logical cloud json cert fields: "required cert fields"profile":"intermediate", "request":{"CN":"","hosts":["new.com"],"key":{"algo":"rsa","size":2048},"names":[{"C":"US","L":"Santa Clara","O":"Test,Inc.","OU":"WWW","ST":"CA"}]} "description": "<description>" } RETURN STATUS: 201 RETURN BODY: { name"cname": "name of the cluster", "description": "<description>" } |
GET
Code Block | ||
---|---|---|
| ||
GET URL: /v1v2/cadist/logicalcloud/{logical cloud projects/{project-name}/logicalclouds/{logicalcloud-name}/clusterclusters/{cluster -name} RETURN STATUS: 200 RETURN BODY: { name"cname": "name of the cluster", json bundle: "signed cert, key and chain" } "jsonbundle": {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>} "description": "<description>" } |
DELETE
Code Block | ||
---|---|---|
| ||
DELETE URL: /v1v2/cadist/logicalcloud/{logical cloud projects/{project-name}/logicalclouds/{logicalcloud-name}/clusterclusters/{cluster -name} RETURN STATUS: 204 |