diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Patches.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Patches.json new file mode 100644 index 000000000000..5fd1be0c1119 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Patches.json @@ -0,0 +1,555 @@ +{ + "swagger": "2.0", + "info": { + "title": "ContainerApps API Client", + "version": "2023-08-01-preview" + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/patches": { + "get": { + "tags": [ + "Patches" + ], + "operationId": "Patches_ListByBuilderResource", + "description": "List PatchResource resources by BuilderResource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./Builders.json#/parameters/BuilderNameParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply on the operation.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/PatchCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patches_ListByBuilderResource_0": { + "$ref": "./examples/Patches_ListByBuilderResource.json" + } + }, + "x-ms-odata": "#/definitions/PatchResource" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/patches/{patchName}": { + "get": { + "tags": [ + "Patches" + ], + "operationId": "Patches_Get", + "description": "Get details for specific patch by patch name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./Builders.json#/parameters/BuilderNameParameter" + }, + { + "$ref": "#/parameters/PatchNameParameter" + } + ], + "responses": { + "200": { + "description": "Patch information retrieved successfully.", + "schema": { + "$ref": "#/definitions/PatchResource" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patches_Get_0": { + "$ref": "./examples/Patches_Get.json" + } + } + }, + "delete": { + "tags": [ + "Patches" + ], + "operationId": "Patches_Delete", + "description": "Delete specific patch by patch name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./Builders.json#/parameters/BuilderNameParameter" + }, + { + "$ref": "#/parameters/PatchNameParameter" + } + ], + "responses": { + "200": { + "description": "Patch deletion completed successfully." + }, + "202": { + "description": "Patch deletion has been started.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Patch does not exist." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Patches_Delete_0": { + "$ref": "./examples/Patches_Delete.json" + } + } + } + }, + "/subscription/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/patches/{patchName}/skipConfig": { + "post": { + "tags": [ + "Patches" + ], + "operationId": "Patches_Skip_Configure", + "description": "Configure the patch skip option by patch name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./Builders.json#/parameters/BuilderNameParameter" + }, + { + "$ref": "#/parameters/PatchNameParameter" + }, + { + "name": "patchSkipConfig", + "in": "body", + "required": true, + "description": "Configure patcher to skip a patch or not.", + "schema": { + "description": "Configure a patch to be skipped or not by passing a boolean.", + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "Patch skipping detail updated successfully." + }, + "202": { + "description": "Updating patch skipping detail.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Patches_Skip_Configure_0": { + "$ref": "./examples/Patches_Skip_Configure.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/patches/{patchName}/apply": { + "post": { + "tags": [ + "Patches" + ], + "operationId": "Patches_Apply", + "description": "Apply a PatchResource with patch name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./Builders.json#/parameters/BuilderNameParameter" + }, + { + "$ref": "#/parameters/PatchNameParameter" + } + ], + "responses": { + "200": { + "description": "Patching operation completed successfully.", + "schema": { + "$ref": "#/definitions/PatchResource" + } + }, + "202": { + "description": "Patching operation has been started.", + "headers": { + "Azure-AsyncOperation": { + "type": "string" + } + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Patches_Apply_0": { + "$ref": "./examples/Patches_Apply.json" + } + } + } + } + }, + "definitions": { + "PatchResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PatchProperties", + "description": "Properties that describes current states of the patch resource.", + "x-ms-mutability": [ + "read", + "update" + ] + } + }, + "description": "Container App Patch", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "PatchProvisioningState": { + "type": "string", + "description": "Resource instance provisioning state.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "PatchProvisioningState", + "modelAsString": true + }, + "readOnly": true + }, + "PatchApplyStatus": { + "type": "string", + "description": "The status of the patch once it has been provisioned", + "enum": [ + "NotStarted", + "RebaseInProgress", + "CreatingRevision", + "Succeeded", + "Canceled", + "RebaseFailed", + "RevisionCreationFailed", + "ImagePushPullFailed", + "ManuallySkipped" + ], + "x-ms-enum": { + "name": "PatchApplyStatus", + "modelAsString": true + }, + "readOnly": true + }, + "DetectionStatus": { + "type": "string", + "description": "The status of the patch detection.", + "enum": [ + "Succeeded", + "RegistryLoginFailed", + "Failed" + ], + "x-ms-enum": { + "name": "DetectionStatus", + "modelAsString": true + }, + "readOnly": true + }, + "PatchDetails": { + "description": "The detailed info of patch operation performing when applying a patch.", + "type": "object", + "required": [ + "targetContainerName", + "targetImage", + "lastDetectionTime", + "detectionStatus" + ], + "properties": { + "targetContainerName": { + "type": "string", + "description": "The name of the target container for the patch.", + "readOnly": true + }, + "targetImage": { + "type": "string", + "description": "The name of the target image for the patch.", + "readOnly": true + }, + "lastDetectionTime": { + "type": "string", + "format": "date-time", + "description": "The UTC timestamp that describes the latest detection was done.", + "readOnly": true + }, + "detectionStatus": { + "$ref": "#/definitions/DetectionStatus", + "description": "The status of the patch detection.", + "readOnly": true + }, + "newImageName": { + "type": "string", + "description": "The name of the new image created by the patch.", + "readOnly": true + }, + "newLayer": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The details of the new layer for the target image." + }, + "frameworkAndVersion": { + "type": "string", + "description": "The framework and its version in the new run image for the target image." + }, + "osAndVersion": { + "type": "string", + "description": "The OS name and its version in the new run image for the target image." + } + }, + "description": "New layer update details in the target image.", + "readOnly": true + }, + "oldLayer": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The details of the old layer for the target image." + }, + "frameworkAndVersion": { + "type": "string", + "description": "The framework and its version in the old run image for the target image." + }, + "osAndVersion": { + "type": "string", + "description": "The OS name and its version in the old run image for the target image." + } + }, + "description": "The old layer details in the target image.", + "readOnly": true + }, + "patchType": { + "type": "string", + "description": "The type for the patch.", + "enum": [ + "FrameworkSecurity", + "OSSecurity", + "FrameworkAndOSSecurity", + "Other" + ], + "x-ms-enum": { + "name": "PatchType", + "modelAsString": true + }, + "readOnly": true + } + }, + "readOnly": true + }, + "PatchProperties": { + "type": "object", + "properties": { + "targetEnvironmentId": { + "format": "arm-id", + "type": "string", + "description": "The id of the target environment for the patch." + }, + "targetContainerAppId": { + "format": "arm-id", + "type": "string", + "description": "The id of the target container app for the patch." + }, + "targetRevisionId": { + "format": "arm-id", + "type": "string", + "description": "The id of the target revision for the patch." + }, + "provisioningState": { + "$ref": "#/definitions/PatchProvisioningState", + "description": "Patch provisioning state.", + "readOnly": true + }, + "patchApplyStatus": { + "$ref": "#/definitions/PatchApplyStatus", + "description": "The status of the patch operation once it has been provisioned", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "The UTC timestamp that describes when the patch object was created.", + "readOnly": true + }, + "updatedTime": { + "type": "string", + "format": "date-time", + "description": "The UTC timestamp that describes when the patch object was last updated.", + "readOnly": true + }, + "patchDetails": { + "description": "Detailed info describes the patch operation for the target container app.", + "type": "array", + "items": { + "$ref": "#/definitions/PatchDetails" + }, + "x-ms-identifiers": [], + "readOnly": true + } + }, + "readOnly": true + }, + "PatchCollection": { + "description": "Container App SourceToCloud patch collection", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of patch resources.", + "type": "array", + "items": { + "$ref": "#/definitions/PatchResource" + } + }, + "nextLink": { + "description": "the link to the next page of items", + "type": "string", + "format": "uri" + } + } + } + }, + "parameters": { + "PatchNameParameter": { + "name": "patchName", + "in": "path", + "required": true, + "description": "The name of the patch", + "minLength": 2, + "maxLength": 64, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Apply.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Apply.json new file mode 100644 index 000000000000..e9ebd346a5fa --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Apply.json @@ -0,0 +1,54 @@ +{ + "operationId": "Patches_Apply", + "title": "Patches_Apply_0", + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg", + "builderName": "testBuilder", + "patchName": "testPatch-25fe4b", + "api-version": "2023-08-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/builders/testBuilder/patches/testPatch-25fe4b", + "name": "testPatch-25fe4b", + "type": "Microsoft.App/builders/patches", + "properties": { + "targetEnvironmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/test-env", + "targetContainerAppId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/containerApps/test-app", + "targetRevisionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/apps/test-app/revisions/test-app--jm3vvry", + "provisioningState": "Succeeded", + "patchApplyStatus": "Succeeded", + "createdTime": "2022-10-10T12:06:20.3421+00:00", + "updatedTime": "2022-10-10T12:06:20.3421+00:00", + "patchDetails": [ + { + "targetContainerName": "test-container", + "targetImage": "testregistry.azurecr.io/test-image:latest", + "lastDetectionTime": "2022-10-10T12:06:19.5241+00:00", + "detectionStatus": "Succeeded", + "newImageName": "testregistry.azurecr.io/test-image:latest-patched-202210101206", + "newLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.7-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.7", + "osAndVersion": "cbl-mariner2.0" + }, + "oldLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.5-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.5", + "osAndVersion": "cbl-mariner2.0" + }, + "patchType": "FrameworkSecurity" + } + ] + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Delete.json new file mode 100644 index 000000000000..b8bf8d87bd48 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Delete.json @@ -0,0 +1,20 @@ +{ + "operationId": "Patches_Delete", + "title": "Patches_Delete_0", + "parameters": { + "api-version": "2023-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg", + "builderName": "testBuilder", + "patchName": "testPatch-25fe4b" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}" + } + }, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Get.json new file mode 100644 index 000000000000..94e9a44e88e4 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Get.json @@ -0,0 +1,49 @@ +{ + "operationId": "Patches_Get", + "title": "Patches_Get_0", + "parameters": { + "api-version": "2023-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg", + "builderName": "testBuilder", + "patchName": "testPatch-25fe4b" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/builders/testBuilder/patches/testPatch/testPatch-25fe4b", + "name": "testPatch-25fe4b", + "type": "Microsoft.App/builders/patches", + "properties": { + "targetEnvironmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/test-env", + "targetContainerAppId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/containerApps/test-app", + "targetRevisionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/apps/test-app/revisions/test-app--jm3vvry", + "provisioningState": "Succeeded", + "patchApplyStatus": "NotStarted", + "createdTime": "2022-10-10T12:06:20.3421+00:00", + "updatedTime": "2022-10-10T12:06:20.3421+00:00", + "patchDetails": [ + { + "targetContainerName": "test-container", + "targetImage": "testregistry.azurecr.io/test-image:latest", + "lastDetectionTime": "2022-10-10T12:06:19.5241+00:00", + "detectionStatus": "Succeeded", + "newImageName": "testregistry.azurecr.io/test-image:latest-patched-202210101206", + "newLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.7-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.7", + "osAndVersion": "cbl-mariner2.0" + }, + "oldLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.5-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.5", + "osAndVersion": "cbl-mariner2.0" + }, + "patchType": "FrameworkSecurity" + } + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_ListByBuilderResource.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_ListByBuilderResource.json new file mode 100644 index 000000000000..15d0b51f4d16 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_ListByBuilderResource.json @@ -0,0 +1,129 @@ +{ + "operationId": "Patches_ListByBuilderResource", + "title": "Patches_ListByBuilderResource_0", + "parameters": { + "api-version": "2023-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg", + "builderName": "testBuilder" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/builders/testBuilder/patches/testPatch-25fe4b", + "name": "testPatch-25fe4b", + "type": "Microsoft.App/builders/patches", + "properties": { + "targetEnvironmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/test-env", + "targetContainerAppId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/containerApps/test-app", + "targetRevisionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/apps/test-app/revisions/test-app--jm3vvry", + "provisioningState": "Succeeded", + "patchApplyStatus": "NotStarted", + "createdTime": "2022-10-10T12:06:20.3421+00:00", + "updatedTime": "2022-10-10T12:06:20.3421+00:00", + "patchDetails": [ + { + "targetContainerName": "test-container", + "targetImage": "testregistry.azurecr.io/test-image:latest", + "lastDetectionTime": "2022-10-10T12:06:19.5241+00:00", + "detectionStatus": "Succeeded", + "newImageName": "testregistry.azurecr.io/test-image:latest-patched-202210101206185241", + "newLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.7-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.7", + "osAndVersion": "cbl-mariner2.0" + }, + "oldLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.5-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.5", + "osAndVersion": "cbl-mariner2.0" + }, + "patchType": "FrameworkSecurity" + } + ] + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/builders/testBuilder/patches/testPatch-27c3d5", + "name": "testPatch-27c3d5", + "type": "Microsoft.App/builders/patches", + "properties": { + "targetEnvironmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/test-env", + "targetContainerAppId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/containerApps/test-app2", + "targetRevisionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/containerApps/test-app2/revisions/test-app2--z79h4oc", + "provisioningState": "Succeeded", + "patchApplyStatus": "NotStarted", + "createdTime": "2022-10-10T12:06:20.3421+00:00", + "updatedTime": "2022-10-10T12:06:20.3421+00:00", + "patchDetails": [ + { + "targetContainerName": "test-container", + "targetImage": "testregistry.azurecr.io/test-image:release-1", + "lastDetectionTime": "2022-10-10T12:06:19.5241+00:00", + "detectionStatus": "Succeeded", + "newImageName": "testregistry.azurecr.io/test-image:release-1-patched-202210101206203421", + "newLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.7-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.7", + "osAndVersion": "cbl-mariner2.0" + }, + "oldLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.5-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.5", + "osAndVersion": "cbl-mariner2.0" + }, + "patchType": "FrameworkSecurity" + }, + { + "targetContainerName": "test-container-2", + "targetImage": "testregistry.azurecr.io/test-image:release-2", + "lastDetectionTime": "2022-10-10T12:06:19.5241+00:00", + "detectionStatus": "Succeeded", + "newImageName": "testregistry.azurecr.io/test-image:release-2-patched-202210101206203421", + "newLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.7-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.7", + "osAndVersion": "cbl-mariner2.0" + }, + "oldLayer": { + "name": "mcr.microsoft.com/dotnet/aspnet:7.0.0-cbl-mariner2.0", + "frameworkAndVersion": "dotnet:7.0.0", + "osAndVersion": "cbl-mariner2.0" + }, + "patchType": "FrameworkSecurity" + } + ] + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/builders/testBuilder/patches/testPatch-29e7a", + "name": "testPatch-29e7a", + "type": "Microsoft.App/builders/patches", + "properties": { + "targetEnvironmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/test-env", + "targetContainerAppId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/containerApps/test-app3", + "provisioningState": "Succeeded", + "patchApplyStatus": null, + "createdTime": "2022-10-10T12:06:20.3421+00:00", + "updatedTime": "2022-10-10T12:06:20.3421+00:00", + "patchDetails": [ + { + "targetContainerName": "test-container", + "targetImage": "private-repository-k8s.k8se-system/test-image:failed-test", + "lastDetectionTime": "2022-10-10T12:06:19.5241+00:00", + "detectionStatus": "RegistryLoginFailed", + "newLayer": null, + "oldLayer": null, + "patchType": null + } + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Skip_Configure.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Skip_Configure.json new file mode 100644 index 000000000000..c121794b0714 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Patches_Skip_Configure.json @@ -0,0 +1,20 @@ +{ + "operationId": "Patches_Skip_Configure", + "title": "Patches_Skip_Configure_0", + "parameters": { + "api-version": "2023-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg", + "builderName": "testBuilder", + "patchName": "testPatch-25fe4b", + "patchSkipConfig": true + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}" + } + } + } +} diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 5c78c7235628..9ec53d2ae187 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -54,6 +54,7 @@ input-file: - Microsoft.App/preview/2023-08-01-preview/ManagedEnvironments.json - Microsoft.App/preview/2023-08-01-preview/ManagedEnvironmentsDaprComponents.json - Microsoft.App/preview/2023-08-01-preview/ManagedEnvironmentsStorages.json + - Microsoft.App/preview/2023-08-01-preview/Patches.json - Microsoft.App/preview/2023-08-01-preview/SourceControls.json - Microsoft.App/preview/2023-08-01-preview/Subscriptions.json - Microsoft.App/preview/2023-08-01-preview/Usages.json