Versions Compared

Key

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

...

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

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

...

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

RETURN STATUS: 200
RETURN BODY:
{
  "lcname": "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:
{ 
  "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
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>}
} 

...