Versions Compared

Key

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

...

Code Block
languagejs
linenumberstrue
{
    "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
languagebashbash
#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
languagejs
titleProfile JSON Body
{
    "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
languagejs
{
    "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
serverONAP JIRA
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyMULTICLOUD-462
for more details.

...

Code Block
languagebash
titleCommand to Instantiate a Profile
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