Table of Contents |
---|
Project API's
POST
Code Block | ||
---|---|---|
| ||
POST
URL: /v1/cadist/projects
POST BODY:
{
"pname": "name of the project" //must be unique
"description": "<description>"
}
RETURN STATUS: 201
RETURN BODY:
{
"pname": "name of the project"
} |
GET, DELETE
Code Block | ||
---|---|---|
| ||
GET
URL: /v1/cadist/projects/{project-name}
RETURN STATUS: 200
RETURN BODY:
{
"name": "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: /v1/cadist/logicalcloudproject/{project-name}/logicalclouds POST BODY: { "lcname": "name of the logical cloud" //must be unique with in the project "description": "<description>" } RETURN STATUS: 201 RETURN BODY: { "lcname": "name of the logical cloud" } |
GET, DELETE
Code Block | ||
---|---|---|
| ||
GET URL: /v1/cadist/logicalcloud/{logicalcloudName/projects/{project-name}/logicalclouds/{logicalcloud-name} RETURN STATUS: 200 RETURN BODY: { "lcname": "name of the logical cloud" "description": "<description>" } DELETE URL: /v1/cadist/logicalcloud/{logicalcloudName/projects/{project-name}/logicalclouds/{logicalcloud-name} RETURN STATUS: 204 |
Cluster API's
POST
Code Block | ||
---|---|---|
| ||
POST URL: /v1/cadist/logicalcloudprojects/{project-name}/logicalclouds/{logicalcloudNamelogicalcloud-name}/clusterclusters POST BODY: { "cname": "cluster1", //must be unique with in the logical cloud "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"}]} } RETURN STATUS: 201 RETURN BODY: { "lcname": "logical cloud name", "cname": "name of the cluster", "jsonbundle": {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>} } |
...
Code Block | ||
---|---|---|
| ||
GET URL: /v1/cadist/logicalcloudprojects/{project-name}/logicalclouds/{logicalcloudNamelogicalcloud-name}/clusterclusters/{clusterNamecluster-name} RETURN STATUS: 200 RETURN BODY: { "lcname": "logical cloud name", "cname": "name of the cluster", "jsonbundle": {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>} } |
...
Code Block | ||
---|---|---|
| ||
DELETE URL: /v1/cadist/projects/{project-name}/logicalcloud/{logicalcloudNamelogicalcloud-name}/cluster/{clusterNamecluster-name} RETURN STATUS: 204 |