From 271379e365db7c2389b130c9428466d1e4220635 Mon Sep 17 00:00:00 2001 From: annikel <92825476+annikel@users.noreply.github.com> Date: Wed, 27 Apr 2022 09:23:11 -0700 Subject: [PATCH] Add Bring your own Backend operations (#18517) * add bring your own backend operations * add missing files * fix json formattin * validation fixes * fix * fix more validation * fix ids * fix model validation * fix descriptions * fix environmentName description * change to 202 * revert change to 202 --- .../stable/2022-03-01/StaticSites.json | 702 ++++++++++++++++++ .../examples/CreateOrUpdateStaticSite.json | 6 +- .../GetLinkedBackendForStaticSite.json | 25 + .../GetLinkedBackendForStaticSiteBuild.json | 26 + .../GetLinkedBackendsForStaticSite.json | 29 + .../GetLinkedBackendsForStaticSiteBuild.json | 31 + .../2022-03-01/examples/GetStaticSite.json | 10 +- .../examples/GetStaticSiteBuild.json | 10 +- .../examples/GetStaticSiteBuilds.json | 13 +- .../2022-03-01/examples/GetStaticSites.json | 3 +- .../examples/LinkBackendToStaticSite.json | 31 + .../LinkBackendToStaticSiteBuild.json | 32 + .../examples/UnlinkBackendFromStaticSite.json | 14 + .../UnlinkBackendFromStaticSiteBuild.json | 15 + .../ValidateLinkedBackendForStaticSite.json | 19 + ...lidateLinkedBackendForStaticSiteBuild.json | 20 + 16 files changed, 979 insertions(+), 7 deletions(-) create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSite.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSiteBuild.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSite.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSiteBuild.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSite.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSiteBuild.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSite.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSiteBuild.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSite.json create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSiteBuild.json diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json index 472ff8b0f4bc..0704506cc137 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json @@ -2685,6 +2685,607 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}/validate": { + "post": { + "tags": [ + "StaticSites" + ], + "summary": "Validates that a backend can be linked to a static site", + "operationId": "StaticSites_ValidateBackend", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the linked backend that should be retrieved", + "required": true, + "type": "string" + }, + { + "name": "staticSiteLinkedBackendEnvelope", + "in": "body", + "description": "A JSON representation of the linked backend request properties", + "required": true, + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No content" + }, + "202": { + "description": "Asynchronous operation in progress." + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Validate if backend can be linked to static site.": { + "$ref": "./examples/ValidateLinkedBackendForStaticSite.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}/validate": { + "post": { + "tags": [ + "StaticSites" + ], + "summary": "Validates that a backend can be linked to a static site build", + "operationId": "StaticSites_ValidateBackendForBuild", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The stage site identifier", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the linked backend that should be retrieved", + "required": true, + "type": "string" + }, + { + "name": "staticSiteLinkedBackendEnvelope", + "in": "body", + "description": "A JSON representation of the linked backend request properties", + "required": true, + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No content" + }, + "202": { + "description": "Asynchronous operation in progress." + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Validate if backend can be linked to static site build.": { + "$ref": "./examples/ValidateLinkedBackendForStaticSiteBuild.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends": { + "get": { + "tags": [ + "StaticSites" + ], + "summary": "Returns details of all backends linked to a static site", + "operationId": "StaticSites_GetLinkedBackends", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendsCollection" + } + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of the linked backends registered with a static site.": { + "$ref": "./examples/GetLinkedBackendsForStaticSite.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends": { + "get": { + "tags": [ + "StaticSites" + ], + "summary": "Returns details of all backends linked to a static site build", + "operationId": "StaticSites_GetLinkedBackendsForBuild", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The stage site identifier", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendsCollection" + } + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of the linked backends registered with a static site build.": { + "$ref": "./examples/GetLinkedBackendsForStaticSiteBuild.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}": { + "get": { + "tags": [ + "StaticSites" + ], + "summary": "Returns the details of a linked backend linked to a static site by name", + "operationId": "StaticSites_GetLinkedBackend", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the linked backend that should be retrieved", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of the linked backend registered with a static site by name.": { + "$ref": "./examples/GetLinkedBackendForStaticSite.json" + } + } + }, + "put": { + "tags": [ + "StaticSites" + ], + "summary": "Link backend to a static site", + "operationId": "StaticSites_LinkBackend", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the backend to link to the static site", + "required": true, + "type": "string" + }, + { + "name": "staticSiteLinkedBackendEnvelope", + "in": "body", + "description": "A JSON representation of the linked backend request properties", + "required": true, + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Link a backend to a static site": { + "$ref": "./examples/LinkBackendToStaticSite.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "StaticSites" + ], + "summary": "Unlink a backend from a static site", + "operationId": "StaticSites_UnlinkBackend", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the backend linked to the static site", + "required": true, + "type": "string" + }, + { + "name": "isCleaningAuthConfig", + "in": "query", + "description": "Decides if Easy Auth configuration will be removed from backend configuration", + "type": "boolean" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No content" + }, + "200": { + "description": "OK." + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Unlink a backend from a static site.": { + "$ref": "./examples/UnlinkBackendFromStaticSite.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}": { + "get": { + "tags": [ + "StaticSites" + ], + "summary": "Returns the details of a linked backend linked to a static site build by name", + "operationId": "StaticSites_GetLinkedBackendForBuild", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The stage site identifier", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the linked backend that should be retrieved", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of the linked backend registered with a static site build by name.": { + "$ref": "./examples/GetLinkedBackendForStaticSiteBuild.json" + } + } + }, + "put": { + "tags": [ + "StaticSites" + ], + "summary": "Link backend to a static site build", + "operationId": "StaticSites_LinkBackendToBuild", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The stage site identifier", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the backend to link to the static site", + "required": true, + "type": "string" + }, + { + "name": "staticSiteLinkedBackendEnvelope", + "in": "body", + "description": "A JSON representation of the linked backend request properties", + "required": true, + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Link a backend to a static site build": { + "$ref": "./examples/LinkBackendToStaticSiteBuild.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "StaticSites" + ], + "summary": "Unlink a backend from a static site build", + "operationId": "StaticSites_UnlinkBackendFromBuild", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the static site", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The stage site identifier", + "required": true, + "type": "string" + }, + { + "name": "linkedBackendName", + "in": "path", + "description": "Name of the backend linked to the static site", + "required": true, + "type": "string" + }, + { + "name": "isCleaningAuthConfig", + "in": "query", + "description": "Decides if auth will be removed from backend configuration", + "type": "boolean" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No content" + }, + "200": { + "description": "OK." + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Unlink a backend from a static site build.": { + "$ref": "./examples/UnlinkBackendFromStaticSiteBuild.json" + } + } + } } }, "definitions": { @@ -2889,6 +3490,15 @@ }, "readOnly": true }, + "linkedBackends": { + "description": "Backends linked to the static side", + "type": "array", + "items": { + "$ref": "#/definitions/StaticSiteLinkedBackend" + }, + "x-ms-identifiers": [], + "readOnly": true + }, "provider": { "description": "The provider that submitted the last deployment to the primary environment of the static site.", "type": "string" @@ -3002,6 +3612,15 @@ "$ref": "#/definitions/StaticSiteUserProvidedFunctionApp" }, "readOnly": true + }, + "linkedBackends": { + "description": "Backends linked to the static side build", + "type": "array", + "items": { + "$ref": "#/definitions/StaticSiteLinkedBackend" + }, + "x-ms-identifiers": [], + "readOnly": true } }, "x-ms-client-flatten": true @@ -3643,6 +4262,89 @@ } } } + }, + "StaticSiteLinkedBackendARMResource": { + "description": "Static Site Linked Backend ARM resource.", + "type": "object", + "allOf": [ + { + "$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource" + } + ], + "properties": { + "properties": { + "description": "StaticSiteLinkedBackendARMResource resource specific properties", + "type": "object", + "properties": { + "backendResourceId": { + "description": "The resource id of the backend linked to the static site", + "type": "string" + }, + "region": { + "description": "The region of the backend linked to the static site", + "type": "string" + }, + "createdOn": { + "format": "date-time", + "description": "The date and time on which the backend was linked to the static site.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of the linking process.", + "type": "string", + "readOnly": true + } + }, + "x-ms-client-flatten": true + } + } + }, + "StaticSiteLinkedBackend": { + "description": "Static Site Linked Backend ARM resource.", + "type": "object", + "properties": { + "backendResourceId": { + "description": "The resource id of the backend linked to the static site", + "type": "string" + }, + "region": { + "description": "The region of the backend linked to the static site", + "type": "string" + }, + "createdOn": { + "format": "date-time", + "description": "The date and time on which the backend was linked to the static site.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of the linking process.", + "type": "string", + "readOnly": true + } + } + }, + "StaticSiteLinkedBackendsCollection": { + "description": "Collection of static site linked backends.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/StaticSiteLinkedBackendARMResource" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } } }, "parameters": { diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSite.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSite.json index f238db985154..7519cd6e8529 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSite.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSite.json @@ -38,7 +38,8 @@ "privateEndpointConnections": [], "contentDistributionEndpoint": "", "keyVaultReferenceIdentity": "SystemAssigned", - "userProvidedFunctionApps": [], + "userProvidedFunctionApps": null, + "linkedBackends": [], "stagingEnvironmentPolicy": "Enabled", "allowConfigFileUpdates": true }, @@ -65,7 +66,8 @@ "privateEndpointConnections": [], "contentDistributionEndpoint": "", "keyVaultReferenceIdentity": "SystemAssigned", - "userProvidedFunctionApps": [], + "userProvidedFunctionApps": null, + "linkedBackends": [], "stagingEnvironmentPolicy": "Enabled", "allowConfigFileUpdates": true }, diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSite.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSite.json new file mode 100644 index 000000000000..d91f72c7d538 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSite.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "linkedBackendName": "testBackend", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend", + "name": "testBackend", + "type": "Microsoft.Web/staticSites/builds/linkedBackends", + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2", + "createdOn": "2021-12-24T17:33:11.641Z", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSiteBuild.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSiteBuild.json new file mode 100644 index 000000000000..adf817302fab --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSiteBuild.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "environmentName": "default", + "linkedBackendName": "testBackend", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend", + "name": "testBackend", + "type": "Microsoft.Web/staticSites/builds/linkedBackends", + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2", + "createdOn": "2021-12-24T17:33:11.641Z", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSite.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSite.json new file mode 100644 index 000000000000..4eac3979adbe --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSite.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend", + "name": "testBackend", + "type": "Microsoft.Web/staticSites/builds/linkedBackends", + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2", + "createdOn": "2020-03-04T17:33:11.641Z", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSiteBuild.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSiteBuild.json new file mode 100644 index 000000000000..1e1977f4d4c6 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSiteBuild.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "environmentName": "default", + "linkedBackendName": "testBackend", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend", + "name": "testBackend", + "type": "Microsoft.Web/staticSites/builds/linkedBackends", + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2", + "createdOn": "2020-03-04T17:33:11.641Z", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSite.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSite.json index 7a838ce50439..1cb78ebf573e 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSite.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSite.json @@ -21,7 +21,15 @@ "privateEndpointConnections": [], "contentDistributionEndpoint": "", "keyVaultReferenceIdentity": "SystemAssigned", - "userProvidedFunctionApps": [], + "userProvidedFunctionApps": null, + "linkedBackends": [ + { + "backendResourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0", + "region": null, + "createdOn": "2022-03-27T04:57:24.8058474", + "provisioningState": "Succeeded" + } + ], "stagingEnvironmentPolicy": "Enabled", "allowConfigFileUpdates": true }, diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuild.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuild.json index 93c7e890c634..256ac86ef0c6 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuild.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuild.json @@ -18,7 +18,15 @@ "createdTimeUtc": "2020-03-04T17:33:11.641Z", "lastUpdatedOn": "2020-03-04T17:33:11.641Z", "status": "Uploading", - "userProvidedFunctionApps": [] + "userProvidedFunctionApps": null, + "linkedBackends": [ + { + "backendResourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0", + "region": null, + "createdOn": "2022-03-27T04:57:24.8058474", + "provisioningState": "Succeeded" + } + ] } } } diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuilds.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuilds.json index c5d814ca3673..834f6cd93922 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuilds.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuilds.json @@ -19,7 +19,8 @@ "createdTimeUtc": "2020-03-04T17:33:11.641Z", "lastUpdatedOn": "2020-03-04T17:33:11.641Z", "status": "Ready", - "userProvidedFunctionApps": [] + "userProvidedFunctionApps": null, + "linkedBackends": [] } }, { @@ -31,7 +32,15 @@ "createdTimeUtc": "2020-03-04T17:33:11.641Z", "lastUpdatedOn": "2020-03-04T17:33:11.641Z", "status": "Ready", - "userProvidedFunctionApps": [] + "userProvidedFunctionApps": null, + "linkedBackends": [ + { + "backendResourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0", + "region": null, + "createdOn": "2022-03-27T04:57:24.8058474", + "provisioningState": "Succeeded" + } + ] } } ], diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSites.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSites.json index 3cb2920970d2..8207be96c636 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSites.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSites.json @@ -22,7 +22,8 @@ "privateEndpointConnections": [], "contentDistributionEndpoint": "", "keyVaultReferenceIdentity": "SystemAssigned", - "userProvidedFunctionApps": [], + "userProvidedFunctionApps": null, + "linkedBackends": [], "stagingEnvironmentPolicy": "Enabled", "allowConfigFileUpdates": true }, diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSite.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSite.json new file mode 100644 index 000000000000..e7f025ea1586 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSite.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "linkedBackendName": "testBackend", + "api-version": "2021-03-01", + "staticSiteLinkedBackendEnvelope": { + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend", + "name": "testBackend", + "type": "Microsoft.Web/staticSites/builds/linkedBackends", + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2", + "createdOn": "2021-12-24T17:33:11.641Z", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSiteBuild.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSiteBuild.json new file mode 100644 index 000000000000..9800889cd4d5 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSiteBuild.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "environmentName": "default", + "linkedBackendName": "testBackend", + "api-version": "2021-03-01", + "staticSiteLinkedBackendEnvelope": { + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend", + "name": "testBackend", + "type": "Microsoft.Web/staticSites/builds/linkedBackends", + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2", + "createdOn": "2021-12-24T17:33:11.641Z", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSite.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSite.json new file mode 100644 index 000000000000..7d02e5b53ce8 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSite.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "linkedBackendName": "testBackend", + "cleanUpAuth": true, + "api-version": "2021-03-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSiteBuild.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSiteBuild.json new file mode 100644 index 000000000000..dc7d73b94bb9 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSiteBuild.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "environmentName": "12", + "linkedBackendName": "testBackend", + "cleanUpAuth": true, + "api-version": "2021-03-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSite.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSite.json new file mode 100644 index 000000000000..8ae607f00ac9 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSite.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "linkedBackendName": "testBackend", + "api-version": "2021-03-01", + "staticSiteLinkedBackendEnvelope": { + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2" + } + } + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSiteBuild.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSiteBuild.json new file mode 100644 index 000000000000..fb45f4bdb6ee --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSiteBuild.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testStaticSite0", + "environmentName": "default", + "linkedBackendName": "testBackend", + "api-version": "2021-03-01", + "staticSiteLinkedBackendEnvelope": { + "properties": { + "backendResourceId": "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend", + "region": "West US 2" + } + } + }, + "responses": { + "204": {}, + "200": {} + } +}