Sample cURL commands

POST

URL: localhost:8081/v1/vnf_instances/

Request Body

{
    "cloud_region_id": "region1",
    "namespace": "test-namespace",
    "csar_id": "uuid",
    "namespace": "test",
    "oof_parameters": [{
        "key1": "value1",
        "key2": "value2",
        "key3": {}
    }],
    "network_parameters": {
        "oam_ip_address": {
            "connection_point": "string",
            "ip_address": "string",
            "workload_name": "string"
        }
    }
}

Expected Response

{
    "vnf_id": "52fdfc07",
    "cloud_region_id": "cloudregion1",
    "namespace": "test-namespace",
    "vnf_components": {
        "deployment": [
            "cloudregion1-test-namespace-52fdfc07-kubedeployment"
        ],
        "service": [
            "cloudregion1-test-namespace-52fdfc07-kubeservice"
        ]
    }
}

GET

URL: localhost:8081/v1/vnf_instances

Expected Response

{
    "vnf_id_list": [
        "52fdfc07"
    ]
}

GET

URL: localhost:8081/v1/vnf_instances/cloudregion1/test-namespace/52fdfc07

Expected Response

{
    "vnf_id": "52fdfc07",
    "cloud_region_id": "cloudregion1",
    "namespace": "test-namespace",
    "vnf_components": {
        "deployment": [
            "cloudregion1-test-namespace-52fdfc07-kubedeployment"
        ],
        "service": [
            "cloudregion1-test-namespace-52fdfc07-kubeservice"
        ]
    }
}

* DELETE *

URL: localhost:8081/v1/vnf_instances/cloudregion1/test-namespace/52fdfc07

Expected Response

202 Accepted