温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

kong接口Postman 脚本怎么备份

发布时间:2021-06-22 14:19:41 来源:亿速云 阅读:533 作者:chen 栏目:大数据

这篇文章主要介绍“kong接口Postman 脚本怎么备份”,在日常操作中,相信很多人在kong接口Postman 脚本怎么备份问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”kong接口Postman 脚本怎么备份”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

kong接口Postman 脚本备份:

kong-1.2.2.postman_collection.json  

{
	"info": {
		"_postman_id": "06f6b9e6-cdaa-4192-b345-1c4fda816074",
		"name": "kong-1.2.2",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
	},
	"item": [
		{
			"name": "Routes",
			"item": [
				{
					"name": "【创建】路由",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"name\": \"baidu-route\",\r\n    \"protocols\": [\"http\", \"https\"],\r\n    \"methods\": [\"GET\", \"POST\"],\r\n    \"hosts\": [\"192.168.3.115\", \"foo.test\"],\r\n    \"paths\": [\"/foo\", \"/bar\"],\r\n    \"https_redirect_status_code\": 426,\r\n    \"regex_priority\": 0,\r\n    \"strip_path\": true,\r\n    \"preserve_host\": false,\r\n    \"tags\": [\"user-level\", \"low-priority\"],\r\n    \"service\": {\"id\":\"2e65817c-6d19-42cc-a3b4-ebe05d2d57c8\"}\r\n}\r\n"
						},
						"url": "192.168.3.115:8001/routes"
					},
					"response": []
				},
				{
					"name": "【更新】路由",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"name\": \"baidu-route\",\r\n    \"protocols\": [\"http\", \"https\"],\r\n    \"methods\": [\"GET\", \"POST\"],\r\n    \"hosts\": [\"192.168.3.115\", \"foo.test\"],\r\n    \"paths\": [\"/fooo\", \"/barr\"],\r\n    \"https_redirect_status_code\": 426,\r\n    \"regex_priority\": 0,\r\n    \"strip_path\": true,\r\n    \"preserve_host\": false,\r\n    \"tags\": [\"user-level\", \"low-priority\"],\r\n    \"service\": {\"id\":\"2e65817c-6d19-42cc-a3b4-ebe05d2d57c8\"}\r\n}\r\n"
						},
						"url": "192.168.3.115:8001/routes/fb1bf3c2-9939-4384-b031-4f5ff4d2e8e0"
					},
					"response": []
				},
				{
					"name": "【删除】路由",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": "192.168.3.115:8001/routes/fb1bf3c2-9939-4384-b031-4f5ff4d2e8e0"
					},
					"response": []
				},
				{
					"name": "【查询】路由列表",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/routes"
					},
					"response": []
				}
			]
		},
		{
			"name": "Services",
			"item": [
				{
					"name": "【创建】服务",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"name\": \"baidu-service\",\r\n    \"retries\": 5,\r\n    \"protocol\": \"http\",\r\n    \"host\": \"www.baidu.com\",\r\n    \"port\": 80,\r\n    \"path\": \"/baidu\",\r\n    \"connect_timeout\": 60000,\r\n    \"write_timeout\": 60000,\r\n    \"read_timeout\": 60000,\r\n    \"tags\": [\"test\", \"baidu\"]\r\n}"
						},
						"url": "192.168.3.115:8001/services"
					},
					"response": []
				},
				{
					"name": "【删除】指定服务",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": "192.168.3.115:8001/services/94e48130-b11f-4188-b4fb-249c926ec465"
					},
					"response": []
				},
				{
					"name": "【更新】服务",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n            \"host\": \"www.baidu.com\",\r\n            \"created_at\": 1567479996,\r\n            \"connect_timeout\": 50000,\r\n            \"protocol\": \"http\",\r\n            \"name\": \"baidu-service\",\r\n            \"read_timeout\": 60000,\r\n            \"port\": 80,\r\n            \"path\": \"/baidu\",\r\n            \"updated_at\": 1567479996,\r\n            \"retries\": 5,\r\n            \"write_timeout\": 60000,\r\n            \"tags\": [\r\n                \"test\",\r\n                \"baidu\"\r\n            ]\r\n        }"
						},
						"url": "192.168.3.115:8001/services/94e48130-b11f-4188-b4fb-249c926ec465"
					},
					"response": []
				},
				{
					"name": "【创建|更新】指定服务",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"retries\": 5,\r\n    \"protocol\": \"http\",\r\n    \"host\": \"www.baidu.com\",\r\n    \"port\": 80,\r\n    \"path\": \"/gateway\",\r\n    \"connect_timeout\": 60000,\r\n    \"write_timeout\": 60000,\r\n    \"read_timeout\": 60000,\r\n    \"tags\": [\"test\", \"gateway\"]\r\n}"
						},
						"url": "192.168.3.115:8001/services/baidu-service2"
					},
					"response": []
				},
				{
					"name": "【查询】服务列表",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/services"
					},
					"response": []
				},
				{
					"name": "【查询】指定名称服务信息",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/services/baidu-service"
					},
					"response": []
				}
			]
		},
		{
			"name": "Consumers",
			"item": [
				{
					"name": "【创建】客户",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"username\": \"my-username\",\r\n    \"custom_id\": \"my-custom-id\",\r\n    \"tags\": [\"user-level\", \"low-priority\"]\r\n}\r\n"
						},
						"url": "192.168.3.115:8001/consumers"
					},
					"response": []
				},
				{
					"name": "【删除】客户信息",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": "192.168.3.115:8001/consumers/f2c63133-698a-45a4-b9a5-83b0945d989c"
					},
					"response": []
				},
				{
					"name": "【更新】客户信息",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"username\": \"my-username11\",\r\n    \"custom_id\": \"my-custom-id\",\r\n    \"tags\": [\"user-level\", \"low-priority\"]\r\n}\r\n"
						},
						"url": "192.168.3.115:8001/consumers/f2c63133-698a-45a4-b9a5-83b0945d989c"
					},
					"response": []
				},
				{
					"name": "【查询】客户列表",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/consumers"
					},
					"response": []
				}
			]
		},
		{
			"name": "Plugins",
			"item": [
				{
					"name": "key-auth",
					"item": [
						{
							"name": "【创建】配置插件-keyauth",
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "Content-Type",
										"name": "Content-Type",
										"value": "application/json",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": " {\r\n            \"created_at\": 1567504129,\r\n            \"config\": {\r\n                \"key_names\": [\r\n                    \"apikey\"\r\n                ],\r\n                \"run_on_preflight\": true,\r\n                \"anonymous\": null,\r\n                \"hide_credentials\": false,\r\n                \"key_in_body\": false\r\n            },\r\n            \"name\": \"key-auth\",\r\n            \"protocols\": [\r\n                \"http\",\r\n                \"https\"\r\n            ],\r\n            \"enabled\": true,\r\n            \"run_on\": \"first\",\r\n            \"service\": {\r\n                \"id\": \"75b3f4c5-2683-4653-9c05-e4f081c6f83d\"\r\n            },\r\n            \"tags\": [\r\n                \"user-level\",\r\n                \"low-priority\"\r\n            ]\r\n        }"
								},
								"url": "192.168.3.115:8001/plugins"
							},
							"response": []
						},
						{
							"name": "【创建】Consumer对应Key",
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "Content-Type",
										"name": "Content-Type",
										"value": "application/json",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"consumer\": { \"id\": \"92c8fd1d-3cb1-4f80-9fee-0dc76ae638b7\" },\r\n    \"key\": \"62eb165c070a41d5c1b58d9d3d725ca1\"\r\n}"
								},
								"url": "192.168.3.115:8001/consumers/user01/key-auth"
							},
							"response": []
						},
						{
							"name": "【删除】Consumer对应Key",
							"request": {
								"method": "DELETE",
								"header": [],
								"url": "192.168.3.115:8001/consumers/user01/key-auth/dc3b8429-538c-4a70-9cb6-83c1a56b5ccd"
							},
							"response": []
						},
						{
							"name": "【查询】Consumer对应Key",
							"request": {
								"method": "GET",
								"header": [],
								"url": "192.168.3.115:8001/key-auths"
							},
							"response": []
						}
					],
					"_postman_isSubFolder": true
				},
				{
					"name": "【查询】已激活插件列表",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/plugins/enabled"
					},
					"response": []
				},
				{
					"name": "【查询】插件配置字段架构",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/plugins/schema/rate-limiting"
					},
					"response": []
				},
				{
					"name": "【创建】配置插件",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": " {\r\n            \"created_at\": 1567504129,\r\n            \"config\": {\r\n                \"minute\": null,\r\n                \"policy\": \"cluster\",\r\n                \"month\": null,\r\n                \"redis_timeout\": 2000,\r\n                \"limit_by\": \"ip\",\r\n                \"hide_client_headers\": false,\r\n                \"second\": 2,\r\n                \"day\": null,\r\n                \"redis_password\": null,\r\n                \"year\": null,\r\n                \"redis_database\": 0,\r\n                \"hour\": 500,\r\n                \"redis_port\": 6379,\r\n                \"redis_host\": null,\r\n                \"fault_tolerant\": true\r\n            },\r\n            \"name\": \"rate-limiting\",\r\n            \"protocols\": [\r\n                \"http\",\r\n                \"https\"\r\n            ],\r\n            \"enabled\": true,\r\n            \"run_on\": \"first\",\r\n            \"service\": {\r\n                \"id\": \"75b3f4c5-2683-4653-9c05-e4f081c6f83d\"\r\n            },\r\n            \"tags\": [\r\n                \"user-level\",\r\n                \"low-priority\"\r\n            ]\r\n        }"
						},
						"url": "192.168.3.115:8001/plugins"
					},
					"response": []
				},
				{
					"name": "【删除】配置插件",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": "192.168.3.115:8001/plugins/25035e05-4dbd-4038-8512-3dc1392cb907"
					},
					"response": []
				},
				{
					"name": "【更新】配置插件",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": " {\r\n            \"created_at\": 1567504129,\r\n            \"config\": {\r\n                \"minute\": null,\r\n                \"policy\": \"cluster\",\r\n                \"month\": null,\r\n                \"redis_timeout\": 2000,\r\n                \"limit_by\": \"ip\",\r\n                \"hide_client_headers\": false,\r\n                \"second\": 2,\r\n                \"day\": null,\r\n                \"redis_password\": null,\r\n                \"year\": null,\r\n                \"redis_database\": 0,\r\n                \"hour\": null,\r\n                \"redis_port\": 6379,\r\n                \"redis_host\": null,\r\n                \"fault_tolerant\": true\r\n            },\r\n            \"name\": \"rate-limiting\",\r\n            \"protocols\": [\r\n                \"http\",\r\n                \"https\"\r\n            ],\r\n            \"enabled\": true,\r\n            \"run_on\": \"first\",\r\n            \"route\": {\r\n                \"id\": \"5b92d3c2-34ad-482d-a51d-f59f01db8ee2\"\r\n            },\r\n            \"tags\": [\r\n                \"user-level\",\r\n                \"low-priority\"\r\n            ]\r\n        }"
						},
						"url": "192.168.3.115:8001/plugins/cf04e1c4-7886-42c4-af34-3f3bb5888dcb"
					},
					"response": []
				},
				{
					"name": "【查询】配置插件",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/plugins"
					},
					"response": []
				}
			]
		},
		{
			"name": "Certificate",
			"item": [
				{
					"name": "【创建】证书",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"cert\": \"-----BEGIN CERTIFICATE-----\r\nMIIDozCCAougAwIBAgIJALd53ieYjBj8MA0GCSqGSIb3DQEBCwUAMGgxCzAJBgNV\r\nBAYTAmxzMQswCQYDVQQIDAJmbjELMAkGA1UEBwwCY3MxCzAJBgNVBAoMAmhuMQsw\r\nCQYDVQQLDAJobDELMAkGA1UEAwwCaGwxGDAWBgkqhkiG9w0BCQEWCWpAMTExLmNv\r\nbTAeFw0xOTA5MDQwMDM2MDFaFw0yMDA5MDMwMDM2MDFaMGgxCzAJBgNVBAYTAmxz\r\nMQswCQYDVQQIDAJmbjELMAkGA1UEBwwCY3MxCzAJBgNVBAoMAmhuMQswCQYDVQQL\r\nDAJobDELMAkGA1UEAwwCaGwxGDAWBgkqhkiG9w0BCQEWCWpAMTExLmNvbTCCASIw\r\nDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALmwKflKCXWrMqGrAjQVrOibloxF\r\n8l6fKfppajU/PrMEWPLBBqouV6hjKDpaqsI6XKiyNBp6jDKEn3QUqm1rePMFVGhx\r\nrQNPE07PId7JrCx7j71b23Mx+ooiEKfaY6ceaEdJYMcEQybNJOQPj+s/34VyWRyV\r\nwWI80vY6O/euwVMQVJNnQK/vPbiXeZiqTbbmwnj2GRXwpE0lUwZpkwM/YFuv6sQt\r\nVt5VtOmaDAl4XhdcPqWa1jSg4S7pNbIPG6rByWVmdlSz4IXZzVMSwXJgcfsLbezT\r\n1IHIrwQ9WARzhyJn+tQjCRksffEmG/H544qpHAzJwdE9GDLfecj81xICrsUCAwEA\r\nAaNQME4wHQYDVR0OBBYEFPfc37t7yB4Lj9vsI0t3FuWdh2eUMB8GA1UdIwQYMBaA\r\nFPfc37t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fnvaJbwYSr/7kk5luIzb3RW3PCub+i1/PE8ghzguefHC00Qq\r\nYgaWpD/drn++9b/pPLY5OA==\r\n-----END PRIVATE KEY-----\",\r\n    \"tags\": [\"user-level\", \"low-priority\"]\r\n}\r\n"
						},
						"url": "192.168.3.115:8001/certificates"
					},
					"response": []
				},
				{
					"name": "【删除】证书",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": "192.168.3.115:8001/certificates/62a53ace-73a4-4a75-8d02-4cb67a6bfb8f"
					},
					"response": []
				},
				{
					"name": "【更新】证书",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"tags\": [\r\n        \"user\",\r\n        \"low\"\r\n    ]\r\n}"
						},
						"url": "192.168.3.115:8001/certificates/2524f16d-f099-41e9-b040-2b95e05aa775"
					},
					"response": []
				},
				{
					"name": "【查询】证书列表",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/certificates"
					},
					"response": []
				}
			]
		},
		{
			"name": "CA Certificate",
			"item": [
				{
					"name": "【查询】CA证书",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/ca_certificates"
					},
					"response": []
				}
			]
		},
		{
			"name": "SNI",
			"item": [
				{
					"name": "【查询】SNI列表",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/snis"
					},
					"response": []
				}
			]
		},
		{
			"name": "Upstream ",
			"item": [
				{
					"name": "【创建】Upstream",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"name\": \"my-upstream\",\r\n    \"hash_on\": \"none\",\r\n    \"hash_fallback\": \"none\",\r\n    \"hash_on_cookie_path\": \"/\",\r\n    \"slots\": 10000,\r\n    \"healthchecks\": {\r\n        \"active\": {\r\n            \"https_verify_certificate\": true,\r\n            \"unhealthy\": {\r\n                \"http_statuses\": [429, 404, 500, 501, 502, 503, 504, 505],\r\n                \"tcp_failures\": 0,\r\n                \"timeouts\": 0,\r\n                \"http_failures\": 0,\r\n                \"interval\": 0\r\n            },\r\n            \"http_path\": \"/\",\r\n            \"timeout\": 1,\r\n            \"healthy\": {\r\n                \"http_statuses\": [200, 302],\r\n                \"interval\": 0,\r\n                \"successes\": 0\r\n            },\r\n            \"concurrency\": 10,\r\n            \"type\": \"http\"\r\n        },\r\n        \"passive\": {\r\n            \"unhealthy\": {\r\n                \"http_failures\": 0,\r\n                \"http_statuses\": [429, 500, 503],\r\n                \"tcp_failures\": 0,\r\n                \"timeouts\": 0\r\n            },\r\n            \"type\": \"http\",\r\n            \"healthy\": {\r\n                \"successes\": 0,\r\n                \"http_statuses\": [200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308]\r\n            }\r\n        }\r\n    },\r\n    \"tags\": [\"user-level\", \"low-priority\"]\r\n}\r\n"
						},
						"url": "192.168.3.115:8001/upstreams"
					},
					"response": []
				},
				{
					"name": "【查询】Upstream",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/upstreams"
					},
					"response": []
				},
				{
					"name": "【删除】Upstream",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": "192.168.3.115:8001/upstreams/e16166b5-bcb1-4f28-8170-c6d57f9b452c"
					},
					"response": []
				},
				{
					"name": "【创建】Target",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"target\": \"www.baidu.com:80\",\r\n    \"weight\": 100,\r\n    \"tags\": [\"user-level\", \"low-priority\"]\r\n}"
						},
						"url": "192.168.3.115:8001/upstreams/e16166b5-bcb1-4f28-8170-c6d57f9b452c/targets"
					},
					"response": []
				},
				{
					"name": "【查询】Targets",
					"request": {
						"method": "GET",
						"header": [],
						"url": "192.168.3.115:8001/upstreams/demo-upstream/targets"
					},
					"response": []
				}
			]
		},
		{
			"name": "【查询】节点状态",
			"request": {
				"method": "GET",
				"header": [],
				"url": "192.168.3.115:8001/status"
			},
			"response": []
		},
		{
			"name": "【查询】节点信息",
			"request": {
				"method": "GET",
				"header": [],
				"url": "192.168.3.115:8001/"
			},
			"response": []
		},
		{
			"name": "【查询】标签列表",
			"request": {
				"method": "GET",
				"header": [],
				"url": "192.168.3.115:8001/tags"
			},
			"response": []
		}
	]
}

到此,关于“kong接口Postman 脚本怎么备份”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI