...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"rbname": "test-rbdef",
"rbversion": "v1",
"chart-name": "vault-consul-dev",
"description": "testing resource bundle definition api",
"service-type": "firewall"
"labels": {
}
} |
Command to create (POST) Definition:
...
Command to DELETE Definitions:
Code Block | ||||
---|---|---|---|---|
| ||||
#Delete all versions of definition curl -i -X DELETE http://localhost:8081/v1/rb/definition/test-rbdef #Delete a particular version of definition curl -i -X DELETE http://localhost:8081/v1/rb/definition/test-rbdef/v1 |
Profiles API's
Once the Definitions are created, we are ready to create some profiles so that we can customize that definition and instantiate it in Kubernetes.
...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"profile-name": "p1",
"release-name": "r1", //If release-name is not provided, profile-name will be used
"namespace": "testnamespace1",
"kubernetesversion": "1.12.3"
} |
...
Code Block | ||
---|---|---|
| ||
{ "cloud_region_id": "krd", "rb_profile_id": "12345678-8888-4578-3344-987654398731", "csar_id": "94e414f6-9ca4-11e8-bb6a-52540067263b" "labels": { } } |
NOTE: Make sure that the namespace is already created before instantiation.
See
Jira | ||||||
---|---|---|---|---|---|---|
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
curl -d @create_rbinstance.json http://localhost:8081/v1/vnf_instances/instance |
This command returns the following JSON:
...
API to support Reachability for Kubernetes Cloud
Command to POST Connectivity Info
/v1/connectivity-info