Skip to content

Commit 181c7b4

Browse files
Postman collection updated
1 parent 8b3826b commit 181c7b4

File tree

1 file changed

+0
-368
lines changed

1 file changed

+0
-368
lines changed

contrib/postman/NGINX Declarative API.postman_collection.json

Lines changed: 0 additions & 368 deletions
Original file line numberDiff line numberDiff line change
@@ -8389,374 +8389,6 @@
83898389
}
83908390
},
83918391
"response": []
8392-
},
8393-
{
8394-
"name": "Update HTTP upstream Copy",
8395-
"event": [
8396-
{
8397-
"listen": "test",
8398-
"script": {
8399-
"exec": [
8400-
"var respData = JSON.parse(responseBody);",
8401-
"",
8402-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8403-
"",
8404-
"pm.collectionVariables.set('configUid',respData.configUid);"
8405-
],
8406-
"type": "text/javascript",
8407-
"packages": {}
8408-
}
8409-
}
8410-
],
8411-
"request": {
8412-
"method": "PATCH",
8413-
"header": [],
8414-
"body": {
8415-
"mode": "raw",
8416-
"raw": "{\n \"output\": {\n \"type\": \"nginxone\",\n \"nginxone\": {\n \"url\": \"{{nginxone_url}}\",\n \"namespace\": \"{{nginxone_namespace}}\",\n \"token\": \"{{nginxone_token}}\",\n \"cluster\": \"{{nginxone_clustername}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"http\": {\n \"upstreams\": [\n {\n \"name\": \"test_upstream\",\n \"origin\": [\n {\n \"server\": \"10.0.0.1:80\"\n },\n {\n \"server\": \"10.0.0.2:80\"\n },\n {\n \"server\": \"10.0.0.3:80\"\n },\n {\n \"server\": \"10.0.0.4:80\"\n },\n {\n \"server\": \"10.0.0.5:80\"\n }\n ]\n }\n ]\n }\n }\n}",
8417-
"options": {
8418-
"raw": {
8419-
"language": "json"
8420-
}
8421-
}
8422-
},
8423-
"url": {
8424-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8425-
"protocol": "http",
8426-
"host": [
8427-
"{{ncg_host}}"
8428-
],
8429-
"port": "{{ncg_port}}",
8430-
"path": [
8431-
"{{ngc_api_version}}",
8432-
"config",
8433-
"{{configUid}}"
8434-
]
8435-
}
8436-
},
8437-
"response": []
8438-
},
8439-
{
8440-
"name": "Modify and add HTTP upstream Copy",
8441-
"event": [
8442-
{
8443-
"listen": "test",
8444-
"script": {
8445-
"exec": [
8446-
"var respData = JSON.parse(responseBody);",
8447-
"",
8448-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8449-
"",
8450-
"pm.collectionVariables.set('configUid',respData.configUid);"
8451-
],
8452-
"type": "text/javascript",
8453-
"packages": {}
8454-
}
8455-
}
8456-
],
8457-
"request": {
8458-
"method": "PATCH",
8459-
"header": [],
8460-
"body": {
8461-
"mode": "raw",
8462-
"raw": "{\n \"output\": {\n \"type\": \"nginxone\",\n \"nginxone\": {\n \"url\": \"{{nginxone_url}}\",\n \"namespace\": \"{{nginxone_namespace}}\",\n \"token\": \"{{nginxone_token}}\",\n \"cluster\": \"{{nginxone_clustername}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"http\": {\n \"upstreams\": [\n {\n \"name\": \"test_upstream\",\n \"origin\": [\n {\n \"server\": \"10.0.0.1:80\"\n },\n {\n \"server\": \"10.0.0.2:80\"\n }\n ]\n },\n {\n \"name\": \"test_upstream_added\",\n \"origin\": [\n {\n \"server\": \"192.168.1.1:80\"\n },\n {\n \"server\": \"192.168.1.2:80\"\n }\n ]\n }\n ]\n }\n }\n}",
8463-
"options": {
8464-
"raw": {
8465-
"language": "json"
8466-
}
8467-
}
8468-
},
8469-
"url": {
8470-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8471-
"protocol": "http",
8472-
"host": [
8473-
"{{ncg_host}}"
8474-
],
8475-
"port": "{{ncg_port}}",
8476-
"path": [
8477-
"{{ngc_api_version}}",
8478-
"config",
8479-
"{{configUid}}"
8480-
]
8481-
}
8482-
},
8483-
"response": []
8484-
},
8485-
{
8486-
"name": "Modify and add HTTP server and upstream Copy",
8487-
"event": [
8488-
{
8489-
"listen": "test",
8490-
"script": {
8491-
"exec": [
8492-
"var respData = JSON.parse(responseBody);",
8493-
"",
8494-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8495-
"",
8496-
"pm.collectionVariables.set('configUid',respData.configUid);"
8497-
],
8498-
"type": "text/javascript",
8499-
"packages": {}
8500-
}
8501-
}
8502-
],
8503-
"request": {
8504-
"method": "PATCH",
8505-
"header": [],
8506-
"body": {
8507-
"mode": "raw",
8508-
"raw": "{\n \"output\": {\n \"type\": \"nms\",\n \"nms\": {\n \"url\": \"{{nim_host}}\",\n \"username\": \"{{nim_username}}\",\n \"password\": \"{{nim_password}}\",\n \"instancegroup\": \"{{nim_instancegroup}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"http\": {\n \"servers\": [\n {\n \"name\": \"HTTP test application\",\n \"names\": [\n \"patched_server_v2.nginx.lab\"\n ],\n \"listen\": {\n \"address\": \"127.0.0.1:8080\"\n },\n \"log\": {\n \"access\": \"/var/log/nginx/access_v2_log\",\n \"error\": \"/var/log/nginx/error_v2_log\"\n },\n \"locations\": [\n {\n \"uri\": \"/\",\n \"urimatch\": \"prefix\",\n \"upstream\": \"http://test_upstream_added\"\n }\n ]\n }\n ],\n \"upstreams\": [\n {\n \"name\": \"test_upstream_added\",\n \"origin\": [\n {\n \"server\": \"192.168.1.100:80\",\n \"weight\": 5,\n \"max_fails\": 2,\n \"fail_timeout\": \"30s\",\n \"max_conns\": 3,\n \"slow_start\": \"30s\"\n },\n {\n \"server\": \"192.168.1.101:80\"\n },\n {\n \"server\": \"192.168.1.102:80\"\n },\n {\n \"server\": \"192.168.1.103:80\"\n }\n ]\n }\n ]\n }\n }\n}",
8509-
"options": {
8510-
"raw": {
8511-
"language": "json"
8512-
}
8513-
}
8514-
},
8515-
"url": {
8516-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8517-
"protocol": "http",
8518-
"host": [
8519-
"{{ncg_host}}"
8520-
],
8521-
"port": "{{ncg_port}}",
8522-
"path": [
8523-
"{{ngc_api_version}}",
8524-
"config",
8525-
"{{configUid}}"
8526-
]
8527-
}
8528-
},
8529-
"response": []
8530-
},
8531-
{
8532-
"name": "Remove HTTP server and upstream Copy",
8533-
"event": [
8534-
{
8535-
"listen": "test",
8536-
"script": {
8537-
"exec": [
8538-
"var respData = JSON.parse(responseBody);",
8539-
"",
8540-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8541-
"",
8542-
"pm.collectionVariables.set('configUid',respData.configUid);"
8543-
],
8544-
"type": "text/javascript",
8545-
"packages": {}
8546-
}
8547-
}
8548-
],
8549-
"request": {
8550-
"method": "PATCH",
8551-
"header": [],
8552-
"body": {
8553-
"mode": "raw",
8554-
"raw": "{\n \"output\": {\n \"type\": \"nms\",\n \"nms\": {\n \"url\": \"{{nim_host}}\",\n \"username\": \"{{nim_username}}\",\n \"password\": \"{{nim_password}}\",\n \"instancegroup\": \"{{nim_instancegroup}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"http\": {\n \"servers\": [\n {\n \"name\": \"HTTP test application\"\n }\n ],\n \"upstreams\": [\n {\n \"name\": \"test_upstream_added\"\n }\n ]\n }\n }\n}",
8555-
"options": {
8556-
"raw": {
8557-
"language": "json"
8558-
}
8559-
}
8560-
},
8561-
"url": {
8562-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8563-
"protocol": "http",
8564-
"host": [
8565-
"{{ncg_host}}"
8566-
],
8567-
"port": "{{ncg_port}}",
8568-
"path": [
8569-
"{{ngc_api_version}}",
8570-
"config",
8571-
"{{configUid}}"
8572-
]
8573-
}
8574-
},
8575-
"response": []
8576-
},
8577-
{
8578-
"name": "Modify Stream server and upstream Copy",
8579-
"event": [
8580-
{
8581-
"listen": "test",
8582-
"script": {
8583-
"exec": [
8584-
"var respData = JSON.parse(responseBody);",
8585-
"",
8586-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8587-
"",
8588-
"pm.collectionVariables.set('configUid',respData.configUid);"
8589-
],
8590-
"type": "text/javascript",
8591-
"packages": {}
8592-
}
8593-
}
8594-
],
8595-
"request": {
8596-
"method": "PATCH",
8597-
"header": [],
8598-
"body": {
8599-
"mode": "raw",
8600-
"raw": "{\n \"output\": {\n \"type\": \"nms\",\n \"nms\": {\n \"url\": \"{{nim_host}}\",\n \"username\": \"{{nim_username}}\",\n \"password\": \"{{nim_password}}\",\n \"instancegroup\": \"{{nim_instancegroup}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"layer4\": {\n \"servers\": [\n {\n \"name\": \"TCP_10053_service\",\n \"listen\": {\n \"address\": \"10053\",\n \"protocol\": \"tcp\"\n },\n \"upstream\": \"TCP_10053_upstream\"\n }\n ],\n \"upstreams\": [\n {\n \"name\": \"TCP_10053_upstream\",\n \"origin\": [\n {\n \"server\": \"10.0.0.1:53\"\n },\n {\n \"server\": \"10.0.0.2:53\"\n },\n {\n \"server\": \"10.0.0.3:53\"\n },\n {\n \"server\": \"10.0.0.4:53\"\n }\n ]\n }\n ]\n }\n }\n}",
8601-
"options": {
8602-
"raw": {
8603-
"language": "json"
8604-
}
8605-
}
8606-
},
8607-
"url": {
8608-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8609-
"protocol": "http",
8610-
"host": [
8611-
"{{ncg_host}}"
8612-
],
8613-
"port": "{{ncg_port}}",
8614-
"path": [
8615-
"{{ngc_api_version}}",
8616-
"config",
8617-
"{{configUid}}"
8618-
]
8619-
}
8620-
},
8621-
"response": []
8622-
},
8623-
{
8624-
"name": "Add stream server and upstream Copy",
8625-
"event": [
8626-
{
8627-
"listen": "test",
8628-
"script": {
8629-
"exec": [
8630-
"var respData = JSON.parse(responseBody);",
8631-
"",
8632-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8633-
"",
8634-
"pm.collectionVariables.set('configUid',respData.configUid);"
8635-
],
8636-
"type": "text/javascript",
8637-
"packages": {}
8638-
}
8639-
}
8640-
],
8641-
"request": {
8642-
"method": "PATCH",
8643-
"header": [],
8644-
"body": {
8645-
"mode": "raw",
8646-
"raw": "{\n \"output\": {\n \"type\": \"nms\",\n \"nms\": {\n \"url\": \"{{nim_host}}\",\n \"username\": \"{{nim_username}}\",\n \"password\": \"{{nim_password}}\",\n \"instancegroup\": \"{{nim_instancegroup}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"layer4\": {\n \"servers\": [\n {\n \"name\": \"TCP_15432_service\",\n \"listen\": {\n \"address\": \"15432\",\n \"protocol\": \"tcp\"\n },\n \"upstream\": \"TCP_15432_upstream\"\n }\n ],\n \"upstreams\": [\n {\n \"name\": \"TCP_15432_upstream\",\n \"origin\": [\n {\n \"server\": \"172.16.10.1:5432\"\n },\n {\n \"server\": \"172.16.10.1:5432\"\n }\n ]\n }\n ]\n }\n }\n}",
8647-
"options": {
8648-
"raw": {
8649-
"language": "json"
8650-
}
8651-
}
8652-
},
8653-
"url": {
8654-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8655-
"protocol": "http",
8656-
"host": [
8657-
"{{ncg_host}}"
8658-
],
8659-
"port": "{{ncg_port}}",
8660-
"path": [
8661-
"{{ngc_api_version}}",
8662-
"config",
8663-
"{{configUid}}"
8664-
]
8665-
}
8666-
},
8667-
"response": []
8668-
},
8669-
{
8670-
"name": "Remove stream server and upstream #1 Copy",
8671-
"event": [
8672-
{
8673-
"listen": "test",
8674-
"script": {
8675-
"exec": [
8676-
"var respData = JSON.parse(responseBody);",
8677-
"",
8678-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8679-
"",
8680-
"pm.collectionVariables.set('configUid',respData.configUid);"
8681-
],
8682-
"type": "text/javascript",
8683-
"packages": {}
8684-
}
8685-
}
8686-
],
8687-
"request": {
8688-
"method": "PATCH",
8689-
"header": [],
8690-
"body": {
8691-
"mode": "raw",
8692-
"raw": "{\n \"output\": {\n \"type\": \"nms\",\n \"nms\": {\n \"url\": \"{{nim_host}}\",\n \"username\": \"{{nim_username}}\",\n \"password\": \"{{nim_password}}\",\n \"instancegroup\": \"{{nim_instancegroup}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"layer4\": {\n \"servers\": [\n {\n \"name\": \"TCP_10053_service\"\n }\n ],\n \"upstreams\": [\n {\n \"name\": \"TCP_10053_upstream\"\n }\n ]\n }\n }\n}",
8693-
"options": {
8694-
"raw": {
8695-
"language": "json"
8696-
}
8697-
}
8698-
},
8699-
"url": {
8700-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8701-
"protocol": "http",
8702-
"host": [
8703-
"{{ncg_host}}"
8704-
],
8705-
"port": "{{ncg_port}}",
8706-
"path": [
8707-
"{{ngc_api_version}}",
8708-
"config",
8709-
"{{configUid}}"
8710-
]
8711-
}
8712-
},
8713-
"response": []
8714-
},
8715-
{
8716-
"name": "Remove stream server and upstream #2 Copy",
8717-
"event": [
8718-
{
8719-
"listen": "test",
8720-
"script": {
8721-
"exec": [
8722-
"var respData = JSON.parse(responseBody);",
8723-
"",
8724-
"tests[\"configUid is: \" +respData.configUid] = respData.configUid;",
8725-
"",
8726-
"pm.collectionVariables.set('configUid',respData.configUid);"
8727-
],
8728-
"type": "text/javascript",
8729-
"packages": {}
8730-
}
8731-
}
8732-
],
8733-
"request": {
8734-
"method": "PATCH",
8735-
"header": [],
8736-
"body": {
8737-
"mode": "raw",
8738-
"raw": "{\n \"output\": {\n \"type\": \"nms\",\n \"nms\": {\n \"url\": \"{{nim_host}}\",\n \"username\": \"{{nim_username}}\",\n \"password\": \"{{nim_password}}\",\n \"instancegroup\": \"{{nim_instancegroup}}\",\n \"synctime\": 0,\n \"modules\": []\n }\n },\n \"declaration\": {\n \"layer4\": {\n \"servers\": [\n {\n \"name\": \"TCP_15432_service\"\n }\n ],\n \"upstreams\": [\n {\n \"name\": \"TCP_15432_upstream\"\n }\n ]\n }\n }\n}",
8739-
"options": {
8740-
"raw": {
8741-
"language": "json"
8742-
}
8743-
}
8744-
},
8745-
"url": {
8746-
"raw": "http://{{ncg_host}}:{{ncg_port}}/{{ngc_api_version}}/config/{{configUid}}",
8747-
"protocol": "http",
8748-
"host": [
8749-
"{{ncg_host}}"
8750-
],
8751-
"port": "{{ncg_port}}",
8752-
"path": [
8753-
"{{ngc_api_version}}",
8754-
"config",
8755-
"{{configUid}}"
8756-
]
8757-
}
8758-
},
8759-
"response": []
87608392
}
87618393
]
87628394
},

0 commit comments

Comments
 (0)