From 450043e846fefd85defad55b4edede7da2061310 Mon Sep 17 00:00:00 2001 From: Richard Lang <38636870+Rich-Lang@users.noreply.github.com> Date: Tue, 4 Dec 2018 11:39:14 -0600 Subject: [PATCH 1/2] Fixing ip_address parameter "ip_address": * is invalid JSON. Updating to include double quotes --- IIS-Administration/api/sites.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/IIS-Administration/api/sites.md b/IIS-Administration/api/sites.md index 3eae82a..c876281 100644 --- a/IIS-Administration/api/sites.md +++ b/IIS-Administration/api/sites.md @@ -137,7 +137,7 @@ Creating a web site that listens on port 8081. **POST** _/api/webserver/websites { "protocol": "HTTP", "port": "8081", - "ip_address": * + "ip_address": "*" } ] } @@ -156,7 +156,7 @@ Creating a web site that listens for HTTPS requests on port 8082. **POST** _/ap { "protocol": "HTTPS", "port": "8082", - "ip_address": *, + "ip_address": "*", "certificate": { "id": {certificate_id} } @@ -178,7 +178,7 @@ Creating a web site for a specific application pool. **POST** _/api/webserver/we { "protocol": "HTTP", "port": "8081", - "ip_address": * + "ip_address": "*" } ], "application_pool": { @@ -202,12 +202,12 @@ Adding a binding to a web site. **PATCH** _/api/webserver/websites/{id}_ { "protocol": "HTTP", "port": "80", - "ip_address": * + "ip_address": "*" }, { "protocol": "HTTP", "port": "8080", - "ip_address": * + "ip_address": "*" } ] } From e7c06990a07c3d918e4a2a52bfdc8c4456e1df8f Mon Sep 17 00:00:00 2001 From: Richard Lang <38636870+Rich-Lang@users.noreply.github.com> Date: Tue, 4 Dec 2018 11:41:26 -0600 Subject: [PATCH 2/2] Updating Protocol parameter Currently Administration API is case sensitive and as result samples showing "protocol": "HTTP" are invalid --- IIS-Administration/api/sites.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/IIS-Administration/api/sites.md b/IIS-Administration/api/sites.md index c876281..2a967ba 100644 --- a/IIS-Administration/api/sites.md +++ b/IIS-Administration/api/sites.md @@ -135,7 +135,7 @@ Creating a web site that listens on port 8081. **POST** _/api/webserver/websites "physical_path": "C:\\inetpub\\wwwroot\\DemonstrationSite", "bindings": [ { - "protocol": "HTTP", + "protocol": "http", "port": "8081", "ip_address": "*" } @@ -154,7 +154,7 @@ Creating a web site that listens for HTTPS requests on port 8082. **POST** _/ap "physical_path": "C:\\inetpub\\wwwroot\\DemonstrationSite", "bindings": [ { - "protocol": "HTTPS", + "protocol": "https", "port": "8082", "ip_address": "*", "certificate": { @@ -176,7 +176,7 @@ Creating a web site for a specific application pool. **POST** _/api/webserver/we "physical_path": "C:\\inetpub\\wwwroot\\DemonstrationSite", "bindings": [ { - "protocol": "HTTP", + "protocol": "http", "port": "8081", "ip_address": "*" } @@ -200,12 +200,12 @@ Adding a binding to a web site. **PATCH** _/api/webserver/websites/{id}_ { "bindings": [ { - "protocol": "HTTP", + "protocol": "http", "port": "80", "ip_address": "*" }, { - "protocol": "HTTP", + "protocol": "http", "port": "8080", "ip_address": "*" }