...
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
URL: /v2/project/{project-name}/rb/{rb-name}/{rb-version}/profile/{profile-name}/instantiate
POST BODY:
{
"name": <name>
"description": <description>
"logical-cloud": "logical-cloud-name" //name of logical cloud to use for instantiation. The DCM API will provide the list of clusters that are part of the logical-cloud
"intent-group": "intent-group-name", //name of intent-group to use for collecting intents which will be used during instantiation
//override-values overrides values from the helm charts and allows for instantiation time
//variable overrides.
"override-values": [
{"sub-app-name1", "sub-app-name1"}:[{"imageRepository":"registry.hub.docker.com"}]},
"{imageRepository: {"sub-app-name2":[{"imageRepository":"registry.hub.docker.com"}]}
]
}
RETURN STATUS: 201
RETURN BODY:
{
"id": "laughing_robinson",
"rb-name": "test-rbdef",
"rb-version": "v1",
"profile-name": "test-rbdef",
"cloudRegion": "kud",
"namespace": "testinstallns",
"resources": [
{
"GVK": {
"Group": "",
"Version": "v1",
"Kind": "Service"
},
"Name": "mongo"
},
{
"GVK": {
"Group": "",
"Version": "v1",
"Kind": "Service"
},
"Name": "mongo-read"
}
]
} |
...
Code Block |
---|
language | js |
---|
title | GET, DELETE |
---|
linenumbers | true |
---|
|
GET
URL: /v2/project/{project-name}/rb/{rb-name}/{rb-version}/profile/{profile-name}/instanceinstantiate/{instance-name}
RETURN STATUS: 200
RETURN BODY:
{
"id": "laughing_robinson",
"rb-name": "test-rbdef",
"rb-version": "v1",
"profile-name": "test-rbdef",
"cloudRegion": "kud",
"namespace": "testinstallns",
"resources": [
{
"GVK": {
"Group": "",
"Version": "v1",
"Kind": "Service"
},
"Name": "mongo"
},
{
"GVK": {
"Group": "",
"Version": "v1",
"Kind": "Service"
},
"Name": "mongo-read"
}
]
}
DELETE
URL: /v2/project/{project-name}/rb/{rb-name}/{rb-version}/profile/{profile-name}/instanceinstantiate/{instance-name}
RETURN STATUS: 204 |
...
API to support Reachability for a Kubernetes Cloud. This API will be used to upload configuration information for the cluster
POST
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
URL: /v2/cluster-registration
POST BODY:
{
“cluster-name” : “<name>” // Must be unique
}
RETURN STATUS: 201
RETURN BODY:
{
“cluster-name” : “<name>” // Must be unique
} |
...
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
GET
URL: /v2/cluster-registration/{cloudcluster-region-name}
RETURN STATUS: 200
RETURN BODY:
{
“cloud “cluster-region”name” : “<name>”, // Must be unique across
“cloud-owner” : “<owner>”,
}
DELETE
URL: /v2/cluster-registeration/{cloudcluster-region-name}
RETURN STATUS: 204
|
Add Label to a cluster
...
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
GET
URL: /v2/cluster-registration/{cloudcluster-region-name}/label/<label>
RETURN STATUS: 200
RETURN BODY:
{
“label-name” : “<label>”
}
DELETE
URL: /v2/cluster-registeration/{cloud-regioncluster-name}/label/<label>
RETURN STATUS: 204
|
...
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
GET
URL: /v2/cluster-registration/{cluster-name}/kv-pair/<key>
RETURN STATUS: 200
RETURN BODY:
{
"key1":"val1"
}
DELETE
URL: /v2/cluster-registeration/{cloud-regioncluster-name}/kv-pair/<key>
RETURN STATUS: 204
|
...