Versions Compared

Key

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

...

Code Block
titlePOST
POST
URL: /v1/cadist/logicalcloud
POST BODY:
{
  namelcname: "name of the logical cloud" //must be unique
}

RETURN STATUS: 201
RETURN BODY:
{
  namelcname: "name of the logical cloud"
}

...

Code Block
titleGET,DELETE
GET
URL: /v1/cadist/logicalcloud/{logicalcloudName}

RETURN STATUS: 200
RETURN BODY:
{
  namelcname: "name of the logical cloud"
}

DELETE
URL: /v1/cadist/logicalcloud/{logicalcloudName}

RETURN STATUS: 204

...

Code Block
titlePOST
POST
URL: /v1/cadist/logicalcloud/{logicalcloudName}/cluster
POST BODY:
{ 
  namecname: "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"}]}
}
RETURN STATUS: 201
RETURN BODY: 
{
  lcname: "logical cloud name",
  cname: "name of the cluster",
  jsonbundle: {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>}
} 


GET

Code Block
titleGET
GET
URL: /v1/cadist/logicalcloud/{logicalcloudName}/cluster/{clusterName}

RETURN STATUS: 200
RETURN BODY:
{
  lcname: "logical cloud name",
  cname: "name of the cluster",
  jsonbundle: {"rootcert": <cert>, "signedcert": <cert>, "prikey": <key>, "chain": <certs>}
} 


DELETE

Code Block
titleDELETE
DELETE
URL: /v1/cadist/logicalcloud/{logicalcloudName}/cluster/{clusterName}

RETURN STATUS: 204

...