Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

...


Project API's


POST

Code Block
titlePOST
POST
URL: /v1v2/cadist/logicalcloudprojects
POST BODY:
{
  name"pname": "name of the logical cloudproject" //must be unique
  "description": "<description>"
  "casignerin": {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>}
}

RETURN STATUS: 201
RETURN BODY:
{
  name"pname": "name of the logical cloudproject"
  "description": "<description>"
}


GET, DELETE

Code Block
titleGET,DELETE
GET
URL: /v1v2/cadist/logicalcloudprojects/{logicalcloudNameproject-name}

RETURN STATUS: 200
RETURN BODY:
{
  name"pname": "name of the logical cloudProject" //must be unique 
  "description": "<description>"
}

DELETE
URL: /v1/cadist/logicalcloudprojects/{logicalcloudNameproject-name}

RETURN STATUS: 204

...



Logical Cloud API's


POST

Code Block
titlePOST
POST
URL: /v1v2/cadist/logicalcloudprojects/{logicalcloudNameproject-name}/clusterlogicalclouds
POST BODY:
{
   name"lcname": "name of the clusterlogical cloud" //must be unique with in the logical cloud
  json cert fields: "required cert fields"
}
project
  "description": "<description>"
}

RETURN STATUS: 201
RETURN BODY:
{
  "lcname": "name of the logical cloud"
  "description": "<description>"
}


GET, DELETE

Code Block
titleGET,DELETE
GET
URL: /v2/cadist/projects/{project-name}/logicalclouds/{logicalcloud-name}

RETURN STATUS: 201200
RETURN BODY: 
{
  "lcname": "name of the logical cloud"
  "description": "<description>"
}

DELETE
URL: /v1/cadist/projects/{project-name}/logicalclouds/{logicalcloud-name}

RETURN STATUS: 204


Cluster API's


POST

Code Block
titlePOST
POST
URL: name",/v2/cadist/projects/{project-name}/logicalclouds/{logicalcloud-name}/clusters
POST BODY:
{ 
  "cname": "name of the clustercluster1", //must be unique with in the logical cloud
  "profile":"intermediate",
  jsonbundle: {"rootcert: <cert>, signedcert: <cert>, prikey: <key>, chain: <certs>"}"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: 
{
  "cname": "name of the cluster",
  "description": "<description>"
} 


GET

Code Block
titleGET
GET
URL: /v1v2/cadist/logicalcloud/{logicalcloudName}/cluster/{clusterName/projects/{project-name}/logicalclouds/{logicalcloud-name}/clusters/{cluster-name}

RETURN STATUS: 200
RETURN BODY:
{

 lcname: "logical cloud name",
  cnamecname": "name of the cluster",
  "jsonbundle": {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>"}}
  "description": "<description>"
} 


DELETE

Code Block
titleDELETE
DELETE
URL: /v1v2/cadist/logicalcloud/{logicalcloudName}/cluster/{clusterName/projects/{project-name}/logicalclouds/{logicalcloud-name}/clusters/{cluster-name}

RETURN STATUS: 204