aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deployments/helm/v2/onap4k8s/ncm/resources/config/config.json5
-rw-r--r--deployments/helm/v2/onap4k8s/ncm/values.yaml2
-rw-r--r--docs/EMCO.postman_collection.json15748
-rw-r--r--src/dcm/api/api.go263
-rw-r--r--src/dcm/api/logicalCloudHandler.go293
-rw-r--r--src/dcm/pkg/module/apply.go875
-rw-r--r--src/dcm/pkg/module/logicalcloud.go343
7 files changed, 16623 insertions, 906 deletions
diff --git a/deployments/helm/v2/onap4k8s/ncm/resources/config/config.json b/deployments/helm/v2/onap4k8s/ncm/resources/config/config.json
index 81728ea9..f1fad4b2 100644
--- a/deployments/helm/v2/onap4k8s/ncm/resources/config/config.json
+++ b/deployments/helm/v2/onap4k8s/ncm/resources/config/config.json
@@ -3,5 +3,6 @@
"database-type": "mongo",
"database-ip": "emco-mongo",
"etcd-ip": "emco-etcd",
- "service-port": "9016"
-} \ No newline at end of file
+ "service-port": "9031"
+}
+
diff --git a/deployments/helm/v2/onap4k8s/ncm/values.yaml b/deployments/helm/v2/onap4k8s/ncm/values.yaml
index e495cd61..afd3f3f2 100644
--- a/deployments/helm/v2/onap4k8s/ncm/values.yaml
+++ b/deployments/helm/v2/onap4k8s/ncm/values.yaml
@@ -54,7 +54,7 @@ readiness:
periodSeconds: 30
service:
- type: ClusterIP
+ type: NodePort
name: ncm
portName: ncm
internalPort: 9031
diff --git a/docs/EMCO.postman_collection.json b/docs/EMCO.postman_collection.json
new file mode 100644
index 00000000..0dad51e0
--- /dev/null
+++ b/docs/EMCO.postman_collection.json
@@ -0,0 +1,15748 @@
+{
+ "info": {
+ "_postman_id": "902ab7b7-5f6d-4a19-ad18-5e1004bd71a0",
+ "name": "EMCO",
+ "description": "EMCO - Edge Multi Cluster Orchestrator\n# Introduction\nApplication Orchestration - For applications and services delivered across multiple administrative infrastructures\n",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
+ {
+ "name": "projects",
+ "item": [
+ {
+ "name": "{project-name}",
+ "item": [
+ {
+ "name": "composite-apps",
+ "item": [
+ {
+ "name": "{composite-app-name}/{composite-app-version}",
+ "item": [
+ {
+ "name": "apps",
+ "item": [
+ {
+ "name": "{app-name}",
+ "item": [
+ {
+ "name": "Get Application",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Application"
+ }
+ ]
+ },
+ "description": "Get `application`\n"
+ },
+ "response": [
+ {
+ "name": "Application not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update app in Composite Application",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "multipart/form-data"
+ }
+ ],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"}",
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Application"
+ }
+ ]
+ },
+ "description": "Update app in `Composite Application`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Application not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Application",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Application"
+ }
+ ]
+ },
+ "description": "Delete `application`\n"
+ },
+ "response": [
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Application not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps/:app-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps",
+ ":app-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "app-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add app to Composite Application",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "multipart/form-data"
+ }
+ ],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"}",
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Add a new `app to composite application`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all apps in Composite Application",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Get all `apps in composite application`\n"
+ },
+ "response": [
+ {
+ "name": "No Apps found in Composite Application",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n }\n]"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "composite-profiles",
+ "item": [
+ {
+ "name": "{composite-profile-name}",
+ "item": [
+ {
+ "name": "profiles",
+ "item": [
+ {
+ "name": "{profile-name}",
+ "item": [
+ {
+ "name": "Get profile from Composite Profile",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ },
+ {
+ "key": "profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Profile"
+ }
+ ]
+ },
+ "description": "Get `profile from composite profile`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"app-name\": \"Application1\"\n }\n}"
+ },
+ {
+ "name": "Profile not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update Composite Profile for an app",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "multipart/form-data"
+ }
+ ],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "file",
+ "value": "<binary>",
+ "type": "text"
+ },
+ {
+ "key": "metadata",
+ "value": "{\"spec\":{\"metadata\":{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"},\"app-name\":\"<string>\"}}",
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ },
+ {
+ "key": "profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Profile"
+ }
+ ]
+ },
+ "description": "Update `Profile`"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "metadata",
+ "value": "{\"spec\":{\"metadata\":{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"},\"app-name\":\"Application1\"}}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Profile not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "metadata",
+ "value": "{\"spec\":{\"metadata\":{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"},\"app-name\":\"Application1\"}}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "metadata",
+ "value": "{\"spec\":{\"metadata\":{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"},\"app-name\":\"Application1\"}}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"app-name\": \"Application1\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Delete Profile",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ },
+ {
+ "key": "profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Profile"
+ }
+ ]
+ },
+ "description": "Delete `profile in Composite Profile`\n"
+ },
+ "response": [
+ {
+ "name": "Profile not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/:profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ":profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ },
+ {
+ "key": "profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add app profile to Composite Profile",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "multipart/form-data"
+ }
+ ],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "file",
+ "value": "<binary>",
+ "type": "text"
+ },
+ {
+ "key": "metadata",
+ "value": "{\"spec\":{\"metadata\":{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"},\"app-name\":\"<string>\"}}",
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ }
+ ]
+ },
+ "description": "Add a `profile for application`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "metadata",
+ "value": "{\"spec\":{\"metadata\":{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"},\"app-name\":\"Application1\"}}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"app-name\": \"Application1\"\n }\n}"
+ },
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "metadata",
+ "value": "{\"spec\":{\"metadata\":{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"},\"app-name\":\"Application1\"}}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Get all app profiles in Composite Profiles",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ }
+ ]
+ },
+ "description": "Get all `app profiles in a composite Profile`\n"
+ },
+ "response": [
+ {
+ "name": "No profile found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"app-name\": \"Application1\"\n }\n },\n {\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"app-name\": \"Application1\"\n }\n }\n]"
+ }
+ ]
+ },
+ {
+ "name": "Query profile for an application",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/?app-name=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ""
+ ],
+ "query": [
+ {
+ "key": "app-name",
+ "value": "<string>",
+ "description": "(Required) "
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ }
+ ]
+ },
+ "description": "Query `profile for an application`\n"
+ },
+ "response": [
+ {
+ "name": "Profile for application not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/?app-name=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ""
+ ],
+ "query": [
+ {
+ "key": "app-name",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name/profiles/?app-name=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name",
+ "profiles",
+ ""
+ ],
+ "query": [
+ {
+ "key": "app-name",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"app-name\": \"Application1\"\n }\n}"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get Composite Profile",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ }
+ ]
+ },
+ "description": "Get `composite profile`\n"
+ },
+ "response": [
+ {
+ "name": "Composite Profile not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update Composite Profile",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ }
+ ]
+ },
+ "description": "Update `Composite Profile`"
+ },
+ "response": [
+ {
+ "name": "Composite Profile not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Composite Profile",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "composite-profile-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Profile"
+ }
+ ]
+ },
+ "description": "Delete `Composite Profile`\n"
+ },
+ "response": [
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Composite Profile not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles/:composite-profile-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles",
+ ":composite-profile-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "composite-profile-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add Composite Profile",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Add a new `composite profile`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Get all Composite Profiles",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Get all `profiles in a composite application`\n"
+ },
+ "response": [
+ {
+ "name": "No composite profile found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/composite-profiles",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "composite-profiles"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n }\n]"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "generic-placement-intents",
+ "item": [
+ {
+ "name": "{generic-placement-intent-name}",
+ "item": [
+ {
+ "name": "app-intents",
+ "item": [
+ {
+ "name": "{intent-name}",
+ "item": [
+ {
+ "name": "Get intent",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ },
+ {
+ "key": "intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Get `generic placement intent`\n"
+ },
+ "response": [
+ {
+ "name": "Intent not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update intent for an application",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"app-name\": \"<string>\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ],\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ],\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ },
+ {
+ "key": "intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Update `generic placement intent for application`"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ },
+ {
+ "name": "Generic placement intent not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete intent",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ },
+ {
+ "key": "intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Delete `generic placement intent`\n"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Intent not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add intent for an application",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"app-name\": \"<string>\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ],\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ],\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n },\n {\n \"cluster-label-name\": \"<string>\",\n \"cluster-name\": \"<string>\",\n \"provider-name\": \"<string>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ }
+ ]
+ },
+ "description": "Add a `intent for application`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all Intents in Generic Placement",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ }
+ ]
+ },
+ "description": "Get all ` Intents in Generic Placement Intent`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n }\n]"
+ },
+ {
+ "name": "No Generic Placement Intent found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Query intent for an application",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/?app-name=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ""
+ ],
+ "query": [
+ {
+ "key": "app-name",
+ "value": "<string>",
+ "description": "(Required) "
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ }
+ ]
+ },
+ "description": "Query `generic placement intent for application`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/?app-name=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ""
+ ],
+ "query": [
+ {
+ "key": "app-name",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"app-name\": \"appl\",\n \"allOf\": [\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n },\n {\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ],\n \"cluster-label-name\": \"west\",\n \"cluster-name\": \"cluster2\",\n \"provider-name\": \"provider2\"\n }\n ],\n \"anyOf\": [\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n },\n {\n \"cluster-label-name\": \"east\",\n \"cluster-name\": \"cluster1\",\n \"provider-name\": \"provider1\"\n }\n ]\n }\n}"
+ },
+ {
+ "name": "Generic Placement Intent for application not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name/app-intents/?app-name=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name",
+ "app-intents",
+ ""
+ ],
+ "query": [
+ {
+ "key": "app-name",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get Generic Placement Intent",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ }
+ ]
+ },
+ "description": "Get `generic placement intent`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Generic Placement Intent not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update Generic Placement Intent",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"logical-cloud\": \"<string>\"\n },\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ }
+ ]
+ },
+ "description": "Update `Generic Placement Intent`"
+ },
+ "response": [
+ {
+ "name": "Generic Placement Intent not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Generic Placement Intent",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "generic-placement-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent"
+ }
+ ]
+ },
+ "description": "Delete `Generic Placement Intent`\n"
+ },
+ "response": [
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Generic Placement Intent not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents/:generic-placement-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents",
+ ":generic-placement-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "generic-placement-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add Generic Placement Intent",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"logical-cloud\": \"<string>\"\n },\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Add a new `generic placement intent`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Get all Generic Placement Intents",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Get all `Generic Placement Intents`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n },\n {\n \"spec\": {\n \"logical-cloud\": \"cloud1\"\n },\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n }\n]"
+ },
+ {
+ "name": "No Generic Placement Intent found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/generic-placement-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "generic-placement-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "deployment-intent-groups",
+ "item": [
+ {
+ "name": "{deployment-intent-group-name}",
+ "item": [
+ {
+ "name": "intents",
+ "item": [
+ {
+ "name": "{intent-name}",
+ "item": [
+ {
+ "name": "Get intent for an application",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ },
+ {
+ "key": "intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Get `Deployment Intent`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ {
+ "name": "Deployment Intent not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update intent",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ },
+ {
+ "key": "intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Update `deployment intent`"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Intent not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Delete intent",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ },
+ {
+ "key": "intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Delete `intent`\n"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deployment intent not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/:intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ":intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ },
+ {
+ "key": "intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add Intent",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Add `deployment Intent`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all intents in Deployment Intent Group",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Get all `intents in deployment intent group`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n }\n]"
+ },
+ {
+ "name": "No Deployment Intent Group found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Query intent",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents?intent=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents"
+ ],
+ "query": [
+ {
+ "key": "intent",
+ "value": "<string>",
+ "description": "(Required) "
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Query `Deployment Intent`\n"
+ },
+ "response": [
+ {
+ "name": "Deployment Intent not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents?intent=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents"
+ ],
+ "query": [
+ {
+ "key": "intent",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/intents?intent=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "intents"
+ ],
+ "query": [
+ {
+ "key": "intent",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"intent\": \"<object>\"\n }\n}"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get Deployment Intent Group",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Get `Deployment Intent Group`\n"
+ },
+ "response": [
+ {
+ "name": "Deployment Intent Group not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update Deployment Intent Group",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Update `Deployment Intent Group`"
+ },
+ "response": [
+ {
+ "name": "Deployment Intent Group not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Delete Deployment Intent Group",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": "<string>",
+ "description": "(Required) Name of Generic Placement Intent for application"
+ }
+ ]
+ },
+ "description": "Delete `Deployment Intent Group`\n"
+ },
+ "response": [
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deployment Intent Group not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "deployment-intent-group-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Approve a Deployment",
+ "request": {
+ "method": "POST",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/approve",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "approve"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-version",
+ "value": ""
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": ""
+ }
+ ]
+ },
+ "description": "Approve a Deployment"
+ },
+ "response": []
+ },
+ {
+ "name": "Instantiate a Deployment",
+ "request": {
+ "method": "POST",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/instantiate",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "instantiate"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-version",
+ "value": ""
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": ""
+ }
+ ]
+ },
+ "description": "Instantiate a Deployment"
+ },
+ "response": []
+ },
+ {
+ "name": "Destroy a Deployment",
+ "request": {
+ "method": "POST",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/destroy",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "destroy"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-version",
+ "value": ""
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": ""
+ }
+ ]
+ },
+ "description": "Destroy a Deployment"
+ },
+ "response": []
+ },
+ {
+ "name": "Status of a Deployment",
+ "request": {
+ "method": "POST",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups/:deployment-intent-group-name/status",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups",
+ ":deployment-intent-group-name",
+ "status"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-name",
+ "value": ""
+ },
+ {
+ "key": "composite-app-version",
+ "value": ""
+ },
+ {
+ "key": "deployment-intent-group-name",
+ "value": ""
+ }
+ ]
+ },
+ "description": "Status of a Deployment"
+ },
+ "response": []
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add Deployment Intent Group",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Add a new `deployment intent group`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Get all Deployment Intent Group",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Get all `Deployment Intent Group`\n"
+ },
+ "response": [
+ {
+ "name": "No Deployment Intent Group found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/deployment-intent-groups",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "deployment-intent-groups"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"profile\": \"<string>\",\n \"version\": \"<string>\",\n \"override-values\": [\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n },\n {\n \"app-name\": \"<string>\",\n \"values\": \"<object>\"\n }\n ]\n }\n }\n]"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "network-controller-intent",
+ "item": [
+ {
+ "name": "{net-control-intent}",
+ "item": [
+ {
+ "name": "workload-intents",
+ "item": [
+ {
+ "name": "{workload-intent-name}",
+ "item": [
+ {
+ "name": "interfaces",
+ "item": [
+ {
+ "name": "{interface-name}",
+ "item": [
+ {
+ "name": "Get Network Controller Workload Interface",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "interface-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Get `network controller workload interface`\n"
+ },
+ "response": [
+ {
+ "name": "Network Controller Workload Interface not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update Network Controller Workload Interface",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"interface\": \"<string>\",\n \"name\": \"<string>\",\n \"defaultGateway\": \"<boolean>\",\n \"ipAddress\": \"<string>\",\n \"macAddress\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "interface-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Update `Network Controller Workload Interface`"
+ },
+ "response": [
+ {
+ "name": "Network Controller Workload Interface not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Network Controller Workload Interface",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "interface-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Delete `Network Controller Workload Interface`\n"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Network Controller Workload Interface not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces/:interface-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces",
+ ":interface-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ },
+ {
+ "key": "interface-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Network Controller Workload Interface API's",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"interface\": \"<string>\",\n \"name\": \"<string>\",\n \"defaultGateway\": \"<boolean>\",\n \"ipAddress\": \"<string>\",\n \"macAddress\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Add a new `network controller workload interface`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ },
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Get all Network Controller Workload Interface",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Get all `network controller workload interface`\n"
+ },
+ "response": [
+ {
+ "name": "No Network Controller Workload Interface found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name/interfaces",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name",
+ "interfaces"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"interface\": \"eth0\",\n \"name\": \"provider-1\",\n \"defaultGateway\": false,\n \"ipAddress\": \"0.0.0.0\",\n \"macAddress\": \"x.x.x.x\"\n }\n }\n]"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get Network Controller Workload Intent",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Get `network controller workload intent`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ },
+ {
+ "name": "Network Controller Workload Intent not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update Network Controller Workload Intent",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"application-name\": \"<string>\",\n \"workload-resource\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Update `Network Controller Workload Intent`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ },
+ {
+ "name": "Network Controller Workload Intent not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Network Controller Workload Intent",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ },
+ {
+ "key": "workload-intent-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Delete `Network Controller Workload Intent`\n"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Network Controller Workload Intent not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents/:workload-intent-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents",
+ ":workload-intent-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ },
+ {
+ "key": "workload-intent-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Network Controller Workload Intent API's",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"application-name\": \"<string>\",\n \"workload-resource\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Add a new `network controller workload intent`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get Network Controller Workload Intent",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Get all `network controller workload intent`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n },\n {\n \"spec\": {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"application-name\": \"Application1\",\n \"workload-resource\": \"firewall\",\n \"type\": \"deployment\"\n }\n }\n }\n]"
+ },
+ {
+ "name": "No Network Controller Workload Intent found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent/workload-intents",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent",
+ "workload-intents"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get Network Controller Intent",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Get `network controller intent`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Network Controller Intent not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update Network Controller Intent",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Update `Network Controller Intent`"
+ },
+ "response": [
+ {
+ "name": "Network Controller Intent not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Network Controller Intent",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ },
+ {
+ "key": "net-control-intent",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Delete `Network Controller Intent`\n"
+ },
+ "response": [
+ {
+ "name": "Network Controller Intent not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent/:net-control-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent",
+ ":net-control-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ },
+ {
+ "key": "net-control-intent"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Network Controller Intent API's",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Add a new `network controller intent`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all Network Controller Intent",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Get all `network controller intent`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n }\n]"
+ },
+ {
+ "name": "No Network Controller Intent found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version/network-controller-intent",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version",
+ "network-controller-intent"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get Composite Application",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Get `composite application`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ {
+ "name": "Composite Application not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update a Composite Application",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"version\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Update a `Composite Application`"
+ },
+ "response": [
+ {
+ "name": "Composite Application not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Composite Application",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ },
+ {
+ "key": "composite-app-name",
+ "value": "<string>",
+ "description": "(Required) Name of the Composite Application"
+ },
+ {
+ "key": "composite-app-version",
+ "value": "<string>",
+ "description": "(Required) Version of the Composite Application"
+ }
+ ]
+ },
+ "description": "Delete `Composite Application`\n"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Composite Application not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps/:composite-app-name/:composite-app-version",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps",
+ ":composite-app-name",
+ ":composite-app-version"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ },
+ {
+ "key": "composite-app-name"
+ },
+ {
+ "key": "composite-app-version"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add Composite Application",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"version\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ }
+ ]
+ },
+ "description": "Add a new `composite application`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Get all Composite Applications",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ }
+ ]
+ },
+ "description": "Get all `composite applications`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"version\": \"v1\"\n }\n }\n]"
+ },
+ {
+ "name": "No Composite App found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name/composite-apps",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name",
+ "composite-apps"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get project by project name",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ }
+ ]
+ },
+ "description": "Get `project`\n"
+ },
+ "response": [
+ {
+ "name": "Project not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update project",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ }
+ ]
+ },
+ "description": "Update `project`"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Project not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Delete project by project name",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name",
+ "value": "<string>",
+ "description": "(Required) Name of the project"
+ }
+ ]
+ },
+ "description": "Delete `project`\n"
+ },
+ "response": [
+ {
+ "name": "Project not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects/:project-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects",
+ ":project-name"
+ ],
+ "variable": [
+ {
+ "key": "project-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Project",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects"
+ ]
+ },
+ "description": "Add a new `project`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects"
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/projects",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects"
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all projects",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects"
+ ]
+ },
+ "description": "Get all `projects`\n"
+ },
+ "response": [
+ {
+ "name": "No Project found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects"
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/projects",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "projects"
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n }\n]"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {}
+ },
+ {
+ "name": "controllers",
+ "item": [
+ {
+ "name": "{controller-name}",
+ "item": [
+ {
+ "name": "Get controller by name",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name",
+ "value": "<string>",
+ "description": "(Required) Controller name"
+ }
+ ]
+ },
+ "description": "Get `controller`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ },
+ {
+ "name": "Controller not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update controller",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"host\": \"<string>\",\n \"port\": \"<string>\",\n \"type\": \"<string>\",\n \"priority\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name",
+ "value": "<string>",
+ "description": "(Required) Controller name"
+ }
+ ]
+ },
+ "description": "Update `controller`"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ },
+ {
+ "name": "Controller not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete controller",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name",
+ "value": "<string>",
+ "description": "(Required) Controller name"
+ }
+ ]
+ },
+ "description": "Delete `controller`\n"
+ },
+ "response": [
+ {
+ "name": "Controller not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers/:controller-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers",
+ ":controller-name"
+ ],
+ "variable": [
+ {
+ "key": "controller-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Controller Registration",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"host\": \"<string>\",\n \"port\": \"<string>\",\n \"type\": \"<string>\",\n \"priority\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/controllers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers"
+ ]
+ },
+ "description": "Add a new `controller`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/controllers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers"
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/controllers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers"
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all controllers",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers"
+ ]
+ },
+ "description": "Get all `controllers`\n"
+ },
+ "response": [
+ {
+ "name": "No controllers found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers"
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/controllers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "controllers"
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"host\": \"10.7.100.4\",\n \"port\": \"9029\",\n \"type\": \"placement\",\n \"priority\": \"4\"\n }\n }\n]"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {}
+ },
+ {
+ "name": "cluster-providers",
+ "item": [
+ {
+ "name": "{cluster-providers-name}",
+ "item": [
+ {
+ "name": "clusters",
+ "item": [
+ {
+ "name": "{cluster-name}",
+ "item": [
+ {
+ "name": "labels",
+ "item": [
+ {
+ "name": "{cluster-label-name}",
+ "item": [
+ {
+ "name": "Get label",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "cluster-label-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Get `cluster label`\n"
+ },
+ "response": [
+ {
+ "name": "label not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update label",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"label-name\": \"<string>\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "cluster-label-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Update label for `cluster`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Label not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete cluster label",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "cluster-label-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Delete `label`\n"
+ },
+ "response": [
+ {
+ "name": "Label not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels/:cluster-label-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels",
+ ":cluster-label-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "cluster-label-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add label to Cluster",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"label-name\": \"<string>\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Add a new label to `cluster`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ },
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Get all Labels",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Get all `labels`\n"
+ },
+ "response": [
+ {
+ "name": "No labels found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/labels",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "labels"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"label-name\": \"cluster-label-1\"\n}"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "kv-pairs",
+ "item": [
+ {
+ "name": "{kv-pair-name}",
+ "item": [
+ {
+ "name": "Get KV Pair",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "kv-pair-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Get `KV pair` for cluster\n"
+ },
+ "response": [
+ {
+ "name": "KV pair not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Update KV Pair",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "kv-pair-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Update KV Pair for `cluster`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "KV Pair not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete cluster KV pair",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "kv-pair-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Delete `KV pair`\n"
+ },
+ "response": [
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "KV pair not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Query KV Pair",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name/?key=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name",
+ ""
+ ],
+ "query": [
+ {
+ "key": "key",
+ "value": "<string>",
+ "description": "(Required) "
+ }
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "kv-pair-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Query `KV pair` for cluster\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name/?key=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name",
+ ""
+ ],
+ "query": [
+ {
+ "key": "key",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"value\": \"Ut \"\n}"
+ },
+ {
+ "name": "KV pair not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs/:kv-pair-name/?key=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs",
+ ":kv-pair-name",
+ ""
+ ],
+ "query": [
+ {
+ "key": "key",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "kv-pair-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add kv pair to Cluster",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Add kv pair to `cluster`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all KV Pairs",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Get all `KV Pairs`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"kv\": [\n \"<object>\",\n \"<object>\"\n ]\n }\n}"
+ },
+ {
+ "name": "No labels found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/kv-pairs",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "kv-pairs"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "networks",
+ "item": [
+ {
+ "name": "{network-name}",
+ "item": [
+ {
+ "name": "Get virtual network",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "network-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Get `virtual network`\n"
+ },
+ "response": [
+ {
+ "name": "Network not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Delete virtual network",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "network-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Delete `virtual network`\n"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Network not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add virtual network in cluster",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Add a `virtual network in cluster`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ]\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all cluster virtual networks",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Get all `virtual networks for a cluster`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ]\n }\n}"
+ },
+ {
+ "name": "No virtual networks found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "provider-networks",
+ "item": [
+ {
+ "name": "{network-name}",
+ "item": [
+ {
+ "name": "Get Provider Network",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "network-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Get `provider network`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ],\n \"providerNetType\": \"<string>\",\n \"vlan\": {\n \"logicalInterfaceName\": \"<string>\",\n \"nodeLabelList\": [\n \"<string>\",\n \"<string>\"\n ],\n \"providerInterfaceName\": \"<string>\",\n \"vlanID\": \"<string>\",\n \"vlanNodeSelector\": \"<string>\"\n }\n }\n}"
+ },
+ {
+ "name": "Provider network not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete Provider Network",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ },
+ {
+ "key": "network-name",
+ "value": "<string>",
+ "description": "(Required) Name of the network"
+ }
+ ]
+ },
+ "description": "Delete `Provider Network`\n"
+ },
+ "response": [
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Name not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks/:network-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks",
+ ":network-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ },
+ {
+ "key": "network-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add provider network in cluster",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ],\n \"providerNetType\": \"<string>\",\n \"vlan\": {\n \"logicalInterfaceName\": \"<string>\",\n \"nodeLabelList\": [\n \"<string>\",\n \"<string>\"\n ],\n \"providerInterfaceName\": \"<string>\",\n \"vlanID\": \"<string>\",\n \"vlanNodeSelector\": \"<string>\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Add a `provider network in cluster`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ],\n \"providerNetType\": \"<string>\",\n \"vlan\": {\n \"logicalInterfaceName\": \"<string>\",\n \"nodeLabelList\": [\n \"<string>\",\n \"<string>\"\n ],\n \"providerInterfaceName\": \"<string>\",\n \"vlanID\": \"<string>\",\n \"vlanNodeSelector\": \"<string>\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ],\n \"providerNetType\": \"<string>\",\n \"vlan\": {\n \"logicalInterfaceName\": \"<string>\",\n \"nodeLabelList\": [\n \"<string>\",\n \"<string>\"\n ],\n \"providerInterfaceName\": \"<string>\",\n \"vlanID\": \"<string>\",\n \"vlanNodeSelector\": \"<string>\"\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ],\n \"providerNetType\": \"<string>\",\n \"vlan\": {\n \"logicalInterfaceName\": \"<string>\",\n \"nodeLabelList\": [\n \"<string>\",\n \"<string>\"\n ],\n \"providerInterfaceName\": \"<string>\",\n \"vlanID\": \"<string>\",\n \"vlanNodeSelector\": \"<string>\"\n }\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all cluster provider networks",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Get all `provider networks for a cluster`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n },\n \"spec\": {\n \"cniType\": \"<string>\",\n \"ipv4Subnets\": [\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n },\n {\n \"excludeIps\": \"<string>\",\n \"gateway\": \"<string>\",\n \"name\": \"<string>\",\n \"subnet\": \"<string>\"\n }\n ],\n \"providerNetType\": \"<string>\",\n \"vlan\": {\n \"logicalInterfaceName\": \"<string>\",\n \"nodeLabelList\": [\n \"<string>\",\n \"<string>\"\n ],\n \"providerInterfaceName\": \"<string>\",\n \"vlanID\": \"<string>\",\n \"vlanNodeSelector\": \"<string>\"\n }\n }\n}"
+ },
+ {
+ "name": "No provider networks found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/provider-networks",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "provider-networks"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get Cluster",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Get `cluster`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Cluster not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update Cluster",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "multipart/form-data"
+ }
+ ],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"}",
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Update `cluster`"
+ },
+ "response": [
+ {
+ "name": "Cluster not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete cluster",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ },
+ {
+ "key": "cluster-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster"
+ }
+ ]
+ },
+ "description": "Delete `cluster`\n"
+ },
+ "response": [
+ {
+ "name": "Cluster not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ },
+ {
+ "key": "cluster-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Apply Network configuration",
+ "request": {
+ "method": "POST",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/apply",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "apply"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": ""
+ },
+ {
+ "key": "cluster-name",
+ "value": ""
+ }
+ ]
+ },
+ "description": "Apply Network configuration"
+ },
+ "response": []
+ },
+ {
+ "name": "Terminate Network configuration ",
+ "request": {
+ "method": "POST",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/:cluster-name/terminate",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ":cluster-name",
+ "terminate"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": ""
+ },
+ {
+ "key": "cluster-name",
+ "value": ""
+ }
+ ]
+ },
+ "description": "Terminate Network configuration"
+ },
+ "response": []
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Add Cluster",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "multipart/form-data"
+ }
+ ],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"}",
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ }
+ ]
+ },
+ "description": "Add a new `cluster`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "formdata",
+ "formdata": [
+ {
+ "key": "metadata",
+ "value": "{\"name\":\"ResName\",\"description\":\"Resource description\",\"userData1\":\"Some data\",\"userData2\":\"Some more data\"}",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ },
+ {
+ "key": "file",
+ "value": "<binary>",
+ "description": {
+ "content": "",
+ "type": "text/plain"
+ },
+ "type": "text"
+ }
+ ]
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all clusters for cluster provider",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ }
+ ]
+ },
+ "description": "Get all `clusters for cluster provider`\n"
+ },
+ "response": [
+ {
+ "name": "No clusters found in cluster provider",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n }\n]"
+ }
+ ]
+ },
+ {
+ "name": "Get clusters for label",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/?label=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ""
+ ],
+ "query": [
+ {
+ "key": "label",
+ "value": "<string>",
+ "description": "(Required) "
+ }
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ }
+ ]
+ },
+ "description": "Get `clusters for label`\n"
+ },
+ "response": [
+ {
+ "name": "label not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/?label=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ""
+ ],
+ "query": [
+ {
+ "key": "label",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name/clusters/?label=<string>",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name",
+ "clusters",
+ ""
+ ],
+ "query": [
+ {
+ "key": "label",
+ "value": "<string>"
+ }
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "[\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n },\n {\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n }\n]"
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Get cluster provider by name",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ }
+ ]
+ },
+ "description": "Get `cluster provider`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Cluster Provider not found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Update cluster provider",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ }
+ ]
+ },
+ "description": "Update `cluster providers`"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Cluster Provider not found",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Delete cluster provider by name",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name",
+ "value": "<string>",
+ "description": "(Required) Name of the cluster provider"
+ }
+ ]
+ },
+ "description": "Delete `cluster provider`\n"
+ },
+ "response": [
+ {
+ "name": "Cluster Provider not found",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Deleted",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Invalid data",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers/:cluster-providers-name",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers",
+ ":cluster-providers-name"
+ ],
+ "variable": [
+ {
+ "key": "cluster-providers-name"
+ }
+ ]
+ }
+ },
+ "status": "Bad Request",
+ "code": 400,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {},
+ "_postman_isSubFolder": true
+ },
+ {
+ "name": "Cluster Providers",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"userData1\": \"<string>\",\n \"userData2\": \"<string>\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers"
+ ]
+ },
+ "description": "Add a new `cluster provider`"
+ },
+ "response": [
+ {
+ "name": "Invalid Input",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers"
+ ]
+ }
+ },
+ "status": "Method Not Allowed",
+ "code": 405,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ },
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "POST",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers"
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ }
+ ]
+ },
+ {
+ "name": "Get all cluster providers",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers"
+ ]
+ },
+ "description": "Get all `cluster providers`\n"
+ },
+ "response": [
+ {
+ "name": "Success",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers"
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"metadata\": {\n \"name\": \"ResName\",\n \"description\": \"Resource description\",\n \"userData1\": \"Some data\",\n \"userData2\": \"Some more data\"\n }\n}"
+ },
+ {
+ "name": "No cluster provider found",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/cluster-providers",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "cluster-providers"
+ ]
+ }
+ },
+ "status": "Not Found",
+ "code": 404,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ],
+ "protocolProfileBehavior": {}
+ }
+ ],
+ "variable": [
+ {
+ "id": "baseUrl",
+ "key": "baseUrl",
+ "value": "/",
+ "type": "string"
+ }
+ ],
+ "protocolProfileBehavior": {}
+} \ No newline at end of file
diff --git a/src/dcm/api/api.go b/src/dcm/api/api.go
index 87ad77b5..de1d5c97 100644
--- a/src/dcm/api/api.go
+++ b/src/dcm/api/api.go
@@ -14,143 +14,142 @@ limitations under the License.
package api
import (
+ "github.com/onap/multicloud-k8s/src/dcm/pkg/module"
- "github.com/onap/multicloud-k8s/src/dcm/pkg/module"
-
- "github.com/gorilla/mux"
+ "github.com/gorilla/mux"
)
// NewRouter creates a router that registers the various urls that are
// supported
func NewRouter(
- logicalCloudClient module.LogicalCloudManager,
- clusterClient module.ClusterManager,
- userPermissionClient module.UserPermissionManager,
- quotaClient module.QuotaManager,
- keyValueClient module.KeyValueManager) *mux.Router {
-
- router := mux.NewRouter()
-
- // Set up Logical Cloud handler routes
- if logicalCloudClient == nil {
- logicalCloudClient = module.NewLogicalCloudClient()
- }
-
- if clusterClient == nil {
- clusterClient = module.NewClusterClient()
- }
-
- if quotaClient == nil {
- quotaClient = module.NewQuotaClient()
- }
-
- logicalCloudHandler := logicalCloudHandler{client: logicalCloudClient,
- clusterClient: clusterClient,
- quotaClient: quotaClient,
- }
- lcRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
- lcRouter.HandleFunc(
- "/logical-clouds",
- logicalCloudHandler.createHandler).Methods("POST")
- lcRouter.HandleFunc(
- "/logical-clouds",
- logicalCloudHandler.getHandler).Methods("GET")
- lcRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}",
- logicalCloudHandler.getHandler).Methods("GET")
- lcRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}",
- logicalCloudHandler.deleteHandler).Methods("DELETE")
- lcRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}",
- logicalCloudHandler.updateHandler).Methods("PUT")
- lcRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/apply",
- logicalCloudHandler.applyHandler).Methods("POST")
- // To Do
- // get kubeconfig
- /*lcRouter.HandleFunc(
- "/logical-clouds/{name}/kubeconfig?cluster-reference={cluster}",
- logicalCloudHandler.getConfigHandler).Methods("GET")
- //get status
- lcRouter.HandleFunc(
- "/logical-clouds/{name}/cluster-references/",
- logicalCloudHandler.associateHandler).Methods("GET")*/
-
- // Set up Cluster API
-
- clusterHandler := clusterHandler{client: clusterClient}
- clusterRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
- clusterRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-references",
- clusterHandler.createHandler).Methods("POST")
- clusterRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-references",
- clusterHandler.getHandler).Methods("GET")
- clusterRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-references/{cluster-reference}",
- clusterHandler.getHandler).Methods("GET")
- clusterRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-references/{cluster-reference}",
- clusterHandler.updateHandler).Methods("PUT")
- clusterRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-references/{cluster-reference}",
- clusterHandler.deleteHandler).Methods("DELETE")
-
- // Set up User Permission API
- if userPermissionClient == nil {
- userPermissionClient = module.NewUserPermissionClient()
- }
- userPermissionHandler := userPermissionHandler{client: userPermissionClient}
- upRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
- upRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/user-permissions",
- userPermissionHandler.createHandler).Methods("POST")
- upRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/user-permissions/{permission-name}",
- userPermissionHandler.getHandler).Methods("GET")
- upRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/user-permissions/{permission-name}",
- userPermissionHandler.updateHandler).Methods("PUT")
- upRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/user-permissions/{permission-name}",
- userPermissionHandler.deleteHandler).Methods("DELETE")
-
- // Set up Quota API
-
- quotaHandler := quotaHandler{client: quotaClient}
- quotaRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
- quotaRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-quotas",
- quotaHandler.createHandler).Methods("POST")
- quotaRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-quotas/{quota-name}",
- quotaHandler.getHandler).Methods("GET")
- quotaRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-quotas/{quota-name}",
- quotaHandler.updateHandler).Methods("PUT")
- quotaRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/cluster-quotas/{quota-name}",
- quotaHandler.deleteHandler).Methods("DELETE")
-
- // Set up Key Value API
- if keyValueClient == nil {
- keyValueClient = module.NewKeyValueClient()
- }
- keyValueHandler := keyValueHandler{client: keyValueClient}
- kvRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
- kvRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/kv-pairs",
- keyValueHandler.createHandler).Methods("POST")
- kvRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/kv-pairs/{kv-pair-name}",
- keyValueHandler.getHandler).Methods("GET")
- kvRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/kv-pairs/{kv-pair-name}",
- keyValueHandler.updateHandler).Methods("PUT")
- kvRouter.HandleFunc(
- "/logical-clouds/{logical-cloud-name}/kv-pairs/{kv-pair-name}",
- keyValueHandler.deleteHandler).Methods("DELETE")
- return router
+ logicalCloudClient module.LogicalCloudManager,
+ clusterClient module.ClusterManager,
+ userPermissionClient module.UserPermissionManager,
+ quotaClient module.QuotaManager,
+ keyValueClient module.KeyValueManager) *mux.Router {
+
+ router := mux.NewRouter()
+
+ // Set up Logical Cloud handler routes
+ if logicalCloudClient == nil {
+ logicalCloudClient = module.NewLogicalCloudClient()
+ }
+
+ if clusterClient == nil {
+ clusterClient = module.NewClusterClient()
+ }
+
+ if quotaClient == nil {
+ quotaClient = module.NewQuotaClient()
+ }
+
+ logicalCloudHandler := logicalCloudHandler{client: logicalCloudClient,
+ clusterClient: clusterClient,
+ quotaClient: quotaClient,
+ }
+ lcRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
+ lcRouter.HandleFunc(
+ "/logical-clouds",
+ logicalCloudHandler.createHandler).Methods("POST")
+ lcRouter.HandleFunc(
+ "/logical-clouds",
+ logicalCloudHandler.getHandler).Methods("GET")
+ lcRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}",
+ logicalCloudHandler.getHandler).Methods("GET")
+ lcRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}",
+ logicalCloudHandler.deleteHandler).Methods("DELETE")
+ lcRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}",
+ logicalCloudHandler.updateHandler).Methods("PUT")
+ lcRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/apply",
+ logicalCloudHandler.applyHandler).Methods("POST")
+ // To Do
+ // get kubeconfig
+ /*lcRouter.HandleFunc(
+ "/logical-clouds/{name}/kubeconfig?cluster-reference={cluster}",
+ logicalCloudHandler.getConfigHandler).Methods("GET")
+ //get status
+ lcRouter.HandleFunc(
+ "/logical-clouds/{name}/cluster-references/",
+ logicalCloudHandler.associateHandler).Methods("GET")*/
+
+ // Set up Cluster API
+
+ clusterHandler := clusterHandler{client: clusterClient}
+ clusterRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
+ clusterRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-references",
+ clusterHandler.createHandler).Methods("POST")
+ clusterRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-references",
+ clusterHandler.getHandler).Methods("GET")
+ clusterRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-references/{cluster-reference}",
+ clusterHandler.getHandler).Methods("GET")
+ clusterRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-references/{cluster-reference}",
+ clusterHandler.updateHandler).Methods("PUT")
+ clusterRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-references/{cluster-reference}",
+ clusterHandler.deleteHandler).Methods("DELETE")
+
+ // Set up User Permission API
+ if userPermissionClient == nil {
+ userPermissionClient = module.NewUserPermissionClient()
+ }
+ userPermissionHandler := userPermissionHandler{client: userPermissionClient}
+ upRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
+ upRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/user-permissions",
+ userPermissionHandler.createHandler).Methods("POST")
+ upRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/user-permissions/{permission-name}",
+ userPermissionHandler.getHandler).Methods("GET")
+ upRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/user-permissions/{permission-name}",
+ userPermissionHandler.updateHandler).Methods("PUT")
+ upRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/user-permissions/{permission-name}",
+ userPermissionHandler.deleteHandler).Methods("DELETE")
+
+ // Set up Quota API
+
+ quotaHandler := quotaHandler{client: quotaClient}
+ quotaRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
+ quotaRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-quotas",
+ quotaHandler.createHandler).Methods("POST")
+ quotaRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-quotas/{quota-name}",
+ quotaHandler.getHandler).Methods("GET")
+ quotaRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-quotas/{quota-name}",
+ quotaHandler.updateHandler).Methods("PUT")
+ quotaRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/cluster-quotas/{quota-name}",
+ quotaHandler.deleteHandler).Methods("DELETE")
+
+ // Set up Key Value API
+ if keyValueClient == nil {
+ keyValueClient = module.NewKeyValueClient()
+ }
+ keyValueHandler := keyValueHandler{client: keyValueClient}
+ kvRouter := router.PathPrefix("/v2/projects/{project-name}").Subrouter()
+ kvRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/kv-pairs",
+ keyValueHandler.createHandler).Methods("POST")
+ kvRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/kv-pairs/{kv-pair-name}",
+ keyValueHandler.getHandler).Methods("GET")
+ kvRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/kv-pairs/{kv-pair-name}",
+ keyValueHandler.updateHandler).Methods("PUT")
+ kvRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/kv-pairs/{kv-pair-name}",
+ keyValueHandler.deleteHandler).Methods("DELETE")
+ return router
}
diff --git a/src/dcm/api/logicalCloudHandler.go b/src/dcm/api/logicalCloudHandler.go
index d8fcf268..d9a3e5f5 100644
--- a/src/dcm/api/logicalCloudHandler.go
+++ b/src/dcm/api/logicalCloudHandler.go
@@ -14,182 +14,181 @@
* See the License for the specific language governing permissions
* and
* limitations under the License.
-*/
+ */
package api
import (
- "encoding/json"
- "net/http"
- "io"
- "github.com/onap/multicloud-k8s/src/dcm/pkg/module"
- "github.com/gorilla/mux"
-)
+ "encoding/json"
+ "io"
+ "net/http"
+ "github.com/gorilla/mux"
+ "github.com/onap/multicloud-k8s/src/dcm/pkg/module"
+)
// logicalCloudHandler is used to store backend implementations objects
type logicalCloudHandler struct {
- client module.LogicalCloudManager
- clusterClient module.ClusterManager
- quotaClient module.QuotaManager
+ client module.LogicalCloudManager
+ clusterClient module.ClusterManager
+ quotaClient module.QuotaManager
}
// CreateHandler handles creation of the logical cloud entry in the database
func (h logicalCloudHandler) createHandler(w http.ResponseWriter, r *http.Request) {
- vars := mux.Vars(r)
- project := vars["project-name"]
- var v module.LogicalCloud
-
- err := json.NewDecoder(r.Body).Decode(&v)
- switch {
- case err == io.EOF:
- http.Error(w, "Empty body", http.StatusBadRequest)
- return
- case err != nil:
- http.Error(w, err.Error(), http.StatusUnprocessableEntity)
- return
- }
-
- // Logical Cloud Name is required.
- if v.MetaData.LogicalCloudName == "" {
- http.Error(w, "Missing name in POST request", http.StatusBadRequest)
- return
- }
-
- ret, err := h.client.Create(project, v)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- w.Header().Set("Content-Type", "application/json")
- w.WriteHeader(http.StatusCreated)
- err = json.NewEncoder(w).Encode(ret)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
+ vars := mux.Vars(r)
+ project := vars["project-name"]
+ var v module.LogicalCloud
+
+ err := json.NewDecoder(r.Body).Decode(&v)
+ switch {
+ case err == io.EOF:
+ http.Error(w, "Empty body", http.StatusBadRequest)
+ return
+ case err != nil:
+ http.Error(w, err.Error(), http.StatusUnprocessableEntity)
+ return
+ }
+
+ // Logical Cloud Name is required.
+ if v.MetaData.LogicalCloudName == "" {
+ http.Error(w, "Missing name in POST request", http.StatusBadRequest)
+ return
+ }
+
+ ret, err := h.client.Create(project, v)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
+
+ w.Header().Set("Content-Type", "application/json")
+ w.WriteHeader(http.StatusCreated)
+ err = json.NewEncoder(w).Encode(ret)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
}
// getHandler handle GET operations on a particular name
// Returns a Logical Cloud
func (h logicalCloudHandler) getHandler(w http.ResponseWriter, r *http.Request) {
- vars := mux.Vars(r)
- project := vars["project-name"]
- name := vars["logical-cloud-name"]
- var ret interface{}
- var err error
-
- if len(name) == 0 {
- ret, err = h.client.GetAll(project)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
- } else {
- ret, err = h.client.Get(project, name)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
- }
-
- w.Header().Set("Content-Type", "application/json")
- w.WriteHeader(http.StatusOK)
- err = json.NewEncoder(w).Encode(ret)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
+ vars := mux.Vars(r)
+ project := vars["project-name"]
+ name := vars["logical-cloud-name"]
+ var ret interface{}
+ var err error
+
+ if len(name) == 0 {
+ ret, err = h.client.GetAll(project)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
+ } else {
+ ret, err = h.client.Get(project, name)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
+ }
+
+ w.Header().Set("Content-Type", "application/json")
+ w.WriteHeader(http.StatusOK)
+ err = json.NewEncoder(w).Encode(ret)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
}
// UpdateHandler handles Update operations on a particular logical cloud
func (h logicalCloudHandler) updateHandler(w http.ResponseWriter, r *http.Request) {
- var v module.LogicalCloud
- vars := mux.Vars(r)
- project := vars["project-name"]
- name := vars["logical-cloud-name"]
-
- err := json.NewDecoder(r.Body).Decode(&v)
- switch {
- case err == io.EOF:
- http.Error(w, "Empty body", http.StatusBadRequest)
- return
- case err != nil:
- http.Error(w, err.Error(), http.StatusUnprocessableEntity)
- return
- }
-
- if v.MetaData.LogicalCloudName == "" {
- http.Error(w, "Missing name in PUT request", http.StatusBadRequest)
- return
- }
-
- ret, err := h.client.Update(project, name, v)
- if err != nil {
- http.Error(w, err.Error(),
- http.StatusInternalServerError)
- return
- }
- w.Header().Set("Content-Type", "application/json")
- w.WriteHeader(http.StatusCreated)
- err = json.NewEncoder(w).Encode(ret)
- if err != nil {
- http.Error(w, err.Error(),
- http.StatusInternalServerError)
- return
- }
+ var v module.LogicalCloud
+ vars := mux.Vars(r)
+ project := vars["project-name"]
+ name := vars["logical-cloud-name"]
+
+ err := json.NewDecoder(r.Body).Decode(&v)
+ switch {
+ case err == io.EOF:
+ http.Error(w, "Empty body", http.StatusBadRequest)
+ return
+ case err != nil:
+ http.Error(w, err.Error(), http.StatusUnprocessableEntity)
+ return
+ }
+
+ if v.MetaData.LogicalCloudName == "" {
+ http.Error(w, "Missing name in PUT request", http.StatusBadRequest)
+ return
+ }
+
+ ret, err := h.client.Update(project, name, v)
+ if err != nil {
+ http.Error(w, err.Error(),
+ http.StatusInternalServerError)
+ return
+ }
+ w.Header().Set("Content-Type", "application/json")
+ w.WriteHeader(http.StatusCreated)
+ err = json.NewEncoder(w).Encode(ret)
+ if err != nil {
+ http.Error(w, err.Error(),
+ http.StatusInternalServerError)
+ return
+ }
}
func (h logicalCloudHandler) deleteHandler(w http.ResponseWriter, r *http.Request) {
- vars := mux.Vars(r)
- project := vars["project-name"]
- name := vars["logical-cloud-name"]
+ vars := mux.Vars(r)
+ project := vars["project-name"]
+ name := vars["logical-cloud-name"]
- err := h.client.Delete(project, name)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
+ err := h.client.Delete(project, name)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
- w.WriteHeader(http.StatusNoContent)
+ w.WriteHeader(http.StatusNoContent)
}
func (h logicalCloudHandler) applyHandler(w http.ResponseWriter, r *http.Request) {
- vars := mux.Vars(r)
- project := vars["project-name"]
- name := vars["logical-cloud-name"]
-
- // Get logical cloud
- lc, err := h.client.Get(project, name)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- // Get Clusters
- clusters, err := h.clusterClient.GetAllClusters(project, name)
-
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
-
- //Get Quotas
- quotas, err := h.quotaClient.GetAllQuotas(project, name)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- err = module.CreateEtcdContext(lc, clusters, quotas)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- return
+ vars := mux.Vars(r)
+ project := vars["project-name"]
+ name := vars["logical-cloud-name"]
+
+ // Get logical cloud
+ lc, err := h.client.Get(project, name)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
+
+ // Get Clusters
+ clusters, err := h.clusterClient.GetAllClusters(project, name)
+
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
+
+ //Get Quotas
+ quotas, err := h.quotaClient.GetAllQuotas(project, name)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
+
+ err = module.CreateEtcdContext(lc, clusters, quotas)
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
+
+ return
}
diff --git a/src/dcm/pkg/module/apply.go b/src/dcm/pkg/module/apply.go
index c918f749..dbcbf8ac 100644
--- a/src/dcm/pkg/module/apply.go
+++ b/src/dcm/pkg/module/apply.go
@@ -1,451 +1,424 @@
-/*
-* Copyright 2020 Intel Corporation, Inc
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-package module
-
-import (
- "strings"
- "fmt"
- "crypto/rsa"
- "crypto/rand"
- "crypto/x509"
- "crypto/x509/pkix"
- "encoding/json"
- "encoding/pem"
- "encoding/base64"
- "github.com/onap/multicloud-k8s/src/orchestrator/pkg/appcontext"
- log "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/logutils"
- "gopkg.in/yaml.v2"
- pkgerrors "github.com/pkg/errors"
-
-)
-
-type Resource struct {
- ApiVersion string `yaml:"apiVersion"`
- Kind string `yaml:"kind"`
- MetaData MetaDatas `yaml:"metadata"`
- Specification Specs `yaml:"spec,omitempty"`
- Rules []RoleRules `yaml:"rules,omitempty"`
- Subjects []RoleSubjects `yaml:"subjects,omitempty"`
- RoleRefs RoleRef `yaml:"roleRef,omitempty"`
-}
-
-type MetaDatas struct {
- Name string `yaml:"name"`
- Namespace string `yaml:"namespace,omitempty"`
-}
-
-type Specs struct {
- Request string `yaml:"request,omitempty"`
- Usages []string `yaml:"usages,omitempty"`
- //Hard logicalcloud.QSpec `yaml:"hard,omitempty"`
- Hard QSpec `yaml:"hard,omitempty"`
-}
-
-type RoleRules struct {
- ApiGroups []string `yaml:"apiGroups"`
- Resources []string `yaml:"resources"`
- Verbs []string `yaml:"verbs"`
-}
-
-type RoleSubjects struct {
- Kind string `yaml:"kind"`
- Name string `yaml:"name"`
- ApiGroup string `yaml:"apiGroup"`
-}
-
-type RoleRef struct {
- Kind string `yaml:"kind"`
- Name string `yaml:"name"`
- ApiGroup string `yaml:"apiGroup"`
-}
-
-
-func createNamespace(logicalcloud LogicalCloud) (string, error) {
-
- namespace := Resource{
- ApiVersion: "v1",
- Kind: "Namespace",
- MetaData: MetaDatas{
- Name: logicalcloud.Specification.NameSpace,
- },
- }
-
- nsData, err := yaml.Marshal(&namespace)
- if err != nil {
- return "", err
- }
-
-
- return string(nsData), nil
-}
-
-func createRole(logicalcloud LogicalCloud) (string, error) {
-
- userPermissions := logicalcloud.Specification.User.UserPermissions[0]
-
- role := Resource{
- ApiVersion: "rbac.authorization.k8s.io/v1beta1",
- Kind: "Role",
- MetaData: MetaDatas{
- Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-role"}, ""),
- Namespace: logicalcloud.Specification.NameSpace,
- },
- Rules: []RoleRules{ RoleRules{
- ApiGroups: userPermissions.APIGroups,
- Resources: userPermissions.Resources,
- Verbs: userPermissions.Verbs,
- },
- },
-
- }
-
- roleData, err := yaml.Marshal(&role)
- if err != nil {
- return "", err
- }
-
- return string(roleData), nil
-}
-
-func createRoleBinding(logicalcloud LogicalCloud) (string, error) {
-
- roleBinding := Resource{
- ApiVersion: "rbac.authorization.k8s.io/v1beta1",
- Kind: "RoleBinding",
- MetaData: MetaDatas{
- Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-roleBinding"}, ""),
- Namespace: logicalcloud.Specification.NameSpace,
- },
- Subjects: []RoleSubjects{ RoleSubjects{
- Kind: "User",
- Name: logicalcloud.Specification.User.UserName,
- ApiGroup: "",
- },
- },
-
- RoleRefs: RoleRef{
- Kind: "Role",
- Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-role"}, ""),
- ApiGroup: "",
- },
- }
-
- rBData, err := yaml.Marshal(&roleBinding)
- if err != nil {
- return "", err
- }
-
-
- return string(rBData), nil
-
-}
-
-func createQuota(quota []Quota, namespace string) (string, error) {
- lcQuota := quota[0]
-
- q := Resource{
- ApiVersion: "v1",
- Kind: "ResourceQuota",
- MetaData: MetaDatas{
- Name: lcQuota.MetaData.QuotaName,
- Namespace: namespace,
- },
- Specification: Specs{
- Hard: lcQuota.Specification,
- },
- }
-
- qData, err := yaml.Marshal(&q)
- if err != nil {
- return "", err
- }
-
-
-
- return string(qData), nil
-
-}
-
-func createUserCSR(logicalcloud LogicalCloud) (string, error) {
- KEYSIZE := 4096
- userName := logicalcloud.Specification.User.UserName
-
- key, err := rsa.GenerateKey(rand.Reader, KEYSIZE)
- if err != nil {
- return "", err
- }
-
- csrTemplate := x509.CertificateRequest{Subject: pkix.Name{CommonName: userName,},
- }
-
- csrCert, err := x509.CreateCertificateRequest(rand.Reader, &csrTemplate, key)
- if err != nil {
- return "", err
- }
-
- //Encode csr
- csr := pem.EncodeToMemory(&pem.Block{
- Type: "CERTIFICATE REQUEST",
- Bytes: csrCert,
- })
-
- csrObj := Resource{
- ApiVersion: "certificates.k8s.io/v1beta1",
- Kind: "CertificateSigningRequest",
- MetaData: MetaDatas{
- Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-user-csr"}, ""),
- Namespace: logicalcloud.Specification.NameSpace,
- },
- Specification: Specs{
- Request: base64.StdEncoding.EncodeToString(csr),
- Usages: []string{"digital signature", "key encipherment"},
- },
- }
-
- csrData, err := yaml.Marshal(&csrObj)
- if err != nil {
- return "", err
- }
-
-
- return string(csrData), nil
-
-
-}
-
-// TODO:
-// Install istio
-// Store user key for user creation
-// Code to run kubectl commands for user
-// kubectl certificate approve lc1-user-cert
-// kubectl get csr lc1-user-cert -o jsonpath='{.status.certificate}' | base64 --decode > user.crt
-// kubectl config set-credentials user --client-certificate=<user.crt> --client-key=<user.key>
-// kubectl config set-context user-context --cluster=cluster-name --namespace=lc1 --user=user
-
-
-func CreateEtcdContext(logicalcloud LogicalCloud, clusterList []Cluster,
- quotaList []Quota ) error {
-
- APP := "logical-cloud"
- logicalCloudName := logicalcloud.MetaData.LogicalCloudName
-
-
- //Resource Names
- namespaceName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+namespace"}, "")
- roleName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+role"}, "")
- roleBindingName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+roleBinding"}, "")
- quotaName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+quota"}, "")
- csrName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+CertificateSigningRequest"}, "")
-
- // Get resources to be added
- namespace, err := createNamespace(logicalcloud)
- if err != nil {
- return pkgerrors.Wrap(err, "Error Creating Namespace YAML for logical cloud")
- }
-
- role, err := createRole(logicalcloud)
- if err != nil {
- return pkgerrors.Wrap(err, "Error Creating Role YAML for logical cloud")
- }
-
- roleBinding, err := createRoleBinding(logicalcloud)
- if err != nil {
- return pkgerrors.Wrap(err, "Error Creating RoleBinding YAML for logical cloud")
- }
-
- quota, err := createQuota(quotaList, logicalcloud.Specification.NameSpace)
- if err != nil {
- return pkgerrors.Wrap(err, "Error Creating Quota YAML for logical cloud")
- }
-
- csr, err := createUserCSR(logicalcloud)
- if err != nil {
- return pkgerrors.Wrap(err, "Error Creating User CSR for logical cloud")
- }
-
-
- context := appcontext.AppContext{}
- ctxVal, err := context.InitAppContext()
- if err != nil {
- return pkgerrors.Wrap(err, "Error creating AppContext")
- }
-
- fmt.Printf("%v\n", ctxVal)
-
- handle, err := context.CreateCompositeApp()
- if err != nil {
- return pkgerrors.Wrap(err, "Error creating AppContext CompositeApp")
- }
-
-
- appHandle, err := context.AddApp(handle, APP)
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext CompositeApp create failure", log.Fields{
- "logical-cloud": logicalCloudName,
- })
- }
- return pkgerrors.Wrap(err, "Error adding App to AppContext")
- }
-
-
- // Iterate through cluster list and add all the clusters
- for _, cluster:= range clusterList {
- clusterName := strings.Join([]string{cluster.Specification.ClusterProvider, "+", cluster.Specification.ClusterName, }, "")
- clusterHandle, err := context.AddCluster(appHandle, clusterName)
-
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add cluster failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding Cluster to AppContext")
- }
-
- // Add namespace resource to each cluster
- _, err = context.AddResource(clusterHandle, namespaceName, namespace)
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add namespace resource failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding Namespace Resource to AppContext")
- }
-
- // Add csr resource to each cluster
- _, err = context.AddResource(clusterHandle, csrName, csr)
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add CSR resource failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding CSR Resource to AppContext")
- }
-
-
-
- // Add Role resource to each cluster
- _, err = context.AddResource(clusterHandle, roleName, role)
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add role resource failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding role Resource to AppContext")
- }
-
- // Add RoleBinding resource to each cluster
- _, err = context.AddResource(clusterHandle, roleBindingName, roleBinding)
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add roleBinding resource failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding roleBinding Resource to AppContext")
- }
-
- // Add quota resource to each cluster
- _, err = context.AddResource(clusterHandle, quotaName, quota)
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add quota resource failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding quota Resource to AppContext")
- }
-
- // Add Resource Order and Resource Dependency
- resOrder, err := json.Marshal(map[string][]string{"resorder" : []string{namespaceName, quotaName, csrName, roleName, roleBindingName}})
- if err != nil {
- return pkgerrors.Wrap(err, "Error creating resource order JSON")
- }
-
- resDependency, err := json.Marshal(map[string]map[string]string{"resdependency" : map[string]string{namespaceName : "go",
- quotaName : strings.Join([]string{"wait on ", namespaceName}, ""), csrName: strings.Join([]string{"wait on ", quotaName}, ""),
- roleName : strings.Join([]string{"wait on ", csrName}, ""), roleBindingName: strings.Join([]string{"wait on ", roleName}, ""),}})
-
- if err != nil {
- return pkgerrors.Wrap(err, "Error creating resource dependency JSON")
- }
-
- _, err = context.AddInstruction(clusterHandle, "resource", "order", string(resOrder))
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add instruction failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding instruction order to AppContext")
- }
-
- _, err = context.AddInstruction(clusterHandle, "resource", "dependency", string(resDependency))
- if err != nil {
- cleanuperr := context.DeleteCompositeApp()
- if cleanuperr != nil {
- log.Warn("Error cleaning AppContext after add instruction failure", log.Fields{
- "cluster-provider": cluster.Specification.ClusterProvider,
- "cluster": cluster.Specification.ClusterName,
- "logical-cloud": logicalCloudName,
-
- })
- }
- return pkgerrors.Wrap(err, "Error adding instruction dependency to AppContext")
- }
-
-
-
- }
-
- return nil
-
-
-}
+/*
+* Copyright 2020 Intel Corporation, Inc
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+ */
+
+package module
+
+import (
+ "crypto/rand"
+ "crypto/rsa"
+ "crypto/x509"
+ "crypto/x509/pkix"
+ "encoding/base64"
+ "encoding/json"
+ "encoding/pem"
+ "fmt"
+ "strings"
+
+ "github.com/onap/multicloud-k8s/src/orchestrator/pkg/appcontext"
+ log "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/logutils"
+ pkgerrors "github.com/pkg/errors"
+ "gopkg.in/yaml.v2"
+)
+
+type Resource struct {
+ ApiVersion string `yaml:"apiVersion"`
+ Kind string `yaml:"kind"`
+ MetaData MetaDatas `yaml:"metadata"`
+ Specification Specs `yaml:"spec,omitempty"`
+ Rules []RoleRules `yaml:"rules,omitempty"`
+ Subjects []RoleSubjects `yaml:"subjects,omitempty"`
+ RoleRefs RoleRef `yaml:"roleRef,omitempty"`
+}
+
+type MetaDatas struct {
+ Name string `yaml:"name"`
+ Namespace string `yaml:"namespace,omitempty"`
+}
+
+type Specs struct {
+ Request string `yaml:"request,omitempty"`
+ Usages []string `yaml:"usages,omitempty"`
+ //Hard logicalcloud.QSpec `yaml:"hard,omitempty"`
+ Hard QSpec `yaml:"hard,omitempty"`
+}
+
+type RoleRules struct {
+ ApiGroups []string `yaml:"apiGroups"`
+ Resources []string `yaml:"resources"`
+ Verbs []string `yaml:"verbs"`
+}
+
+type RoleSubjects struct {
+ Kind string `yaml:"kind"`
+ Name string `yaml:"name"`
+ ApiGroup string `yaml:"apiGroup"`
+}
+
+type RoleRef struct {
+ Kind string `yaml:"kind"`
+ Name string `yaml:"name"`
+ ApiGroup string `yaml:"apiGroup"`
+}
+
+func createNamespace(logicalcloud LogicalCloud) (string, error) {
+
+ namespace := Resource{
+ ApiVersion: "v1",
+ Kind: "Namespace",
+ MetaData: MetaDatas{
+ Name: logicalcloud.Specification.NameSpace,
+ },
+ }
+
+ nsData, err := yaml.Marshal(&namespace)
+ if err != nil {
+ return "", err
+ }
+
+ return string(nsData), nil
+}
+
+func createRole(logicalcloud LogicalCloud) (string, error) {
+
+ userPermissions := logicalcloud.Specification.User.UserPermissions[0]
+
+ role := Resource{
+ ApiVersion: "rbac.authorization.k8s.io/v1beta1",
+ Kind: "Role",
+ MetaData: MetaDatas{
+ Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-role"}, ""),
+ Namespace: logicalcloud.Specification.NameSpace,
+ },
+ Rules: []RoleRules{RoleRules{
+ ApiGroups: userPermissions.APIGroups,
+ Resources: userPermissions.Resources,
+ Verbs: userPermissions.Verbs,
+ },
+ },
+ }
+
+ roleData, err := yaml.Marshal(&role)
+ if err != nil {
+ return "", err
+ }
+
+ return string(roleData), nil
+}
+
+func createRoleBinding(logicalcloud LogicalCloud) (string, error) {
+
+ roleBinding := Resource{
+ ApiVersion: "rbac.authorization.k8s.io/v1beta1",
+ Kind: "RoleBinding",
+ MetaData: MetaDatas{
+ Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-roleBinding"}, ""),
+ Namespace: logicalcloud.Specification.NameSpace,
+ },
+ Subjects: []RoleSubjects{RoleSubjects{
+ Kind: "User",
+ Name: logicalcloud.Specification.User.UserName,
+ ApiGroup: "",
+ },
+ },
+
+ RoleRefs: RoleRef{
+ Kind: "Role",
+ Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-role"}, ""),
+ ApiGroup: "",
+ },
+ }
+
+ rBData, err := yaml.Marshal(&roleBinding)
+ if err != nil {
+ return "", err
+ }
+
+ return string(rBData), nil
+
+}
+
+func createQuota(quota []Quota, namespace string) (string, error) {
+ lcQuota := quota[0]
+
+ q := Resource{
+ ApiVersion: "v1",
+ Kind: "ResourceQuota",
+ MetaData: MetaDatas{
+ Name: lcQuota.MetaData.QuotaName,
+ Namespace: namespace,
+ },
+ Specification: Specs{
+ Hard: lcQuota.Specification,
+ },
+ }
+
+ qData, err := yaml.Marshal(&q)
+ if err != nil {
+ return "", err
+ }
+
+ return string(qData), nil
+
+}
+
+func createUserCSR(logicalcloud LogicalCloud) (string, error) {
+ KEYSIZE := 4096
+ userName := logicalcloud.Specification.User.UserName
+
+ key, err := rsa.GenerateKey(rand.Reader, KEYSIZE)
+ if err != nil {
+ return "", err
+ }
+
+ csrTemplate := x509.CertificateRequest{Subject: pkix.Name{CommonName: userName}}
+
+ csrCert, err := x509.CreateCertificateRequest(rand.Reader, &csrTemplate, key)
+ if err != nil {
+ return "", err
+ }
+
+ //Encode csr
+ csr := pem.EncodeToMemory(&pem.Block{
+ Type: "CERTIFICATE REQUEST",
+ Bytes: csrCert,
+ })
+
+ csrObj := Resource{
+ ApiVersion: "certificates.k8s.io/v1beta1",
+ Kind: "CertificateSigningRequest",
+ MetaData: MetaDatas{
+ Name: strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "-user-csr"}, ""),
+ Namespace: logicalcloud.Specification.NameSpace,
+ },
+ Specification: Specs{
+ Request: base64.StdEncoding.EncodeToString(csr),
+ Usages: []string{"digital signature", "key encipherment"},
+ },
+ }
+
+ csrData, err := yaml.Marshal(&csrObj)
+ if err != nil {
+ return "", err
+ }
+
+ return string(csrData), nil
+
+}
+
+// TODO:
+// Install istio
+// Store user key for user creation
+// Code to run kubectl commands for user
+// kubectl certificate approve lc1-user-cert
+// kubectl get csr lc1-user-cert -o jsonpath='{.status.certificate}' | base64 --decode > user.crt
+// kubectl config set-credentials user --client-certificate=<user.crt> --client-key=<user.key>
+// kubectl config set-context user-context --cluster=cluster-name --namespace=lc1 --user=user
+
+func CreateEtcdContext(logicalcloud LogicalCloud, clusterList []Cluster,
+ quotaList []Quota) error {
+
+ APP := "logical-cloud"
+ logicalCloudName := logicalcloud.MetaData.LogicalCloudName
+
+ //Resource Names
+ namespaceName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+namespace"}, "")
+ roleName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+role"}, "")
+ roleBindingName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+roleBinding"}, "")
+ quotaName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+quota"}, "")
+ csrName := strings.Join([]string{logicalcloud.MetaData.LogicalCloudName, "+CertificateSigningRequest"}, "")
+
+ // Get resources to be added
+ namespace, err := createNamespace(logicalcloud)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error Creating Namespace YAML for logical cloud")
+ }
+
+ role, err := createRole(logicalcloud)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error Creating Role YAML for logical cloud")
+ }
+
+ roleBinding, err := createRoleBinding(logicalcloud)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error Creating RoleBinding YAML for logical cloud")
+ }
+
+ quota, err := createQuota(quotaList, logicalcloud.Specification.NameSpace)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error Creating Quota YAML for logical cloud")
+ }
+
+ csr, err := createUserCSR(logicalcloud)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error Creating User CSR for logical cloud")
+ }
+
+ context := appcontext.AppContext{}
+ ctxVal, err := context.InitAppContext()
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error creating AppContext")
+ }
+
+ fmt.Printf("%v\n", ctxVal)
+
+ handle, err := context.CreateCompositeApp()
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error creating AppContext CompositeApp")
+ }
+
+ appHandle, err := context.AddApp(handle, APP)
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext CompositeApp create failure", log.Fields{
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding App to AppContext")
+ }
+
+ // Iterate through cluster list and add all the clusters
+ for _, cluster := range clusterList {
+ clusterName := strings.Join([]string{cluster.Specification.ClusterProvider, "+", cluster.Specification.ClusterName}, "")
+ clusterHandle, err := context.AddCluster(appHandle, clusterName)
+
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add cluster failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding Cluster to AppContext")
+ }
+
+ // Add namespace resource to each cluster
+ _, err = context.AddResource(clusterHandle, namespaceName, namespace)
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add namespace resource failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding Namespace Resource to AppContext")
+ }
+
+ // Add csr resource to each cluster
+ _, err = context.AddResource(clusterHandle, csrName, csr)
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add CSR resource failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding CSR Resource to AppContext")
+ }
+
+ // Add Role resource to each cluster
+ _, err = context.AddResource(clusterHandle, roleName, role)
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add role resource failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding role Resource to AppContext")
+ }
+
+ // Add RoleBinding resource to each cluster
+ _, err = context.AddResource(clusterHandle, roleBindingName, roleBinding)
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add roleBinding resource failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding roleBinding Resource to AppContext")
+ }
+
+ // Add quota resource to each cluster
+ _, err = context.AddResource(clusterHandle, quotaName, quota)
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add quota resource failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding quota Resource to AppContext")
+ }
+
+ // Add Resource Order and Resource Dependency
+ resOrder, err := json.Marshal(map[string][]string{"resorder": []string{namespaceName, quotaName, csrName, roleName, roleBindingName}})
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error creating resource order JSON")
+ }
+
+ resDependency, err := json.Marshal(map[string]map[string]string{"resdependency": map[string]string{namespaceName: "go",
+ quotaName: strings.Join([]string{"wait on ", namespaceName}, ""), csrName: strings.Join([]string{"wait on ", quotaName}, ""),
+ roleName: strings.Join([]string{"wait on ", csrName}, ""), roleBindingName: strings.Join([]string{"wait on ", roleName}, "")}})
+
+ if err != nil {
+ return pkgerrors.Wrap(err, "Error creating resource dependency JSON")
+ }
+
+ _, err = context.AddInstruction(clusterHandle, "resource", "order", string(resOrder))
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add instruction failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding instruction order to AppContext")
+ }
+
+ _, err = context.AddInstruction(clusterHandle, "resource", "dependency", string(resDependency))
+ if err != nil {
+ cleanuperr := context.DeleteCompositeApp()
+ if cleanuperr != nil {
+ log.Warn("Error cleaning AppContext after add instruction failure", log.Fields{
+ "cluster-provider": cluster.Specification.ClusterProvider,
+ "cluster": cluster.Specification.ClusterName,
+ "logical-cloud": logicalCloudName,
+ })
+ }
+ return pkgerrors.Wrap(err, "Error adding instruction dependency to AppContext")
+ }
+
+ }
+
+ return nil
+
+}
diff --git a/src/dcm/pkg/module/logicalcloud.go b/src/dcm/pkg/module/logicalcloud.go
index 9fb1b6fb..51ee387d 100644
--- a/src/dcm/pkg/module/logicalcloud.go
+++ b/src/dcm/pkg/module/logicalcloud.go
@@ -12,280 +12,277 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-*/
+ */
package module
import (
- "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db"
- "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module"
+ "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db"
+ "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module"
- pkgerrors "github.com/pkg/errors"
+ pkgerrors "github.com/pkg/errors"
)
// LogicalCloud contains the parameters needed for a Logical Cloud
type LogicalCloud struct {
- MetaData MetaDataList `json:"metadata"`
- Specification Spec `json:"spec"`
+ MetaData MetaDataList `json:"metadata"`
+ Specification Spec `json:"spec"`
}
-
// MetaData contains the parameters needed for metadata
type MetaDataList struct {
- LogicalCloudName string `json:"name"`
- Description string `json:"description"`
- UserData1 string `json:"userData1"`
- UserData2 string `json:"userData2"`
+ LogicalCloudName string `json:"name"`
+ Description string `json:"description"`
+ UserData1 string `json:"userData1"`
+ UserData2 string `json:"userData2"`
}
// Spec contains the parameters needed for spec
type Spec struct {
- NameSpace string `json:"namespace"`
- User UserData `json:"user"`
-
+ NameSpace string `json:"namespace"`
+ User UserData `json:"user"`
}
// UserData contains the parameters needed for user
type UserData struct {
- UserName string `json:"user-name"`
- Type string `json:"type"`
- UserPermissions []UserPerm `json:"user-permissions"`
+ UserName string `json:"user-name"`
+ Type string `json:"type"`
+ UserPermissions []UserPerm `json:"user-permissions"`
}
// UserPerm contains the parameters needed for user permissions
type UserPerm struct {
- PermName string `json:"permission-name"`
- APIGroups []string `json:"apiGroups"`
- Resources []string `json:"resources"`
- Verbs []string `json:"verbs"`
+ PermName string `json:"permission-name"`
+ APIGroups []string `json:"apiGroups"`
+ Resources []string `json:"resources"`
+ Verbs []string `json:"verbs"`
}
// LogicalCloudKey is the key structure that is used in the database
type LogicalCloudKey struct {
- Project string `json:"project"`
- LogicalCloudName string `json:"logical-cloud-name"`
+ Project string `json:"project"`
+ LogicalCloudName string `json:"logical-cloud-name"`
}
// LogicalCloudManager is an interface that exposes the connection
// functionality
type LogicalCloudManager interface {
- Create(project string, c LogicalCloud) (LogicalCloud, error)
- Get(project, name string) (LogicalCloud, error)
- GetAll(project string) ([]LogicalCloud, error)
- Delete(project, name string) error
- Update(project, name string, c LogicalCloud) (LogicalCloud, error)
-
+ Create(project string, c LogicalCloud) (LogicalCloud, error)
+ Get(project, name string) (LogicalCloud, error)
+ GetAll(project string) ([]LogicalCloud, error)
+ Delete(project, name string) error
+ Update(project, name string, c LogicalCloud) (LogicalCloud, error)
}
// Interface facilitates unit testing by mocking functions
type Utility interface {
- DBInsert(storeName string, key db.Key, query interface{}, meta string, c interface{}) error
- DBFind(storeName string, key db.Key, meta string) ([][]byte, error)
- DBUnmarshal(value []byte, out interface{}) error
- DBRemove(storeName string, key db.Key) error
- CheckProject(project string) error
- CheckLogicalCloud(project, logicalCloud string) error
+ DBInsert(storeName string, key db.Key, query interface{}, meta string, c interface{}) error
+ DBFind(storeName string, key db.Key, meta string) ([][]byte, error)
+ DBUnmarshal(value []byte, out interface{}) error
+ DBRemove(storeName string, key db.Key) error
+ CheckProject(project string) error
+ CheckLogicalCloud(project, logicalCloud string) error
}
// LogicalCloudClient implements the LogicalCloudManager
// It will also be used to maintain some localized state
type LogicalCloudClient struct {
- storeName string
- tagMeta string
- util Utility
+ storeName string
+ tagMeta string
+ util Utility
}
// Added for unit testing; implements Utility interface
-type DBService struct {}
+type DBService struct{}
// LogicalCloudClient returns an instance of the LogicalCloudClient
// which implements the LogicalCloudManager
func NewLogicalCloudClient() *LogicalCloudClient {
- service := DBService{}
- return &LogicalCloudClient{
- storeName: "orchestrator",
- tagMeta: "logicalcloud",
- util: service,
- }
+ service := DBService{}
+ return &LogicalCloudClient{
+ storeName: "orchestrator",
+ tagMeta: "logicalcloud",
+ util: service,
+ }
}
// Create entry for the logical cloud resource in the database
func (v *LogicalCloudClient) Create(project string, c LogicalCloud) (LogicalCloud, error) {
- //Construct key consisting of name
- key := LogicalCloudKey{
- Project: project,
- LogicalCloudName: c.MetaData.LogicalCloudName,
- }
-
- //Check if project exists
- err := v.util.CheckProject(project)
- if err != nil {
- return LogicalCloud{}, pkgerrors.New("Unable to find the project")
- }
-
- //Check if this Logical Cloud already exists
- _, err = v.Get(project, c.MetaData.LogicalCloudName)
- if err == nil {
- return LogicalCloud{}, pkgerrors.New("Logical Cloud already exists")
- }
-
- err = v.util.DBInsert(v.storeName, key, nil, v.tagMeta, c)
- if err != nil {
- return LogicalCloud{}, pkgerrors.Wrap(err, "Creating DB Entry")
- }
-
- return c, nil
+ //Construct key consisting of name
+ key := LogicalCloudKey{
+ Project: project,
+ LogicalCloudName: c.MetaData.LogicalCloudName,
+ }
+
+ //Check if project exists
+ err := v.util.CheckProject(project)
+ if err != nil {
+ return LogicalCloud{}, pkgerrors.New("Unable to find the project")
+ }
+
+ //Check if this Logical Cloud already exists
+ _, err = v.Get(project, c.MetaData.LogicalCloudName)
+ if err == nil {
+ return LogicalCloud{}, pkgerrors.New("Logical Cloud already exists")
+ }
+
+ err = v.util.DBInsert(v.storeName, key, nil, v.tagMeta, c)
+ if err != nil {
+ return LogicalCloud{}, pkgerrors.Wrap(err, "Creating DB Entry")
+ }
+
+ return c, nil
}
// Get returns Logical Cloud corresponding to logical cloud name
func (v *LogicalCloudClient) Get(project, logicalCloudName string) (LogicalCloud, error) {
- //Construct the composite key to select the entry
- key := LogicalCloudKey{
- Project: project,
- LogicalCloudName: logicalCloudName,
- }
- value, err := v.util.DBFind(v.storeName, key, v.tagMeta)
- if err != nil {
- return LogicalCloud{}, pkgerrors.Wrap(err, "Get Logical Cloud")
- }
-
- //value is a byte array
- if value != nil {
- lc := LogicalCloud{}
- err = v.util.DBUnmarshal(value[0], &lc)
- if err != nil {
- return LogicalCloud{}, pkgerrors.Wrap(err, "Unmarshaling value")
- }
- return lc, nil
- }
-
- return LogicalCloud{}, pkgerrors.New("Error getting Logical Cloud")
+ //Construct the composite key to select the entry
+ key := LogicalCloudKey{
+ Project: project,
+ LogicalCloudName: logicalCloudName,
+ }
+ value, err := v.util.DBFind(v.storeName, key, v.tagMeta)
+ if err != nil {
+ return LogicalCloud{}, pkgerrors.Wrap(err, "Get Logical Cloud")
+ }
+
+ //value is a byte array
+ if value != nil {
+ lc := LogicalCloud{}
+ err = v.util.DBUnmarshal(value[0], &lc)
+ if err != nil {
+ return LogicalCloud{}, pkgerrors.Wrap(err, "Unmarshaling value")
+ }
+ return lc, nil
+ }
+
+ return LogicalCloud{}, pkgerrors.New("Error getting Logical Cloud")
}
// GetAll returns Logical Clouds in the project
func (v *LogicalCloudClient) GetAll(project string) ([]LogicalCloud, error) {
- //Construct the composite key to select the entry
- key := LogicalCloudKey{
- Project: project,
- LogicalCloudName: "",
- }
-
- var resp []LogicalCloud
- values, err := v.util.DBFind(v.storeName, key, v.tagMeta)
- if err != nil {
- return []LogicalCloud{}, pkgerrors.Wrap(err, "Get Logical Clouds")
- }
-
- for _, value := range values {
- lc := LogicalCloud{}
- err = v.util.DBUnmarshal(value, &lc)
- if err != nil {
- return []LogicalCloud{}, pkgerrors.Wrap(err, "Unmarshaling values")
- }
- resp = append(resp, lc)
- }
-
- return resp, nil
+ //Construct the composite key to select the entry
+ key := LogicalCloudKey{
+ Project: project,
+ LogicalCloudName: "",
+ }
+
+ var resp []LogicalCloud
+ values, err := v.util.DBFind(v.storeName, key, v.tagMeta)
+ if err != nil {
+ return []LogicalCloud{}, pkgerrors.Wrap(err, "Get Logical Clouds")
+ }
+
+ for _, value := range values {
+ lc := LogicalCloud{}
+ err = v.util.DBUnmarshal(value, &lc)
+ if err != nil {
+ return []LogicalCloud{}, pkgerrors.Wrap(err, "Unmarshaling values")
+ }
+ resp = append(resp, lc)
+ }
+
+ return resp, nil
}
// Delete the Logical Cloud entry from database
func (v *LogicalCloudClient) Delete(project, logicalCloudName string) error {
- //Construct the composite key to select the entry
- key := LogicalCloudKey{
- Project: project,
- LogicalCloudName: logicalCloudName,
- }
- err := v.util.DBRemove(v.storeName, key)
- if err != nil {
- return pkgerrors.Wrap(err, "Delete Logical Cloud")
- }
-
- return nil
+ //Construct the composite key to select the entry
+ key := LogicalCloudKey{
+ Project: project,
+ LogicalCloudName: logicalCloudName,
+ }
+ err := v.util.DBRemove(v.storeName, key)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Delete Logical Cloud")
+ }
+
+ return nil
}
// Update an entry for the Logical Cloud in the database
func (v *LogicalCloudClient) Update(project, logicalCloudName string, c LogicalCloud) (LogicalCloud, error) {
- key := LogicalCloudKey{
- Project: project,
- LogicalCloudName: logicalCloudName,
- }
- // Check for mismatch, logicalCloudName and payload logical cloud name
- if c.MetaData.LogicalCloudName != logicalCloudName {
- return LogicalCloud{}, pkgerrors.New("Update Error - Logical Cloud name mismatch")
- }
- //Check if this Logical Cloud exists
- _, err := v.Get(project, logicalCloudName)
- if err != nil {
- return LogicalCloud{}, pkgerrors.New("Update Error - Logical Cloud doesn't exist")
- }
- err = v.util.DBInsert(v.storeName, key, nil, v.tagMeta, c)
- if err != nil {
- return LogicalCloud{}, pkgerrors.Wrap(err, "Updating DB Entry")
- }
- return c, nil
+ key := LogicalCloudKey{
+ Project: project,
+ LogicalCloudName: logicalCloudName,
+ }
+ // Check for mismatch, logicalCloudName and payload logical cloud name
+ if c.MetaData.LogicalCloudName != logicalCloudName {
+ return LogicalCloud{}, pkgerrors.New("Update Error - Logical Cloud name mismatch")
+ }
+ //Check if this Logical Cloud exists
+ _, err := v.Get(project, logicalCloudName)
+ if err != nil {
+ return LogicalCloud{}, pkgerrors.New("Update Error - Logical Cloud doesn't exist")
+ }
+ err = v.util.DBInsert(v.storeName, key, nil, v.tagMeta, c)
+ if err != nil {
+ return LogicalCloud{}, pkgerrors.Wrap(err, "Updating DB Entry")
+ }
+ return c, nil
}
func (d DBService) DBInsert(storeName string, key db.Key, query interface{}, meta string, c interface{}) error {
- err := db.DBconn.Insert(storeName, key, nil, meta, c)
- if err != nil {
- return pkgerrors.Wrap(err, "Creating DB Entry")
- }
+ err := db.DBconn.Insert(storeName, key, nil, meta, c)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Creating DB Entry")
+ }
- return nil
+ return nil
}
func (d DBService) DBFind(storeName string, key db.Key, meta string) ([][]byte, error) {
- value, err := db.DBconn.Find(storeName, key, meta)
- if err != nil {
- return [][]byte{}, pkgerrors.Wrap(err, "Get Resource")
- }
+ value, err := db.DBconn.Find(storeName, key, meta)
+ if err != nil {
+ return [][]byte{}, pkgerrors.Wrap(err, "Get Resource")
+ }
- return value, nil
+ return value, nil
}
func (d DBService) DBUnmarshal(value []byte, out interface{}) error {
- err := db.DBconn.Unmarshal(value, out)
- if err != nil {
- return pkgerrors.Wrap(err, "Unmarshaling Value")
- }
+ err := db.DBconn.Unmarshal(value, out)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Unmarshaling Value")
+ }
- return nil
+ return nil
}
func (d DBService) DBRemove(storeName string, key db.Key) error {
- err := db.DBconn.Remove(storeName, key)
- if err != nil {
- return pkgerrors.Wrap(err, "Delete Resource")
- }
+ err := db.DBconn.Remove(storeName, key)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Delete Resource")
+ }
- return nil
+ return nil
}
func (d DBService) CheckProject(project string) error {
- // Check if project exists
- _, err := module.NewProjectClient().GetProject(project)
- if err != nil {
- return pkgerrors.New("Unable to find the project")
- }
+ // Check if project exists
+ _, err := module.NewProjectClient().GetProject(project)
+ if err != nil {
+ return pkgerrors.New("Unable to find the project")
+ }
- return nil
+ return nil
}
func (d DBService) CheckLogicalCloud(project, logicalCloud string) error {
- // Check if logical cloud exists
- _, err := NewLogicalCloudClient().Get(project, logicalCloud)
- if err != nil {
- return pkgerrors.New("Unable to find the logical cloud")
- }
+ // Check if logical cloud exists
+ _, err := NewLogicalCloudClient().Get(project, logicalCloud)
+ if err != nil {
+ return pkgerrors.New("Unable to find the logical cloud")
+ }
- return nil
+ return nil
}