...
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
GET
URL: /v2/project/{project-name}/rb/{rb-name}/{version}/intent/{intent-name}/{sub-intent}/...
RETURN STATUS: 200
RETURN BODY:
{
// Defined by the sub intent and handled by it
}
DELETE
URL: /v2/project/{project-name}/rb/{rb-name}/{version}/intent/{intent-name}/{sub-intent}
RETURN STATUS: 204 |
...
Instantiation API
Instantiation API is now based on the Profile API instead of having its own URL root.
POST
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
URL: /v2/project/{project-name}/rb/{rb-name}/{rb-version}/profile/{profile-name}/instance
POST BODY:
{
"cloudRegion": "cloud-region" //name of logical cloud to use for instantiation
"intent": "intent-name", //name of intent to use for instantiation
//overrideValues overrides values from the helm charts and allows for instantiation time
//variable overrides.
"overrideValues": {
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"
}
]
} |
GET, DELETE
Code Block |
---|
language | js |
---|
title | GET, DELETE |
---|
linenumbers | true |
---|
|
GET
URL: /v2/project/{project-name}/rb/{rb-name}/{rb-version}/profile/{profile-name}/instance/{instance-id}
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}/instance/{instance-id}
RETURN STATUS: 204 |