From 24d1f099bb8c1c1dc19b383fd0c163310ccc6b49 Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:04:43 -0700 Subject: [PATCH 01/50] Adds base for updating Microsoft.App from version stable/2022-03-01 to version 2022-05-01 --- .../stable/2022-05-01/AuthConfigs.json | 980 +++++++++++++++++ .../stable/2022-05-01/CommonDefinitions.json | 548 ++++++++++ .../stable/2022-05-01/ContainerApps.json | 866 +++++++++++++++ .../2022-05-01/ContainerAppsRevisions.json | 596 +++++++++++ .../stable/2022-05-01/DaprComponents.json | 428 ++++++++ .../stable/2022-05-01/Global.json | 140 +++ .../2022-05-01/ManagedEnvironments.json | 986 ++++++++++++++++++ .../ManagedEnvironmentsStorages.json | 321 ++++++ .../stable/2022-05-01/SourceControls.json | 429 ++++++++ .../examples/AuthConfigs_CreateOrUpdate.json | 53 + .../examples/AuthConfigs_Delete.json | 13 + .../2022-05-01/examples/AuthConfigs_Get.json | 35 + .../examples/AuthConfigs_ListByContainer.json | 39 + .../examples/Certificate_CreateOrUpdate.json | 35 + .../examples/Certificate_Delete.json | 13 + .../2022-05-01/examples/Certificate_Get.json | 29 + .../Certificates_CheckNameAvailability.json | 21 + ...Certificates_ListByManagedEnvironment.json | 47 + .../examples/Certificates_Patch.json | 38 + .../ContainerApps_CheckNameAvailability.json | 21 + .../ContainerApps_CreateOrUpdate.json | 260 +++++ .../examples/ContainerApps_Delete.json | 17 + .../examples/ContainerApps_Get.json | 87 ++ .../ContainerApps_ListByResourceGroup.json | 90 ++ .../ContainerApps_ListBySubscription.json | 89 ++ ...tainerApps_ListCustomHostNameAnalysis.json | 45 + .../examples/ContainerApps_ListSecrets.json | 23 + .../examples/ContainerApps_Patch.json | 94 ++ .../DaprComponents_CreateOrUpdate.json | 87 ++ .../examples/DaprComponents_Delete.json | 13 + .../examples/DaprComponents_Get.json | 51 + .../examples/DaprComponents_List.json | 54 + .../examples/DaprComponents_ListSecrets.json | 24 + ...edEnvironmentsStorages_CreateOrUpdate.json | 35 + .../ManagedEnvironmentsStorages_Delete.json | 13 + .../ManagedEnvironmentsStorages_Get.json | 25 + .../ManagedEnvironmentsStorages_List.json | 28 + .../ManagedEnvironments_CreateOrUpdate.json | 63 ++ .../examples/ManagedEnvironments_Delete.json | 14 + .../examples/ManagedEnvironments_Get.json | 26 + ...nagedEnvironments_ListByResourceGroup.json | 45 + ...anagedEnvironments_ListBySubscription.json | 44 + .../examples/ManagedEnvironments_Patch.json | 22 + .../2022-05-01/examples/Operations_List.json | 24 + .../2022-05-01/examples/Replicas_Get.json | 32 + .../2022-05-01/examples/Replicas_List.json | 35 + .../examples/Revisions_Activate.json | 12 + .../examples/Revisions_Deactivate.json | 12 + .../2022-05-01/examples/Revisions_Get.json | 51 + .../2022-05-01/examples/Revisions_List.json | 55 + .../examples/Revisions_Restart.json | 12 + .../SourceControls_CreateOrUpdate.json | 75 ++ .../examples/SourceControls_Delete.json | 18 + .../examples/SourceControls_Get.json | 31 + .../SourceControls_ListByContainer.json | 35 + 55 files changed, 7279 insertions(+) create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json new file mode 100644 index 000000000000..114240879a9c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json @@ -0,0 +1,980 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs": { + "get": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Get the Container App AuthConfigs in a given resource group.", + "operationId": "ContainerAppsAuthConfigs_ListByContainerApp", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AuthConfigCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Auth Configs by Container Apps": { + "$ref": "./examples/AuthConfigs_ListByContainer.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}": { + "get": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Get a AuthConfig of a Container App.", + "operationId": "ContainerAppsAuthConfigs_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App AuthConfig.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AuthConfig" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's AuthConfig": { + "$ref": "./examples/AuthConfigs_Get.json" + } + } + }, + "put": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Create or update the AuthConfig for a Container App.", + "description": "Description for Create or update the AuthConfig for a Container App.", + "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App AuthConfig.", + "required": true, + "type": "string" + }, + { + "name": "authConfigEnvelope", + "in": "body", + "description": "Properties used to create a Container App AuthConfig", + "required": true, + "schema": { + "$ref": "#/definitions/AuthConfig" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "$ref": "#/definitions/AuthConfig" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Container App AuthConfig": { + "$ref": "./examples/AuthConfigs_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Delete a Container App AuthConfig.", + "description": "Description for Delete a Container App AuthConfig.", + "operationId": "ContainerAppsAuthConfigs_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App AuthConfig.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App deleted successfully." + }, + "204": { + "description": "Container App AuthConfig does not exist." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App AuthConfig": { + "$ref": "./examples/AuthConfigs_Delete.json" + } + } + } + } + }, + "definitions": { + "AuthConfigCollection": { + "description": "AuthConfig collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/AuthConfig" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "AuthConfig": { + "description": "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "AuthConfig resource specific properties", + "type": "object", + "properties": { + "platform": { + "$ref": "#/definitions/AuthPlatform", + "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization." + }, + "globalValidation": { + "$ref": "#/definitions/GlobalValidation", + "description": "The configuration settings that determines the validation flow of users using Service Authentication/Authorization." + }, + "identityProviders": { + "$ref": "#/definitions/IdentityProviders", + "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization." + }, + "login": { + "$ref": "#/definitions/Login", + "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization." + }, + "httpSettings": { + "$ref": "#/definitions/HttpSettings", + "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization." + } + }, + "x-ms-client-flatten": true + } + } + }, + "AuthPlatform": { + "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "enabled": { + "description": "true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.", + "type": "boolean" + }, + "runtimeVersion": { + "description": "The RuntimeVersion of the Authentication / Authorization feature in use for the current app.\nThe setting in this value can control the behavior of certain features in the Authentication / Authorization module.", + "type": "string" + } + } + }, + "GlobalValidation": { + "description": "The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "unauthenticatedClientAction": { + "description": "The action to take when an unauthenticated client attempts to access the app.", + "enum": [ + "RedirectToLoginPage", + "AllowAnonymous", + "Return401", + "Return403" + ], + "type": "string", + "x-ms-enum": { + "name": "UnauthenticatedClientActionV2", + "modelAsString": false + } + }, + "redirectToProvider": { + "description": "The default authentication provider to use when multiple providers are configured.\nThis setting is only needed if multiple providers are configured and the unauthenticated client\naction is set to \"RedirectToLoginPage\".", + "type": "string" + }, + "excludedPaths": { + "description": "The paths for which unauthenticated flow would not be redirected to the login page.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "HttpSettings": { + "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "requireHttps": { + "description": "false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true.", + "type": "boolean" + }, + "routes": { + "$ref": "#/definitions/HttpSettingsRoutes", + "description": "The configuration settings of the paths HTTP requests." + }, + "forwardProxy": { + "$ref": "#/definitions/ForwardProxy", + "description": "The configuration settings of a forward proxy used to make the requests." + } + } + }, + "HttpSettingsRoutes": { + "description": "The configuration settings of the paths HTTP requests.", + "type": "object", + "properties": { + "apiPrefix": { + "description": "The prefix that should precede all the authentication/authorization paths.", + "type": "string" + } + } + }, + "ForwardProxy": { + "description": "The configuration settings of a forward proxy used to make the requests.", + "type": "object", + "properties": { + "convention": { + "description": "The convention used to determine the url of the request made.", + "enum": [ + "NoProxy", + "Standard", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ForwardProxyConvention", + "modelAsString": false + } + }, + "customHostHeaderName": { + "description": "The name of the header containing the host of the request.", + "type": "string" + }, + "customProtoHeaderName": { + "description": "The name of the header containing the scheme of the request.", + "type": "string" + } + } + }, + "Login": { + "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "routes": { + "$ref": "#/definitions/LoginRoutes", + "description": "The routes that specify the endpoints used for login and logout requests." + }, + "preserveUrlFragmentsForLogins": { + "description": "true if the fragments from the request are preserved after the login request is made; otherwise, false.", + "type": "boolean" + }, + "allowedExternalRedirectUrls": { + "description": "External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored.\nThis is an advanced setting typically only needed by Windows Store application backends.\nNote that URLs within the current domain are always implicitly allowed.", + "type": "array", + "items": { + "type": "string" + } + }, + "cookieExpiration": { + "$ref": "#/definitions/CookieExpiration", + "description": "The configuration settings of the session cookie's expiration." + }, + "nonce": { + "$ref": "#/definitions/Nonce", + "description": "The configuration settings of the nonce used in the login flow." + } + } + }, + "LoginRoutes": { + "description": "The routes that specify the endpoints used for login and logout requests.", + "type": "object", + "properties": { + "logoutEndpoint": { + "description": "The endpoint at which a logout request should be made.", + "type": "string" + } + } + }, + "CookieExpiration": { + "description": "The configuration settings of the session cookie's expiration.", + "type": "object", + "properties": { + "convention": { + "description": "The convention used when determining the session cookie's expiration.", + "enum": [ + "FixedTime", + "IdentityProviderDerived" + ], + "type": "string", + "x-ms-enum": { + "name": "CookieExpirationConvention", + "modelAsString": false + } + }, + "timeToExpiration": { + "description": "The time after the request is made when the session cookie should expire.", + "type": "string" + } + } + }, + "Nonce": { + "description": "The configuration settings of the nonce used in the login flow.", + "type": "object", + "properties": { + "validateNonce": { + "description": "false if the nonce should not be validated while completing the login flow; otherwise, true.", + "type": "boolean" + }, + "nonceExpirationInterval": { + "description": "The time after the request is made when the nonce should expire.", + "type": "string" + } + } + }, + "IdentityProviders": { + "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "azureActiveDirectory": { + "$ref": "#/definitions/AzureActiveDirectory", + "description": "The configuration settings of the Azure Active directory provider." + }, + "facebook": { + "$ref": "#/definitions/Facebook", + "description": "The configuration settings of the Facebook provider." + }, + "gitHub": { + "$ref": "#/definitions/GitHub", + "description": "The configuration settings of the GitHub provider." + }, + "google": { + "$ref": "#/definitions/Google", + "description": "The configuration settings of the Google provider." + }, + "twitter": { + "$ref": "#/definitions/Twitter", + "description": "The configuration settings of the Twitter provider." + }, + "apple": { + "$ref": "#/definitions/Apple", + "description": "The configuration settings of the Apple provider." + }, + "azureStaticWebApps": { + "$ref": "#/definitions/AzureStaticWebApps", + "description": "The configuration settings of the Azure Static Web Apps provider." + }, + "customOpenIdConnectProviders": { + "description": "The map of the name of the alias of each custom Open ID Connect provider to the\nconfiguration settings of the custom Open ID Connect provider.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/CustomOpenIdConnectProvider" + } + } + } + }, + "AzureActiveDirectory": { + "description": "The configuration settings of the Azure Active directory provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AzureActiveDirectoryRegistration", + "description": "The configuration settings of the Azure Active Directory app registration." + }, + "login": { + "$ref": "#/definitions/AzureActiveDirectoryLogin", + "description": "The configuration settings of the Azure Active Directory login flow." + }, + "validation": { + "$ref": "#/definitions/AzureActiveDirectoryValidation", + "description": "The configuration settings of the Azure Active Directory token validation flow." + }, + "isAutoProvisioned": { + "description": "Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling.\nThis is an internal flag primarily intended to support the Azure Management Portal. Users should not\nread or write to this property.", + "type": "boolean" + } + } + }, + "AzureActiveDirectoryLogin": { + "description": "The configuration settings of the Azure Active Directory login flow.", + "type": "object", + "properties": { + "loginParameters": { + "description": "Login parameters to send to the OpenID Connect authorization endpoint when\na user logs in. Each parameter must be in the form \"key=value\".", + "type": "array", + "items": { + "type": "string" + } + }, + "disableWWWAuthenticate": { + "description": "true if the www-authenticate provider should be omitted from the request; otherwise, false.", + "type": "boolean" + } + } + }, + "AzureActiveDirectoryRegistration": { + "description": "The configuration settings of the Azure Active Directory app registration.", + "type": "object", + "properties": { + "openIdIssuer": { + "description": "The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application.\nWhen using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/.\nThis URI is a case-sensitive identifier for the token issuer.\nMore information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html", + "type": "string" + }, + "clientId": { + "description": "The Client ID of this relying party application, known as the client_id.\nThis setting is required for enabling OpenID Connection authentication with Azure Active Directory or \nother 3rd party OpenID Connect providers.\nMore information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html", + "type": "string" + }, + "clientSecretSettingName": { + "description": "The app setting name that contains the client secret of the relying party application.", + "type": "string" + }, + "clientSecretCertificateThumbprint": { + "description": "An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret. It is also optional.", + "type": "string" + }, + "clientSecretCertificateSubjectAlternativeName": { + "description": "An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.", + "type": "string" + }, + "clientSecretCertificateIssuer": { + "description": "An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.", + "type": "string" + } + } + }, + "AzureActiveDirectoryValidation": { + "description": "The configuration settings of the Azure Active Directory token validation flow.", + "type": "object", + "properties": { + "jwtClaimChecks": { + "$ref": "#/definitions/JwtClaimChecks", + "description": "The configuration settings of the checks that should be made while validating the JWT Claims." + }, + "allowedAudiences": { + "description": "The list of audiences that can make successful authentication/authorization requests.", + "type": "array", + "items": { + "type": "string" + } + }, + "defaultAuthorizationPolicy": { + "$ref": "#/definitions/DefaultAuthorizationPolicy", + "description": "The configuration settings of the default authorization policy." + } + } + }, + "JwtClaimChecks": { + "description": "The configuration settings of the checks that should be made while validating the JWT Claims.", + "type": "object", + "properties": { + "allowedGroups": { + "description": "The list of the allowed groups.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowedClientApplications": { + "description": "The list of the allowed client applications.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "DefaultAuthorizationPolicy": { + "description": "The configuration settings of the Azure Active Directory default authorization policy.", + "type": "object", + "properties": { + "allowedPrincipals": { + "$ref": "#/definitions/AllowedPrincipals", + "description": "The configuration settings of the Azure Active Directory allowed principals." + }, + "allowedApplications": { + "description": "The configuration settings of the Azure Active Directory allowed applications.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AllowedPrincipals": { + "description": "The configuration settings of the Azure Active Directory allowed principals.", + "type": "object", + "properties": { + "groups": { + "description": "The list of the allowed groups.", + "type": "array", + "items": { + "type": "string" + } + }, + "identities": { + "description": "The list of the allowed identities.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Facebook": { + "description": "The configuration settings of the Facebook provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Facebook provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AppRegistration", + "description": "The configuration settings of the app registration for the Facebook provider." + }, + "graphApiVersion": { + "description": "The version of the Facebook api to be used while logging in.", + "type": "string" + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + } + } + }, + "AppRegistration": { + "description": "The configuration settings of the app registration for providers that have app ids and app secrets", + "type": "object", + "properties": { + "appId": { + "description": "The App ID of the app used for login.", + "type": "string" + }, + "appSecretSettingName": { + "description": "The app setting name that contains the app secret.", + "type": "string" + } + } + }, + "LoginScopes": { + "description": "The configuration settings of the login flow, including the scopes that should be requested.", + "type": "object", + "properties": { + "scopes": { + "description": "A list of the scopes that should be requested while authenticating.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GitHub": { + "description": "The configuration settings of the GitHub provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the GitHub provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/ClientRegistration", + "description": "The configuration settings of the app registration for the GitHub provider." + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + } + } + }, + "ClientRegistration": { + "description": "The configuration settings of the app registration for providers that have client ids and client secrets", + "type": "object", + "properties": { + "clientId": { + "description": "The Client ID of the app used for login.", + "type": "string" + }, + "clientSecretSettingName": { + "description": "The app setting name that contains the client secret.", + "type": "string" + } + } + }, + "Google": { + "description": "The configuration settings of the Google provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Google provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/ClientRegistration", + "description": "The configuration settings of the app registration for the Google provider." + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + }, + "validation": { + "$ref": "#/definitions/AllowedAudiencesValidation", + "description": "The configuration settings of the Azure Active Directory token validation flow." + } + } + }, + "AllowedAudiencesValidation": { + "description": "The configuration settings of the Allowed Audiences validation flow.", + "type": "object", + "properties": { + "allowedAudiences": { + "description": "The configuration settings of the allowed list of audiences from which to validate the JWT token.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Twitter": { + "description": "The configuration settings of the Twitter provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Twitter provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/TwitterRegistration", + "description": "The configuration settings of the app registration for the Twitter provider." + } + } + }, + "TwitterRegistration": { + "description": "The configuration settings of the app registration for the Twitter provider.", + "type": "object", + "properties": { + "consumerKey": { + "description": "The OAuth 1.0a consumer key of the Twitter application used for sign-in.\nThis setting is required for enabling Twitter Sign-In.\nTwitter Sign-In documentation: https://dev.twitter.com/web/sign-in", + "type": "string" + }, + "consumerSecretSettingName": { + "description": "The app setting name that contains the OAuth 1.0a consumer secret of the Twitter\napplication used for sign-in.", + "type": "string" + } + } + }, + "Apple": { + "description": "The configuration settings of the Apple provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Apple provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AppleRegistration", + "description": "The configuration settings of the Apple registration." + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + } + } + }, + "AppleRegistration": { + "description": "The configuration settings of the registration for the Apple provider", + "type": "object", + "properties": { + "clientId": { + "description": "The Client ID of the app used for login.", + "type": "string" + }, + "clientSecretSettingName": { + "description": "The app setting name that contains the client secret.", + "type": "string" + } + } + }, + "AzureStaticWebApps": { + "description": "The configuration settings of the Azure Static Web Apps provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AzureStaticWebAppsRegistration", + "description": "The configuration settings of the Azure Static Web Apps registration." + } + } + }, + "AzureStaticWebAppsRegistration": { + "description": "The configuration settings of the registration for the Azure Static Web Apps provider", + "type": "object", + "properties": { + "clientId": { + "description": "The Client ID of the app used for login.", + "type": "string" + } + } + }, + "CustomOpenIdConnectProvider": { + "description": "The configuration settings of the custom Open ID Connect provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the custom Open ID provider provider should not be enabled; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/OpenIdConnectRegistration", + "description": "The configuration settings of the app registration for the custom Open ID Connect provider." + }, + "login": { + "$ref": "#/definitions/OpenIdConnectLogin", + "description": "The configuration settings of the login flow of the custom Open ID Connect provider." + } + } + }, + "OpenIdConnectRegistration": { + "description": "The configuration settings of the app registration for the custom Open ID Connect provider.", + "type": "object", + "properties": { + "clientId": { + "description": "The client id of the custom Open ID Connect provider.", + "type": "string" + }, + "clientCredential": { + "$ref": "#/definitions/OpenIdConnectClientCredential", + "description": "The authentication credentials of the custom Open ID Connect provider." + }, + "openIdConnectConfiguration": { + "$ref": "#/definitions/OpenIdConnectConfig", + "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider." + } + } + }, + "OpenIdConnectClientCredential": { + "description": "The authentication client credentials of the custom Open ID Connect provider.", + "type": "object", + "properties": { + "method": { + "description": "The method that should be used to authenticate the user.", + "enum": [ + "ClientSecretPost" + ], + "type": "string", + "x-ms-enum": { + "name": "ClientCredentialMethod", + "modelAsString": false + } + }, + "clientSecretSettingName": { + "description": "The app setting that contains the client secret for the custom Open ID Connect provider.", + "type": "string" + } + } + }, + "OpenIdConnectConfig": { + "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider.", + "type": "object", + "properties": { + "authorizationEndpoint": { + "description": "The endpoint to be used to make an authorization request.", + "type": "string" + }, + "tokenEndpoint": { + "description": "The endpoint to be used to request a token.", + "type": "string" + }, + "issuer": { + "description": "The endpoint that issues the token.", + "type": "string" + }, + "certificationUri": { + "description": "The endpoint that provides the keys necessary to validate the token.", + "type": "string" + }, + "wellKnownOpenIdConfiguration": { + "description": "The endpoint that contains all the configuration endpoints for the provider.", + "type": "string" + } + } + }, + "OpenIdConnectLogin": { + "description": "The configuration settings of the login flow of the custom Open ID Connect provider.", + "type": "object", + "properties": { + "nameClaimType": { + "description": "The name of the claim that contains the users name.", + "type": "string" + }, + "scopes": { + "description": "A list of the scopes that should be requested while authenticating.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json new file mode 100644 index 000000000000..169dde52642d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json @@ -0,0 +1,548 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "EnvironmentVar": { + "description": "Container App container environment variable.", + "type": "object", + "properties": { + "name": { + "description": "Environment variable name.", + "type": "string" + }, + "value": { + "description": "Non-secret environment variable value.", + "type": "string" + }, + "secretRef": { + "description": "Name of the Container App secret from which to pull the environment variable value.", + "type": "string" + } + } + }, + "Container": { + "description": "Container App container definition.", + "type": "object", + "properties": { + "image": { + "description": "Container image tag.", + "type": "string" + }, + "name": { + "description": "Custom container name.", + "type": "string" + }, + "command": { + "description": "Container start command.", + "type": "array", + "items": { + "type": "string" + } + }, + "args": { + "description": "Container start command arguments.", + "type": "array", + "items": { + "type": "string" + } + }, + "env": { + "description": "Container environment variables.", + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentVar" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "resources": { + "$ref": "#/definitions/ContainerResources", + "description": "Container resource requirements." + }, + "probes": { + "description": "List of probes for the container.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerAppProbe" + }, + "x-ms-identifiers": [ + "type" + ] + }, + "volumeMounts": { + "description": "Container volume mounts.", + "type": "array", + "items": { + "$ref": "#/definitions/VolumeMount" + }, + "x-ms-identifiers": [ + "volumeName" + ] + } + } + }, + "ContainerResources": { + "description": "Container App container resource requirements.", + "type": "object", + "properties": { + "cpu": { + "format": "double", + "description": "Required CPU in cores, e.g. 0.5", + "type": "number" + }, + "memory": { + "description": "Required memory, e.g. \"250Mb\"", + "type": "string" + }, + "ephemeralStorage": { + "description": "Ephemeral Storage, e.g. \"1Gi\"", + "type": "string", + "readOnly": true + } + } + }, + "ContainerAppProbe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "type": "object", + "properties": { + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10.", + "type": "integer", + "format": "int32" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + } + }, + "x-ms-identifiers": [ + "name" + ] + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "integer", + "format": "int32" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + } + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. Minimum value is 1. Maximum value is 60.", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.", + "type": "integer", + "format": "int32" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "integer", + "format": "int32" + } + } + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 hour)", + "type": "integer", + "format": "int64" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 240.", + "type": "integer", + "format": "int32" + }, + "type": { + "description": "The type of probe.", + "enum": [ + "liveness", + "readiness", + "startup" + ], + "type": "string", + "x-ms-enum": { + "name": "Type", + "modelAsString": true + } + } + } + }, + "CustomScaleRule": { + "description": "Container App container Custom scaling rule.", + "type": "object", + "properties": { + "type": { + "description": "Type of the custom scale rule\neg: azure-servicebus, redis etc.", + "type": "string" + }, + "metadata": { + "description": "Metadata properties to describe custom scale rule.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "auth": { + "description": "Authentication secrets for the custom scale rule.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleAuth" + }, + "x-ms-identifiers": [ + "triggerParameter" + ] + } + } + }, + "DefaultErrorResponse": { + "description": "App Service error response.", + "type": "object", + "properties": { + "error": { + "description": "Error model.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "details": { + "type": "array", + "description": "Details or the error", + "items": { + "description": "Detailed errors.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, + "x-ms-identifiers": [ + "code" + ] + }, + "innererror": { + "description": "More information to debug error.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + } + } + }, + "HttpScaleRule": { + "description": "Container App container Custom scaling rule.", + "type": "object", + "properties": { + "metadata": { + "description": "Metadata properties to describe http scale rule.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "auth": { + "description": "Authentication secrets for the custom scale rule.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleAuth" + }, + "x-ms-identifiers": [ + "triggerParameter" + ] + } + } + }, + "QueueScaleRule": { + "description": "Container App container Azure Queue based scaling rule.", + "type": "object", + "properties": { + "queueName": { + "description": "Queue name.", + "type": "string" + }, + "queueLength": { + "format": "int32", + "description": "Queue length.", + "type": "integer" + }, + "auth": { + "description": "Authentication secrets for the queue scale rule.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleAuth" + }, + "x-ms-identifiers": [ + "triggerParameter" + ] + } + } + }, + "Scale": { + "description": "Container App scaling configurations.", + "type": "object", + "properties": { + "minReplicas": { + "format": "int32", + "description": "Optional. Minimum number of container replicas.", + "type": "integer" + }, + "maxReplicas": { + "format": "int32", + "description": "Optional. Maximum number of container replicas. Defaults to 10 if not set.", + "type": "integer" + }, + "rules": { + "description": "Scaling rules.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRule" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "ScaleRule": { + "description": "Container App container scaling rule.", + "type": "object", + "properties": { + "name": { + "description": "Scale Rule Name", + "type": "string" + }, + "azureQueue": { + "$ref": "#/definitions/QueueScaleRule", + "description": "Azure Queue based scaling." + }, + "custom": { + "$ref": "#/definitions/CustomScaleRule", + "description": "Custom scale rule." + }, + "http": { + "$ref": "#/definitions/HttpScaleRule", + "description": "HTTP requests based scaling." + } + } + }, + "ScaleRuleAuth": { + "description": "Auth Secrets for Container App Scale Rule", + "type": "object", + "properties": { + "secretRef": { + "description": "Name of the Container App secret from which to pull the auth params.", + "type": "string" + }, + "triggerParameter": { + "description": "Trigger Parameter that uses the secret", + "type": "string" + } + } + }, + "Secret": { + "description": "Secret definition.", + "type": "object", + "properties": { + "name": { + "description": "Secret Name.", + "type": "string" + }, + "value": { + "description": "Secret Value.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "Template": { + "description": "Container App versioned application definition.\nDefines the desired state of an immutable revision.\nAny changes to this section Will result in a new revision being created", + "type": "object", + "properties": { + "revisionSuffix": { + "description": "User friendly suffix that is appended to the revision name", + "type": "string" + }, + "containers": { + "description": "List of container definitions for the Container App.", + "type": "array", + "items": { + "$ref": "#/definitions/Container" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "scale": { + "$ref": "#/definitions/Scale", + "description": "Scaling properties for the Container App." + }, + "volumes": { + "description": "List of volume definitions for the Container App.", + "type": "array", + "items": { + "$ref": "#/definitions/Volume" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "Volume": { + "description": "Volume definitions for the Container App.", + "type": "object", + "properties": { + "name": { + "description": "Volume name.", + "type": "string" + }, + "storageType": { + "description": "Storage type for the volume. If not provided, use EmptyDir.", + "enum": [ + "AzureFile", + "EmptyDir" + ], + "type": "string", + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true + } + }, + "storageName": { + "description": "Name of storage resource. No need to provide for EmptyDir.", + "type": "string" + } + } + }, + "VolumeMount": { + "description": "Volume mount for the Container App.", + "type": "object", + "properties": { + "volumeName": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "mountPath": { + "description": "Path within the container at which the volume should be mounted.Must not contain ':'.", + "type": "string" + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json new file mode 100644 index 000000000000..080cb2828930 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json @@ -0,0 +1,866 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps": { + "get": { + "tags": [ + "ContainerApps" + ], + "summary": "Get the Container Apps in a given subscription.", + "operationId": "ContainerApps_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerAppCollection" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps by subscription": { + "$ref": "./examples/ContainerApps_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps": { + "get": { + "tags": [ + "ContainerApps" + ], + "summary": "Get the Container Apps in a given resource group.", + "operationId": "ContainerApps_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerAppCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps by resource group": { + "$ref": "./examples/ContainerApps_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}": { + "get": { + "tags": [ + "ContainerApps" + ], + "summary": "Get the properties of a Container App.", + "operationId": "ContainerApps_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App": { + "$ref": "./examples/ContainerApps_Get.json" + } + } + }, + "put": { + "tags": [ + "ContainerApps" + ], + "summary": "Create or update a Container App.", + "description": "Description for Create or update a Container App.", + "operationId": "ContainerApps_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "containerAppEnvelope", + "in": "body", + "description": "Properties used to create a container app", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No change performed on the Container App.", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + "201": { + "description": "Container App create or update has been started.", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Container App": { + "$ref": "./examples/ContainerApps_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "ContainerApps" + ], + "summary": "Delete a Container App.", + "description": "Description for Delete a Container App.", + "operationId": "ContainerApps_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App deleted successfully." + }, + "202": { + "description": "Delete operation is in progress." + }, + "204": { + "description": "Container App does not exist." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App": { + "$ref": "./examples/ContainerApps_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "ContainerApps" + ], + "summary": "Update properties of a Container App", + "description": "Patches a Container App using JSON Merge Patch", + "operationId": "ContainerApps_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "containerAppEnvelope", + "in": "body", + "required": true, + "description": "Properties of a Container App that need to be updated", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Patch operation is in progress." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Container App": { + "$ref": "./examples/ContainerApps_Patch.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis": { + "post": { + "tags": [ + "ContainerApps" + ], + "summary": "Analyzes a custom hostname for a Container App", + "operationId": "ContainerApps_ListCustomHostNameAnalysis", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "customHostname", + "in": "query", + "description": "Custom hostname.", + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomHostnameAnalysisResult" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Analyze Custom Hostname": { + "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysis.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/listSecrets": { + "post": { + "tags": [ + "ContainerApps" + ], + "summary": "List secrets for a container app", + "operationId": "ContainerApps_ListSecrets", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecretsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps Secrets": { + "$ref": "./examples/ContainerApps_ListSecrets.json" + } + } + } + } + }, + "definitions": { + "Configuration": { + "description": "Non versioned Container App configuration properties that define the mutable settings of a Container app", + "type": "object", + "properties": { + "secrets": { + "description": "Collection of secrets used by a Container app", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "activeRevisionsMode": { + "description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\nMultiple: multiple revisions can be active.Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.", + "enum": [ + "multiple", + "single" + ], + "type": "string", + "x-ms-enum": { + "name": "ActiveRevisionsMode", + "modelAsString": true + } + }, + "ingress": { + "$ref": "#/definitions/Ingress", + "description": "Ingress configurations." + }, + "registries": { + "description": "Collection of private container registry credentials for containers used by the Container app", + "type": "array", + "items": { + "$ref": "#/definitions/RegistryCredentials" + }, + "x-ms-identifiers": [ + "server" + ] + }, + "dapr": { + "$ref": "#/definitions/Dapr", + "description": "Dapr configuration for the Container App." + } + } + }, + "ContainerApp": { + "description": "Container App.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "identity": { + "description": "managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.", + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + }, + "properties": { + "description": "ContainerApp resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the Container App.", + "enum": [ + "InProgress", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ContainerAppProvisioningState", + "modelAsString": true + } + }, + "managedEnvironmentId": { + "description": "Resource ID of the Container App's environment.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "latestRevisionName": { + "description": "Name of the latest revision of the Container App.", + "type": "string", + "readOnly": true + }, + "latestRevisionFqdn": { + "description": "Fully Qualified Domain Name of the latest revision of the Container App.", + "type": "string", + "readOnly": true + }, + "customDomainVerificationId": { + "description": "Id used to verify domain name ownership", + "type": "string", + "readOnly": true + }, + "configuration": { + "$ref": "#/definitions/Configuration", + "description": "Non versioned Container App configuration properties." + }, + "template": { + "$ref": "./CommonDefinitions.json#/definitions/Template", + "description": "Container App versioned application definition." + }, + "outboundIPAddresses": { + "description": "Outbound IP Addresses for container app.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "x-ms-client-flatten": true + } + } + }, + "ContainerAppCollection": { + "description": "Container App collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerApp" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "Dapr": { + "description": "Container App Dapr configuration.", + "type": "object", + "properties": { + "enabled": { + "description": "Boolean indicating if the Dapr side car is enabled", + "type": "boolean" + }, + "appId": { + "description": "Dapr application identifier", + "type": "string" + }, + "appProtocol": { + "description": "Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http", + "enum": [ + "http", + "grpc" + ], + "type": "string", + "x-ms-enum": { + "name": "appProtocol", + "modelAsString": true + } + }, + "appPort": { + "format": "int32", + "description": "Tells Dapr which port your application is listening on", + "type": "integer" + } + } + }, + "Ingress": { + "description": "Container App Ingress configuration.", + "type": "object", + "properties": { + "fqdn": { + "description": "Hostname.", + "type": "string", + "readOnly": true + }, + "external": { + "description": "Bool indicating if app exposes an external http endpoint", + "default": false, + "type": "boolean" + }, + "targetPort": { + "format": "int32", + "description": "Target Port in containers for traffic from ingress", + "type": "integer" + }, + "transport": { + "description": "Ingress transport protocol", + "enum": [ + "auto", + "http", + "http2" + ], + "type": "string", + "x-ms-enum": { + "name": "IngressTransportMethod", + "modelAsString": true + } + }, + "traffic": { + "description": "Traffic weights for app's revisions", + "type": "array", + "items": { + "$ref": "#/definitions/TrafficWeight" + }, + "x-ms-identifiers": [ + "revisionName" + ] + }, + "customDomains": { + "description": "custom domain bindings for Container Apps' hostnames.", + "type": "array", + "items": { + "$ref": "#/definitions/CustomDomain" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "allowInsecure": { + "description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections", + "type": "boolean" + } + } + }, + "RegistryCredentials": { + "description": "Container App Private Registry", + "type": "object", + "properties": { + "server": { + "description": "Container Registry Server", + "type": "string" + }, + "username": { + "description": "Container Registry Username", + "type": "string" + }, + "passwordSecretRef": { + "description": "The name of the Secret that contains the registry login password", + "type": "string" + }, + "identity": { + "description": "A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'", + "type": "string" + } + } + }, + "SecretsCollection": { + "description": "Container App Secrets Collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerAppSecret" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "ContainerAppSecret": { + "description": "Container App Secret.", + "type": "object", + "properties": { + "name": { + "description": "Secret Name.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Secret Value.", + "type": "string", + "x-ms-secret": true, + "readOnly": true + } + } + }, + "TrafficWeight": { + "description": "Traffic weight assigned to a revision", + "type": "object", + "properties": { + "revisionName": { + "description": "Name of a revision", + "type": "string" + }, + "weight": { + "format": "int32", + "description": "Traffic weight assigned to a revision", + "type": "integer" + }, + "latestRevision": { + "description": "Indicates that the traffic weight belongs to a latest stable revision", + "default": false, + "type": "boolean" + }, + "label": { + "description": "Associates a traffic label with a revision", + "type": "string" + } + } + }, + "CustomDomain": { + "description": "Custom Domain of a Container App", + "type": "object", + "required": [ + "name", + "certificateId" + ], + "properties": { + "name": { + "description": "Hostname.", + "type": "string" + }, + "bindingType": { + "description": "Custom Domain binding type.", + "enum": [ + "Disabled", + "SniEnabled" + ], + "type": "string", + "x-ms-enum": { + "name": "bindingType", + "modelAsString": true + } + }, + "certificateId": { + "description": "Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment.", + "type": "string" + } + } + }, + "CustomHostnameAnalysisResult": { + "description": "Custom domain analysis.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "CustomHostnameAnalysisResult resource specific properties", + "type": "object", + "properties": { + "hostName": { + "description": "Host name that was analyzed", + "type": "string", + "readOnly": true + }, + "isHostnameAlreadyVerified": { + "description": "true if hostname is already verified; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "customDomainVerificationTest": { + "description": "DNS verification test result.", + "enum": [ + "Passed", + "Failed", + "Skipped" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DnsVerificationTestResult", + "modelAsString": false + } + }, + "customDomainVerificationFailureInfo": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse", + "description": "Raw failure information if DNS verification fails.", + "readOnly": true + }, + "hasConflictOnManagedEnvironment": { + "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "conflictingContainerAppResourceId": { + "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "type": "string", + "readOnly": true + }, + "cNameRecords": { + "description": "CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "txtRecords": { + "description": "TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "aRecords": { + "description": "A records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateCNameRecords": { + "description": "Alternate CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateTxtRecords": { + "description": "Alternate TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-ms-client-flatten": true + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json new file mode 100644 index 000000000000..86d35b503bca --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json @@ -0,0 +1,596 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions": { + "get": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Get the Revisions for a given Container App.", + "operationId": "ContainerAppsRevisions_ListRevisions", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App for which Revisions are needed.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply on the operation.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RevisionCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container App's revisions": { + "$ref": "./examples/Revisions_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Revision" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}": { + "get": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Get a revision of a Container App.", + "operationId": "ContainerAppsRevisions_GetRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Revision" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's revision": { + "$ref": "./examples/Revisions_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/activate": { + "post": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Activates a revision for a Container App", + "operationId": "ContainerAppsRevisions_ActivateRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App revision was activated" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Activate Container App's revision": { + "$ref": "./examples/Revisions_Activate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/deactivate": { + "post": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Deactivates a revision for a Container App", + "operationId": "ContainerAppsRevisions_DeactivateRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App revision was deactivated" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Deactivate Container App's revision": { + "$ref": "./examples/Revisions_Deactivate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{name}": { + "get": { + "tags": [ + "ContainerAppsRevisionReplicas" + ], + "summary": "Get a replica for a Container App Revision.", + "operationId": "ContainerAppsRevisionReplicas_GetReplica", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App Revision Replica.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Replica" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's revision replica": { + "$ref": "./examples/Replicas_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas": { + "get": { + "tags": [ + "ContainerAppsRevisionReplicas" + ], + "summary": "List replicas for a Container App Revision.", + "operationId": "ContainerAppsRevisionReplicas_ListReplicas", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ReplicaCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container App's replicas": { + "$ref": "./examples/Replicas_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/restart": { + "post": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Restarts a revision for a Container App", + "operationId": "ContainerAppsRevisions_RestartRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App revision was restarted" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Restart Container App's revision": { + "$ref": "./examples/Revisions_Restart.json" + } + } + } + } + }, + "definitions": { + "Revision": { + "description": "Container App Revision.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Revision resource specific properties", + "type": "object", + "properties": { + "createdTime": { + "format": "date-time", + "description": "Timestamp describing when the revision was created\nby controller", + "type": "string", + "readOnly": true + }, + "fqdn": { + "description": "Fully qualified domain name of the revision", + "type": "string", + "readOnly": true + }, + "template": { + "$ref": "./CommonDefinitions.json#/definitions/Template", + "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time", + "readOnly": true + }, + "active": { + "description": "Boolean describing if the Revision is Active", + "type": "boolean", + "readOnly": true + }, + "replicas": { + "format": "int32", + "description": "Number of pods currently running for this revision", + "type": "integer", + "readOnly": true + }, + "trafficWeight": { + "format": "int32", + "description": "Traffic weight assigned to this revision", + "type": "integer", + "readOnly": true + }, + "provisioningError": { + "description": "Optional Field - Platform Error Message", + "type": "string", + "readOnly": true + }, + "healthState": { + "description": "Current health State of the revision", + "enum": [ + "Healthy", + "Unhealthy", + "None" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "RevisionHealthState", + "modelAsString": true + } + }, + "provisioningState": { + "description": "Current provisioning State of the revision", + "enum": [ + "Provisioning", + "Provisioned", + "Failed", + "Deprovisioning", + "Deprovisioned" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "RevisionProvisioningState", + "modelAsString": true + } + } + }, + "x-ms-client-flatten": true + } + } + }, + "RevisionCollection": { + "description": "Container App Revisions collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Revision" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "Replica": { + "description": "Container App Revision Replica.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Replica resource specific properties", + "type": "object", + "properties": { + "createdTime": { + "type": "string", + "description": "Timestamp describing when the pod was created by controller", + "format": "date-time", + "readOnly": true + }, + "containers": { + "description": "The containers collection under a replica.", + "type": "array", + "items": { + "$ref": "#/definitions/ReplicaContainer" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "x-ms-client-flatten": true + } + } + }, + "ReplicaCollection": { + "description": "Container App Revision Replicas collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Replica" + } + } + } + }, + "ReplicaContainer": { + "description": "Container object under Container App Revision Replica.", + "type": "object", + "properties": { + "name": { + "description": "The Name of the Container", + "type": "string" + }, + "containerId": { + "description": "The Id of the Container", + "type": "string" + }, + "ready": { + "description": "The container ready status", + "type": "boolean" + }, + "started": { + "description": "The container start status", + "type": "boolean" + }, + "restartCount": { + "format": "int32", + "description": "The container restart count", + "type": "integer" + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json new file mode 100644 index 000000000000..e66984b2a170 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json @@ -0,0 +1,428 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents": { + "get": { + "tags": [ + "DaprComponents" + ], + "summary": "Get the Dapr Components for a managed environment.", + "operationId": "DaprComponents_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprComponentsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Dapr Components": { + "$ref": "./examples/DaprComponents_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}": { + "get": { + "tags": [ + "DaprComponents" + ], + "summary": "Get a dapr component.", + "operationId": "DaprComponents_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprComponent" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Dapr Component": { + "$ref": "./examples/DaprComponents_Get.json" + } + } + }, + "put": { + "tags": [ + "DaprComponents" + ], + "summary": "Creates or updates a Dapr Component.", + "description": "Creates or updates a Dapr Component in a Managed Environment.", + "operationId": "DaprComponents_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "name": "daprComponentEnvelope", + "in": "body", + "description": "Configuration details of the Dapr Component.", + "required": true, + "schema": { + "$ref": "#/definitions/DaprComponent" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprComponent" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "x-ms-examples": { + "Create or update dapr component": { + "$ref": "./examples/DaprComponents_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "DaprComponents" + ], + "summary": "Delete a Dapr Component.", + "description": "Delete a Dapr Component from a Managed Environment.", + "operationId": "DaprComponents_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "204": { + "description": "Environment does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete dapr component": { + "$ref": "./examples/DaprComponents_Delete.json" + } + }, + "x-ms-long-running-operation": false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets": { + "post": { + "tags": [ + "DaprComponents" + ], + "summary": "List secrets for a dapr component", + "operationId": "DaprComponents_ListSecrets", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprSecretsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps Secrets": { + "$ref": "./examples/DaprComponents_ListSecrets.json" + } + } + } + } + }, + "definitions": { + "DaprComponentsCollection": { + "description": "Dapr Components ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/DaprComponent" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "DaprComponent": { + "description": "Dapr Component.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Dapr Component resource specific properties", + "type": "object", + "properties": { + "componentType": { + "description": "Component type", + "type": "string" + }, + "version": { + "description": "Component version", + "type": "string" + }, + "ignoreErrors": { + "description": "Boolean describing if the component errors are ignores", + "type": "boolean" + }, + "initTimeout": { + "description": "Initialization timeout", + "type": "string" + }, + "secrets": { + "description": "Collection of secrets used by a Dapr component", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "metadata": { + "description": "Component metadata", + "type": "array", + "items": { + "$ref": "#/definitions/DaprMetadata" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "scopes": { + "description": "Names of container apps that can use this Dapr component", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-ms-client-flatten": true + } + } + }, + "DaprMetadata": { + "description": "Dapr component metadata.", + "type": "object", + "properties": { + "name": { + "description": "Metadata property name.", + "type": "string" + }, + "value": { + "description": "Metadata property value.", + "type": "string" + }, + "secretRef": { + "description": "Name of the Dapr Component secret from which to pull the metadata property value.", + "type": "string" + } + } + }, + "DaprSecretsCollection": { + "description": "Dapr component Secrets Collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of secrets used by a Dapr component", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json new file mode 100644 index 000000000000..be72ebba6c3b --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json @@ -0,0 +1,140 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.App/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available RP operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AvailableOperations" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all operations": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "AvailableOperations": { + "description": "Available operations of the service", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/OperationDetail" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "OperationDetail": { + "description": "Operation detail payload", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "Display of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + } + } + }, + "OperationDisplay": { + "description": "Operation display payload", + "type": "object", + "properties": { + "provider": { + "description": "Resource provider of the operation", + "type": "string" + }, + "resource": { + "description": "Resource of the operation", + "type": "string" + }, + "operation": { + "description": "Localized friendly name for the operation", + "type": "string" + }, + "description": { + "description": "Localized friendly description for the operation", + "type": "string" + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json new file mode 100644 index 000000000000..c3b5b73fedf8 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json @@ -0,0 +1,986 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments": { + "get": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Get all Environments for a subscription.", + "description": "Get all Managed Environments for a subscription.", + "operationId": "ManagedEnvironments_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List environments by subscription": { + "$ref": "./examples/ManagedEnvironments_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments": { + "get": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Get all the Environments in a resource group.", + "description": "Get all the Managed Environments in a resource group.", + "operationId": "ManagedEnvironments_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List environments by resource group": { + "$ref": "./examples/ManagedEnvironments_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}": { + "get": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Get the properties of a Managed Environment.", + "description": "Get the properties of a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironments_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get environments by name": { + "$ref": "./examples/ManagedEnvironments_Get.json" + } + } + }, + "put": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Creates or updates a Managed Environment.", + "description": "Creates or updates a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironments_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "environmentEnvelope", + "in": "body", + "description": "Configuration details of the Environment.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create environments": { + "$ref": "./examples/ManagedEnvironments_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Delete a Managed Environment.", + "description": "Delete a Managed Environment if it does not have any container apps.", + "operationId": "ManagedEnvironments_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "202": { + "description": "Delete operation is in progress" + }, + "204": { + "description": "Environment does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete environment by name": { + "$ref": "./examples/ManagedEnvironments_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Update Managed Environment's properties.", + "description": "Patches a Managed Environment using JSON Merge Patch", + "operationId": "ManagedEnvironments_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "environmentEnvelope", + "in": "body", + "description": "Configuration details of the Environment.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Patch operation is in progress." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Managed Environment": { + "$ref": "./examples/ManagedEnvironments_Patch.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates": { + "get": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Get the Certificates in a given managed environment.", + "operationId": "Certificates_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "managedEnvironmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CertificateCollection" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Certificates by Managed Environment": { + "$ref": "./examples/Certificates_ListByManagedEnvironment.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}": { + "get": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Get the specified Certificate.", + "operationId": "Certificates_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "managedEnvironmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Certificate": { + "$ref": "./examples/Certificate_Get.json" + } + } + }, + "put": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Create or Update a Certificate.", + "operationId": "Certificates_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "managedEnvironmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "name": "certificateEnvelope", + "in": "body", + "description": "Certificate to be created or updated", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Certificate": { + "$ref": "./examples/Certificate_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Deletes the specified Certificate.", + "operationId": "Certificates_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "managedEnvironmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "204": { + "description": "Certificate does not exist" + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Certificate": { + "$ref": "./examples/Certificate_Delete.json" + } + } + }, + "patch": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Update properties of a certificate", + "description": "Patches a certificate. Currently only patching of tags is supported", + "operationId": "Certificates_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "managedEnvironmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "name": "certificateEnvelope", + "in": "body", + "required": true, + "description": "Properties of a certificate that need to be updated", + "schema": { + "$ref": "#/definitions/CertificatePatch" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App updated successfully.", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Certificate": { + "$ref": "./examples/Certificates_Patch.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/checkNameAvailability": { + "post": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Checks the resource name availability.", + "description": "Checks if resource name is available.", + "operationId": "Namespaces_CheckNameAvailability", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "managedEnvironmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "checkNameAvailabilityRequest", + "in": "body", + "description": "The check name availability request.", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "ContainerApps_CheckNameAvailability": { + "$ref": "./examples/ContainerApps_CheckNameAvailability.json" + }, + "Certificates_CheckNameAvailability": { + "$ref": "./examples/Certificates_CheckNameAvailability.json" + } + } + } + } + }, + "definitions": { + "AppLogsConfiguration": { + "description": "Configuration of application logs", + "type": "object", + "properties": { + "destination": { + "description": "Logs destination", + "type": "string" + }, + "logAnalyticsConfiguration": { + "description": "Log Analytics configuration", + "$ref": "#/definitions/LogAnalyticsConfiguration" + } + } + }, + "VnetConfiguration": { + "type": "object", + "description": "Configuration properties for apps environment to join a Virtual Network", + "properties": { + "internal": { + "type": "boolean", + "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource, must provide ControlPlaneSubnetResourceId and AppSubnetResourceId if enabling this property", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "infrastructureSubnetId": { + "type": "string", + "description": "Resource ID of a subnet for infrastructure components. This subnet must be in the same VNET as the subnet defined in runtimeSubnetId. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "runtimeSubnetId": { + "type": "string", + "description": "Resource ID of a subnet that Container App containers are injected into. This subnet must be in the same VNET as the subnet defined in infrastructureSubnetId. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "dockerBridgeCidr": { + "type": "string", + "description": "CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "platformReservedCidr": { + "type": "string", + "description": "IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "platformReservedDnsIP": { + "type": "string", + "description": " An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server.", + "x-ms-mutability": [ + "create", + "read" + ] + } + } + }, + "ManagedEnvironment": { + "description": "An environment for hosting container apps", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Managed environment resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the Environment.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Waiting", + "InitializationInProgress", + "InfrastructureSetupInProgress", + "InfrastructureSetupComplete", + "ScheduledForDelete", + "UpgradeRequested", + "UpgradeFailed" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "EnvironmentProvisioningState", + "modelAsString": true + } + }, + "daprAIInstrumentationKey": { + "type": "string", + "description": "Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry", + "x-ms-mutability": [ + "create", + "read" + ], + "x-ms-secret": true + }, + "daprAIConnectionString": { + "type": "string", + "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", + "x-ms-mutability": [ + "create", + "read" + ], + "x-ms-secret": true + }, + "vnetConfiguration": { + "description": "Vnet configuration for the environment", + "$ref": "#/definitions/VnetConfiguration" + }, + "deploymentErrors": { + "description": "Any errors that occurred during deployment or deployment validation", + "type": "string", + "readOnly": true + }, + "defaultDomain": { + "description": "Default Domain Name for the cluster", + "type": "string", + "readOnly": true + }, + "staticIp": { + "description": "Static IP of the Environment", + "type": "string", + "readOnly": true + }, + "appLogsConfiguration": { + "$ref": "#/definitions/AppLogsConfiguration", + "description": "Cluster configuration which enables the log daemon to export\napp logs to a destination. Currently only \"log-analytics\" is\nsupported" + }, + "zoneRedundant": { + "description": "Whether or not this Managed Environment is zone-redundant.", + "type": "boolean", + "x-ms-mutability": [ + "create", + "read" + ] + } + }, + "x-ms-client-flatten": true + } + } + }, + "ManagedEnvironmentsCollection": { + "description": "Collection of Environments", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "LogAnalyticsConfiguration": { + "description": "Log analytics configuration", + "type": "object", + "properties": { + "customerId": { + "description": "Log analytics customer id", + "type": "string" + }, + "sharedKey": { + "description": "Log analytics customer key", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "Certificate": { + "description": "Certificate used for Custom Domain bindings of Container Apps in a Managed Environment", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Certificate resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the certificate.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "DeleteFailed", + "Pending" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "CertificateProvisioningState", + "modelAsString": true + } + }, + "password": { + "description": "Certificate password.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "subjectName": { + "description": "Subject name of the certificate.", + "type": "string", + "readOnly": true + }, + "value": { + "format": "byte", + "description": "PFX or PEM blob", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "issuer": { + "description": "Certificate issuer.", + "type": "string", + "readOnly": true + }, + "issueDate": { + "format": "date-time", + "description": "Certificate issue Date.", + "type": "string", + "readOnly": true + }, + "expirationDate": { + "format": "date-time", + "description": "Certificate expiration date.", + "type": "string", + "readOnly": true + }, + "thumbprint": { + "description": "Certificate thumbprint.", + "type": "string", + "readOnly": true + }, + "valid": { + "description": "Is the certificate valid?.", + "type": "boolean", + "readOnly": true + }, + "publicKeyHash": { + "description": "Public key hash.", + "type": "string", + "readOnly": true + } + } + } + }, + "x-ms-client-flatten": true + }, + "CertificateCollection": { + "description": "Collection of Certificates.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "CertificatePatch": { + "description": "A certificate to update", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json new file mode 100644 index 000000000000..d87c6a2788bb --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json @@ -0,0 +1,321 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages": { + "get": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Get all storages for a managedEnvironment.", + "description": "Get all storages for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "envName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStoragesCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List environments storages by subscription": { + "$ref": "./examples/ManagedEnvironmentsStorages_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}": { + "get": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Get storage for a managedEnvironment.", + "description": "Get storage for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "envName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "get a environments storage properties by subscription": { + "$ref": "./examples/ManagedEnvironmentsStorages_Get.json" + } + } + }, + "put": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Create or update storage for a managedEnvironment.", + "description": "Create or update storage for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "envName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "name": "storageEnvelope", + "in": "body", + "description": "Configuration details of storage.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update environments storage": { + "$ref": "./examples/ManagedEnvironmentsStorages_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Delete storage for a managedEnvironment.", + "description": "Delete storage for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "envName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "Storage does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List environments storages by subscription": { + "$ref": "./examples/ManagedEnvironmentsStorages_Delete.json" + } + } + } + } + }, + "definitions": { + "AzureFileProperties": { + "description": "Azure File Properties.", + "type": "object", + "properties": { + "accountName": { + "description": "Storage account name for azure file.", + "type": "string" + }, + "accountKey": { + "description": "Storage account key for azure file.", + "type": "string", + "x-ms-secret": true + }, + "accessMode": { + "description": "Access mode for storage", + "enum": [ + "ReadOnly", + "ReadWrite" + ], + "type": "string", + "x-ms-enum": { + "name": "AccessMode", + "modelAsString": true + } + }, + "shareName": { + "description": "Azure file share name.", + "type": "string" + } + } + }, + "ManagedEnvironmentStoragesCollection": { + "description": "Collection of Storage for Environments", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of storage resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + } + } + }, + "ManagedEnvironmentStorage": { + "description": "Storage resource for managedEnvironment.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Storage properties", + "type": "object", + "properties": { + "azureFile": { + "$ref": "#/definitions/AzureFileProperties", + "description": "Azure file properties" + } + } + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json new file mode 100644 index 000000000000..8af4d61f1abd --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json @@ -0,0 +1,429 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-03-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols": { + "get": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Get the Container App SourceControls in a given resource group.", + "operationId": "ContainerAppsSourceControls_ListByContainerApp", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SourceControlCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List App's Source Controls": { + "$ref": "./examples/SourceControls_ListByContainer.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{name}": { + "get": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Get a SourceControl of a Container App.", + "operationId": "ContainerAppsSourceControls_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App SourceControl.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's SourceControl": { + "$ref": "./examples/SourceControls_Get.json" + } + } + }, + "put": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Create or update the SourceControl for a Container App.", + "description": "Description for Create or update the SourceControl for a Container App.", + "operationId": "ContainerAppsSourceControls_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App SourceControl.", + "required": true, + "type": "string" + }, + { + "name": "sourceControlEnvelope", + "in": "body", + "description": "Properties used to create a Container App SourceControl", + "required": true, + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No change performed on the Container App.", + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + "202": { + "description": "Container App create or update has been started.", + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Container App SourceControl": { + "$ref": "./examples/SourceControls_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Delete a Container App SourceControl.", + "description": "Description for Delete a Container App SourceControl.", + "operationId": "ContainerAppsSourceControls_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App SourceControl.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App deleted successfully." + }, + "202": { + "description": "Delete operation is in progress." + }, + "204": { + "description": "Container App SourceControl does not exist." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App SourceControl": { + "$ref": "./examples/SourceControls_Delete.json" + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "SourceControl": { + "description": "Container App SourceControl.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "SourceControl resource specific properties", + "type": "object", + "properties": { + "operationState": { + "description": "Current provisioning State of the operation", + "enum": [ + "InProgress", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "SourceControlOperationState", + "modelAsString": true + } + }, + "repoUrl": { + "description": "The repo url which will be integrated to ContainerApp.", + "type": "string" + }, + "branch": { + "description": "The branch which will trigger the auto deployment", + "type": "string" + }, + "githubActionConfiguration": { + "$ref": "#/definitions/GithubActionConfiguration", + "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time" + } + }, + "x-ms-client-flatten": true + } + } + }, + "GithubActionConfiguration": { + "description": "Configuration properties that define the mutable settings of a Container App SourceControl", + "type": "object", + "properties": { + "registryInfo": { + "$ref": "#/definitions/RegistryInfo", + "description": "Registry configurations." + }, + "azureCredentials": { + "$ref": "#/definitions/AzureCredentials", + "description": "AzureCredentials configurations." + }, + "contextPath": { + "description": "Context path", + "type": "string" + }, + "image": { + "description": "Image name", + "type": "string" + }, + "publishType": { + "description": "Code or Image", + "type": "string" + }, + "os": { + "description": "Operation system", + "type": "string" + }, + "runtimeStack": { + "description": "Runtime stack", + "type": "string" + }, + "runtimeVersion": { + "description": "Runtime version", + "type": "string" + } + } + }, + "RegistryInfo": { + "description": "Container App registry information.", + "type": "object", + "properties": { + "registryUrl": { + "description": "registry server Url.", + "type": "string" + }, + "registryUserName": { + "description": "registry username.", + "type": "string" + }, + "registryPassword": { + "description": "registry secret.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "AzureCredentials": { + "description": "Container App credentials.", + "type": "object", + "properties": { + "clientId": { + "description": "Client Id.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "clientSecret": { + "description": "Client Secret.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "tenantId": { + "description": "Tenant Id.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "subscriptionId": { + "description": "Subscription Id.", + "type": "string" + } + } + }, + "SourceControlCollection": { + "description": "SourceControl collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/SourceControl" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json new file mode 100644 index 000000000000..3ff06317e553 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "name": "current", + "api-version": "2022-03-01", + "authConfigEnvelope": { + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/authconfigs/current", + "name": "current", + "type": "Microsoft.App/containerapps/authconfigs", + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json new file mode 100644 index 000000000000..63437a757c0c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "name": "current", + "api-version": "2022-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json new file mode 100644 index 000000000000..35ce520b8852 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "name": "current", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current", + "name": "current", + "type": "Microsoft.App/containerapps/authconfigs", + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json new file mode 100644 index 000000000000..d7ca69828ff7 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current", + "name": "current", + "type": "Microsoft.App/containerapps/authconfigs", + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json new file mode 100644 index 000000000000..49b28fc53d60 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "managedEnvironmentName": "testcontainerenv", + "name": "certificate-firendly-name", + "api-version": "2022-03-01", + "certificateEnvelope": { + "location": "East US", + "properties": { + "password": "private key password", + "value": "PFX-or-PEM-blob" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json new file mode 100644 index 000000000000..7e25d26b39d7 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "managedEnvironmentName": "testcontainerenv", + "name": "certificate-firendly-name", + "api-version": "2022-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json new file mode 100644 index 000000000000..403fdb7d21ba --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "managedEnvironmentName": "testcontainerenv", + "name": "certificate-firendly-name", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json new file mode 100644 index 000000000000..2788c6f66c02 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-03-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "managedEnvironmentName": "testcontainerenv", + "checkNameAvailabilityRequest": { + "name": "testcertificatename", + "type": "Microsoft.App/managedEnvironments/certificates" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json new file mode 100644 index 000000000000..c92921d332d4 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "managedEnvironmentName": "testcontainerenv", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + }, + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json new file mode 100644 index 000000000000..1b92d47538e1 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "managedEnvironmentName": "testcontainerenv", + "name": "certificate-firendly-name", + "api-version": "2022-03-01", + "certificateEnvelope": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json new file mode 100644 index 000000000000..9ce9037bc6b3 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-03-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "managedEnvironmentName": "testcontainerenv", + "checkNameAvailabilityRequest": { + "name": "testcappname", + "type": "Microsoft.App/containerApps" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json new file mode 100644 index 000000000000..f31bfa2e64d5 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json @@ -0,0 +1,260 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testcontainerApp0", + "api-version": "2022-03-01", + "containerAppEnvelope": { + "location": "East US", + "properties": { + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "configuration": { + "ingress": { + "external": true, + "targetPort": 3000, + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my-other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 100, + "revisionName": "testcontainerApp0-ab1234", + "label": "production" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http" + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v1", + "name": "testcontainerApp0", + "probes": [ + { + "type": "liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "custom": { + "type": "http", + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my-other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http" + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "probes": [ + { + "type": "liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "InProgress", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http" + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "probes": [ + { + "type": "liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json new file mode 100644 index 000000000000..20b1076be7ba --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testWorkerApp0", + "api-version": "2022-03-01" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-03-01" + } + }, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json new file mode 100644 index 000000000000..c37083ccdab7 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testcontainerApp0", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my--other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http" + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "404": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json new file mode 100644 index 000000000000..cde745ea2628 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my--other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http" + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json new file mode 100644 index 000000000000..e91c1ab46fe8 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my--other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http" + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json new file mode 100644 index 000000000000..dd86259c50cf --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "customHostname": "my.name.corp", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "properties": { + "hostName": "my.name.corp", + "isHostnameAlreadyVerified": true, + "customDomainVerificationTest": "Passed", + "customDomainVerificationFailureInfo": {}, + "hasConflictOnManagedEnvironment": false, + "conflictingContainerAppResourceId": "", + "cNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "txtRecords": [ + "txtRecord1", + "txtRecord2" + ], + "aRecords": [ + "aRecord1", + "aRecord2" + ], + "alternateCNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "alternateTxtRecords": [ + "txtRecord1", + "txtRecord2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json new file mode 100644 index 000000000000..9e14e9f54148 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testcontainerApp0", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "secret1" + }, + { + "name": "secret2" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json new file mode 100644 index 000000000000..96736f870fd9 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "testcontainerApp0", + "api-version": "2022-03-01", + "containerAppEnvelope": { + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "configuration": { + "ingress": { + "external": true, + "targetPort": 3000, + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my-other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 100, + "revisionName": "testcontainerApp0-ab1234", + "label": "production" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http" + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v1", + "name": "testcontainerApp0", + "probes": [ + { + "type": "liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "custom": { + "type": "http", + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-03-01" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json new file mode 100644 index 000000000000..b110ceaf3d33 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "name": "reddog", + "api-version": "2022-03-01", + "daprComponentEnvelope": { + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey", + "value": "keyvalue" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json new file mode 100644 index 000000000000..a7df7688e321 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "name": "reddog", + "api-version": "2022-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json new file mode 100644 index 000000000000..fff7f1076301 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "name": "reddog", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json new file mode 100644 index 000000000000..548830281940 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json new file mode 100644 index 000000000000..3d035869e98a --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "name": "reddog", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "secret1" + }, + { + "name": "secret2" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json new file mode 100644 index 000000000000..057ef675c2fe --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "envName": "managedEnv", + "name": "jlaw-demo1", + "api-version": "2022-03-01", + "storageEnvelope": { + "properties": { + "azureFile": { + "accountName": "account1", + "accountKey": "key", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json new file mode 100644 index 000000000000..8b57652cd4a2 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "envName": "managedEnv", + "name": "jlaw-demo1", + "api-version": "2022-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json new file mode 100644 index 000000000000..c0173bcc426a --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "envName": "managedEnv", + "name": "jlaw-demo1", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json new file mode 100644 index 000000000000..24a69bed4e83 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "envName": "managedEnv", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json new file mode 100644 index 000000000000..5b9882c1d245 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "name": "testcontainerenv", + "api-version": "2022-03-01", + "environmentEnvelope": { + "location": "East US", + "properties": { + "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/", + "appLogsConfiguration": { + "logAnalyticsConfiguration": { + "customerId": "string", + "sharedKey": "string" + } + }, + "zoneRedundant": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv", + "name": "testcontainerenv", + "type": "Microsoft.App/managedEnvironments", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "testcontainerenv.k4apps.io", + "staticIp": "1.2.3.4", + "appLogsConfiguration": { + "logAnalyticsConfiguration": { + "customerId": "string" + } + }, + "zoneRedundant": true + } + } + }, + "201": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv", + "name": "testcontainerenv", + "type": "Microsoft.App/managedEnvironments", + "location": "East US", + "properties": { + "provisioningState": "InitializationInProgress", + "deploymentErrors": null, + "defaultDomain": "testcontainerenv.k4apps.io", + "staticIp": "1.2.3.4", + "appLogsConfiguration": { + "logAnalyticsConfiguration": { + "customerId": "string" + } + }, + "zoneRedundant": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json new file mode 100644 index 000000000000..2e30ecf918b3 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "name": "examplekenv", + "api-version": "2022-03-01", + "location": "East US" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json new file mode 100644 index 000000000000..3c4e18f878f7 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "name": "jlaw-demo1", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "jlaw-demo1.k4apps.io", + "staticIp": "20.42.33.145", + "zoneRedundant": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json new file mode 100644 index 000000000000..4da67c51b15d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "jlaw-demo1.k4apps.io", + "staticIp": "20.42.33.145", + "appLogsConfiguration": null, + "zoneRedundant": true + } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/demo1", + "name": "demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "demo1.k4apps.io", + "staticIp": "52.142.21.61", + "appLogsConfiguration": null, + "zoneRedundant": true + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json new file mode 100644 index 000000000000..0a378aeb325b --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "jlaw-demo1.k4apps.io", + "staticIp": "20.42.33.145", + "appLogsConfiguration": null, + "zoneRedundant": true + } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.App/managedEnvironments/demo1", + "name": "demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "demo1.k4apps.io", + "staticIp": "52.142.21.61", + "appLogsConfiguration": null, + "zoneRedundant": true + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json new file mode 100644 index 000000000000..4ff0a27b6bca --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "name": "testcontainerenv", + "api-version": "2022-03-01", + "environmentEnvelope": { + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-03-01" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json new file mode 100644 index 000000000000..9362af77c82b --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Microsoft.App/containerApps/Read", + "display": { + "provider": "Microsoft Apps", + "resource": "Container App", + "operation": "Get Container App", + "description": "Get the properties of a Container App" + }, + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json new file mode 100644 index 000000000000..e22181d1ea4b --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "myapp", + "revisionName": "myapp--0wlqy09", + "name": "myapp--0wlqy09-5d9774cff-5wnd8", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8", + "name": "myapp--0wlqy09-5d9774cff-5wnd8", + "type": "Microsoft.Web/containerapps/revisions/replicas", + "properties": { + "createdTime": "2022-01-25T19:42:45Z", + "containers": [ + { + "name": "hello92", + "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", + "ready": true, + "started": true, + "restartCount": 0 + } + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json new file mode 100644 index 000000000000..bb35abdefe3d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "myapp", + "revisionName": "myapp--0wlqy09", + "api-version": "2021-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8", + "name": "myapp--0wlqy09-5d9774cff-5wnd8", + "type": "Microsoft.Web/containerapps/revisions/replicas", + "properties": { + "createdTime": "2022-01-25T19:42:45Z", + "containers": [ + { + "name": "hello92", + "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", + "ready": true, + "started": true, + "restartCount": 0 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json new file mode 100644 index 000000000000..2c9db2b0ed62 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "name": "testcontainerApp0-pjxhsye", + "api-version": "2022-03-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json new file mode 100644 index 000000000000..2c9db2b0ed62 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "name": "testcontainerApp0-pjxhsye", + "api-version": "2022-03-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json new file mode 100644 index 000000000000..3092e525c708 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "name": "testcontainerApp0-pjxhsye", + "api-version": "2021-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppcontainerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye", + "name": "testcontainerApp0-pjxhsye", + "type": "Microsoft.App/containerApps/revisions", + "properties": { + "createdTime": "2021-05-24T21:24:22+00:00", + "fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v2", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + }, + "active": true, + "replicas": 1 + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json new file mode 100644 index 000000000000..aed17be62c3c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "api-version": "2021-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye", + "name": "testcontainerApp0-pjxhsye", + "type": "Microsoft.App/containerApps/revisions", + "properties": { + "createdTime": "2021-05-24T21:24:22+00:00", + "fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerapps.k4apps.io", + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v2", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + }, + "active": true, + "replicas": 1 + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json new file mode 100644 index 000000000000..1bad2b7270cc --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testStaticSite0", + "name": "testcontainerApp0-pjxhsye", + "api-version": "2021-02-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json new file mode 100644 index 000000000000..82ef2efd6ef8 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "name": "current", + "api-version": "2022-03-01", + "sourceControlEnvelope": { + "properties": { + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg", + "registryPassword": "" + }, + "azureCredentials": { + "clientId": "", + "clientSecret": "", + "tenantId": "" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "operationState": "InProgress", + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + }, + "202": { + "headers": { + "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" + }, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "operationState": "InProgress", + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json new file mode 100644 index 000000000000..5264f49b4621 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "name": "current", + "api-version": "2022-03-01" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/14a787ee-c65f-462d-8a8b-897f69a2ab4f?api-version=2021-03-01" + } + }, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json new file mode 100644 index 000000000000..2e1fa372773c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "name": "current", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json new file mode 100644 index 000000000000..f263547e69d0 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + ], + "nextLink": null + } + } + } +} From 5e1015c1fc4f5a91b0555f5fdf0e1d31ec3ab840 Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:04:46 -0700 Subject: [PATCH 02/50] Updates readme --- specification/app/resource-manager/readme.md | 21 ++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 7b5749bee80b..5a4cf40a0302 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -26,15 +26,31 @@ These are the global settings for the app. ``` yaml openapi-type: arm -tag: package-2022-03 +tag: package-2022-05 ``` +### Tag: package-2022-05 + +These settings apply only when `--tag=package-2022-05` is specified on the command line. + +```yaml $(tag) == 'package-2022-05' +input-file: + - Microsoft.App/stable/2022-05-01/AuthConfigs.json + - Microsoft.App/stable/2022-05-01/CommonDefinitions.json + - Microsoft.App/stable/2022-05-01/ContainerApps.json + - Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json + - Microsoft.App/stable/2022-05-01/DaprComponents.json + - Microsoft.App/stable/2022-05-01/Global.json + - Microsoft.App/stable/2022-05-01/ManagedEnvironments.json + - Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json + - Microsoft.App/stable/2022-05-01/SourceControls.json +``` ### Tag: package-2022-03 These settings apply only when `--tag=package-2022-03` is specified on the command line. -```yaml $(tag) == 'package-2022-03' +``` yaml $(tag) == 'package-2022-03' input-file: - Microsoft.App/stable/2022-03-01/AuthConfigs.json - Microsoft.App/stable/2022-03-01/CommonDefinitions.json @@ -53,6 +69,7 @@ directive: from: AuthConfigs.json reason: Use disableWWWAuthenticate to align with AuthSettingV2 ``` + ### Tag: package-2022-01-01-preview These settings apply only when `--tag=package-2022-01-01-preview` is specified on the command line. From bbd44410581ae5aed9ef0dcb3ad8f22a6c0dd670 Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:04:48 -0700 Subject: [PATCH 03/50] Updates API version in new specs and examples --- .../Microsoft.App/stable/2022-05-01/AuthConfigs.json | 2 +- .../Microsoft.App/stable/2022-05-01/CommonDefinitions.json | 2 +- .../Microsoft.App/stable/2022-05-01/ContainerApps.json | 2 +- .../stable/2022-05-01/ContainerAppsRevisions.json | 2 +- .../Microsoft.App/stable/2022-05-01/DaprComponents.json | 2 +- .../Microsoft.App/stable/2022-05-01/Global.json | 2 +- .../Microsoft.App/stable/2022-05-01/ManagedEnvironments.json | 2 +- .../stable/2022-05-01/ManagedEnvironmentsStorages.json | 2 +- .../Microsoft.App/stable/2022-05-01/SourceControls.json | 2 +- .../2022-05-01/examples/AuthConfigs_CreateOrUpdate.json | 2 +- .../stable/2022-05-01/examples/AuthConfigs_Delete.json | 2 +- .../stable/2022-05-01/examples/AuthConfigs_Get.json | 2 +- .../2022-05-01/examples/AuthConfigs_ListByContainer.json | 2 +- .../2022-05-01/examples/Certificate_CreateOrUpdate.json | 2 +- .../stable/2022-05-01/examples/Certificate_Delete.json | 2 +- .../stable/2022-05-01/examples/Certificate_Get.json | 2 +- .../examples/Certificates_CheckNameAvailability.json | 2 +- .../examples/Certificates_ListByManagedEnvironment.json | 2 +- .../stable/2022-05-01/examples/Certificates_Patch.json | 2 +- .../examples/ContainerApps_CheckNameAvailability.json | 2 +- .../2022-05-01/examples/ContainerApps_CreateOrUpdate.json | 2 +- .../stable/2022-05-01/examples/ContainerApps_Delete.json | 4 ++-- .../stable/2022-05-01/examples/ContainerApps_Get.json | 2 +- .../examples/ContainerApps_ListByResourceGroup.json | 2 +- .../2022-05-01/examples/ContainerApps_ListBySubscription.json | 2 +- .../examples/ContainerApps_ListCustomHostNameAnalysis.json | 2 +- .../stable/2022-05-01/examples/ContainerApps_ListSecrets.json | 2 +- .../stable/2022-05-01/examples/ContainerApps_Patch.json | 4 ++-- .../2022-05-01/examples/DaprComponents_CreateOrUpdate.json | 2 +- .../stable/2022-05-01/examples/DaprComponents_Delete.json | 2 +- .../stable/2022-05-01/examples/DaprComponents_Get.json | 2 +- .../stable/2022-05-01/examples/DaprComponents_List.json | 2 +- .../2022-05-01/examples/DaprComponents_ListSecrets.json | 2 +- .../examples/ManagedEnvironmentsStorages_CreateOrUpdate.json | 2 +- .../examples/ManagedEnvironmentsStorages_Delete.json | 2 +- .../2022-05-01/examples/ManagedEnvironmentsStorages_Get.json | 2 +- .../2022-05-01/examples/ManagedEnvironmentsStorages_List.json | 2 +- .../examples/ManagedEnvironments_CreateOrUpdate.json | 2 +- .../2022-05-01/examples/ManagedEnvironments_Delete.json | 2 +- .../stable/2022-05-01/examples/ManagedEnvironments_Get.json | 2 +- .../examples/ManagedEnvironments_ListByResourceGroup.json | 2 +- .../examples/ManagedEnvironments_ListBySubscription.json | 2 +- .../stable/2022-05-01/examples/ManagedEnvironments_Patch.json | 4 ++-- .../stable/2022-05-01/examples/Operations_List.json | 2 +- .../stable/2022-05-01/examples/Replicas_Get.json | 2 +- .../stable/2022-05-01/examples/Revisions_Activate.json | 2 +- .../stable/2022-05-01/examples/Revisions_Deactivate.json | 2 +- .../2022-05-01/examples/SourceControls_CreateOrUpdate.json | 2 +- .../stable/2022-05-01/examples/SourceControls_Delete.json | 2 +- .../stable/2022-05-01/examples/SourceControls_Get.json | 2 +- .../2022-05-01/examples/SourceControls_ListByContainer.json | 2 +- 51 files changed, 54 insertions(+), 54 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json index 114240879a9c..a7966fb7575d 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json index 169dde52642d..8da086cd67b1 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json index 080cb2828930..93b766f08b6f 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json index 86d35b503bca..a9fe1a200c1a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json index e66984b2a170..1bf47d25bc87 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json index be72ebba6c3b..83c07d1b6943 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json index c3b5b73fedf8..92cbf102dba7 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json index d87c6a2788bb..7545bd646ce2 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json index 8af4d61f1abd..353e4f182de7 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-03-01", + "version": "2022-05-01", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json index 3ff06317e553..3a2b6080024c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "name": "current", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "authConfigEnvelope": { "properties": { "platform": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json index 63437a757c0c..07857fb40fb3 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "name": "current", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json index 35ce520b8852..2c68896d2f19 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "name": "current", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json index d7ca69828ff7..a80fc263204a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json index 49b28fc53d60..5c8dad0bdbbc 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "managedEnvironmentName": "testcontainerenv", "name": "certificate-firendly-name", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "certificateEnvelope": { "location": "East US", "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json index 7e25d26b39d7..832864f8188c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "managedEnvironmentName": "testcontainerenv", "name": "certificate-firendly-name", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json index 403fdb7d21ba..ad3f23561f0e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "managedEnvironmentName": "testcontainerenv", "name": "certificate-firendly-name", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json index 2788c6f66c02..939e7995ad59 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-03-01", + "api-version": "2022-05-01", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "managedEnvironmentName": "testcontainerenv", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json index c92921d332d4..243b08acd656 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "managedEnvironmentName": "testcontainerenv", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json index 1b92d47538e1..83b2f28287ad 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "managedEnvironmentName": "testcontainerenv", "name": "certificate-firendly-name", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "certificateEnvelope": { "tags": { "tag1": "value1", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json index 9ce9037bc6b3..a664ae189b23 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-03-01", + "api-version": "2022-05-01", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "managedEnvironmentName": "testcontainerenv", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json index f31bfa2e64d5..455190e18551 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "name": "testcontainerApp0", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "containerAppEnvelope": { "location": "East US", "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json index 20b1076be7ba..b7b793fa9241 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json @@ -3,13 +3,13 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "name": "testWorkerApp0", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {}, "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-03-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" } }, "204": {} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json index c37083ccdab7..3fcc226cf11e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "name": "testcontainerApp0", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json index cde745ea2628..5bbd55b110bf 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json index e91c1ab46fe8..6079ae7f7b42 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json index dd86259c50cf..50a0e415f06a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", "customHostname": "my.name.corp", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json index 9e14e9f54148..3fc64b6f7c46 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "name": "testcontainerApp0", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json index 96736f870fd9..d422b3019b0e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "name": "testcontainerApp0", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "containerAppEnvelope": { "location": "East US", "tags": { @@ -87,7 +87,7 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-03-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" } } } diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json index b110ceaf3d33..b51dfa21732c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "name": "reddog", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "daprComponentEnvelope": { "properties": { "componentType": "state.azure.cosmosdb", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json index a7df7688e321..d45c17c10259 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "name": "reddog", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json index fff7f1076301..b13762317433 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "name": "reddog", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json index 548830281940..729dcf81a6ae 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json index 3d035869e98a..f5d2d333da45 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "name": "reddog", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json index 057ef675c2fe..4ba208ed1d5c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "envName": "managedEnv", "name": "jlaw-demo1", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "storageEnvelope": { "properties": { "azureFile": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json index 8b57652cd4a2..419b7545c4bc 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "envName": "managedEnv", "name": "jlaw-demo1", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json index c0173bcc426a..2c06ec7bc830 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "envName": "managedEnv", "name": "jlaw-demo1", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json index 24a69bed4e83..280dd0c2578b 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "envName": "managedEnv", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json index 5b9882c1d245..7c3c4045bfc7 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "name": "testcontainerenv", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "environmentEnvelope": { "location": "East US", "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json index 2e30ecf918b3..3ae1e1f3dc0e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "name": "examplekenv", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "location": "East US" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json index 3c4e18f878f7..4295bd083dc4 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "name": "jlaw-demo1", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json index 4da67c51b15d..f557fd84de13 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json index 0a378aeb325b..561fdaef2573 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json index 4ff0a27b6bca..ffa9308da817 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "name": "testcontainerenv", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "environmentEnvelope": { "location": "East US", "tags": { @@ -15,7 +15,7 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-03-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" } } } diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json index 9362af77c82b..836f2b6e1d7b 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json index e22181d1ea4b..bfa02729b66f 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json @@ -5,7 +5,7 @@ "containerAppName": "myapp", "revisionName": "myapp--0wlqy09", "name": "myapp--0wlqy09-5d9774cff-5wnd8", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json index 2c9db2b0ed62..91e77c76152a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", "name": "testcontainerApp0-pjxhsye", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json index 2c9db2b0ed62..91e77c76152a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", "name": "testcontainerApp0-pjxhsye", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json index 82ef2efd6ef8..27cbc1ef532e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "name": "current", - "api-version": "2022-03-01", + "api-version": "2022-05-01", "sourceControlEnvelope": { "properties": { "repoUrl": "https://github.com/xwang971/ghatest", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json index 5264f49b4621..25e16ddc1641 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "name": "current", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json index 2e1fa372773c..267649b7eef4 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "name": "current", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json index f263547e69d0..d738e6eaa5ce 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "api-version": "2022-03-01" + "api-version": "2022-05-01" }, "responses": { "200": { From fabf9a52dff3cff4e61f6c6e8743c0a5f848fe8a Mon Sep 17 00:00:00 2001 From: michimune Date: Mon, 25 Apr 2022 23:11:09 -0700 Subject: [PATCH 04/50] Add app diag to 2022-05-01 (#18678) * Add container apps diagnostics * Fix validation errors * Move Microsoft.App diag APIs to 2022-05-01 * Fix validation errors * Fix validation errors * Fix validation errors 3 * Change operationIds Co-authored-by: Michimune Kohno --- custom-words.txt | 1 + .../stable/2022-05-01/Diagnostics.json | 715 ++++++++++++++++++ .../ContainerAppsDiagnostics_Get.json | 68 ++ .../ContainerAppsDiagnostics_List.json | 38 + .../ManagedEnvironmentDiagnostics_Get.json | 68 ++ .../ManagedEnvironmentDiagnostics_List.json | 37 + specification/app/resource-manager/readme.md | 1 + 7 files changed, 928 insertions(+) create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json diff --git a/custom-words.txt b/custom-words.txt index 931b5a38da13..eed79692ad86 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -575,6 +575,7 @@ deserializer deserializing destaging destinationshares +detectorproperties deterministically deviceclasses devicecredentials diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json new file mode 100644 index 000000000000..53a8ffd4cfdc --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json @@ -0,0 +1,715 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get the list of diagnostics for a given Container App.", + "operationId": "ContainerAppsDiagnostics_ListDetectors", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App for which detector info is needed.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiagnosticsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the list of available diagnostics for a given Container App": { + "$ref": "./examples/ContainerAppsDiagnostics_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{name}": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get a diagnostics result of a Container App.", + "operationId": "ContainerAppsDiagnostics_GetDetector", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App Detector.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Diagnostics" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's diagnostics info": { + "$ref": "./examples/ContainerAppsDiagnostics_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get the Revisions for a given Container App.", + "operationId": "ContainerAppsDiagnostics_ListRevisions", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App for which Revisions are needed.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply on the operation.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./ContainerAppsRevisions.json#/definitions/RevisionCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container App's revisions": { + "$ref": "./examples/Revisions_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Revision" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/{name}": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get a revision of a Container App.", + "operationId": "ContainerAppsDiagnostics_GetRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./ContainerAppsRevisions.json#/definitions/Revision" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's revision": { + "$ref": "./examples/Revisions_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/detectorproperties/rootApi/": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get the properties of a Container App.", + "operationId": "ContainerAppsDiagnostics_GetRoot", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "./ContainerApps.json#/definitions/ContainerApp" + } + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App": { + "$ref": "./examples/ContainerApps_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}/detectors": { + "get": { + "tags": [ + "ManagedEnvironments", + "Diagnostics" + ], + "summary": "Get the list of diagnostics for a given Managed Environment.", + "description": "Get the list of diagnostics for a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironmentDiagnostics_ListDetectors", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiagnosticsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the list of available diagnostic data for a managed environments": { + "$ref": "./examples/ManagedEnvironmentDiagnostics_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}/detectors/{detectorName}": { + "get": { + "tags": [ + "ManagedEnvironments", + "Diagnostics" + ], + "summary": "Get the diagnostics data for a given Managed Environment.", + "description": "Get the diagnostics data for a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironmentDiagnostics_GetDetector", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "detectorName", + "in": "path", + "description": "Name of the Managed Environment detector.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Diagnostics" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get diagnostic data for a managed environments": { + "$ref": "./examples/ManagedEnvironmentDiagnostics_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}/detectorproperties/rootApi/": { + "get": { + "tags": [ + "ManagedEnvironments", + "Diagnostics" + ], + "summary": "Get the properties of a Managed Environment.", + "description": "Get the properties of a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironmentsDiagnostics_GetRoot", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./ManagedEnvironments.json#/definitions/ManagedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get environments by name": { + "$ref": "./examples/ManagedEnvironments_Get.json" + } + } + } + } + }, + "definitions": { + "DiagnosticsCollection": { + "description": "Diagnostics data collection for a resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of diagnostic data.", + "type": "array", + "items": { + "$ref": "#/definitions/Diagnostics" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "Diagnostics": { + "description": "Diagnostics data for a resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Diagnostics resource specific properties", + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/DiagnosticsDefinition", + "description": "Metadata of the diagnostics response." + }, + "dataset": { + "description": "Set of data collections associated with the response.", + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticsDataApiResponse" + }, + "x-ms-identifiers": [] + }, + "status": { + "$ref": "#/definitions/DiagnosticsStatus", + "description": "Status of the diagnostics response." + }, + "dataProviderMetadata": { + "$ref": "#/definitions/DiagnosticDataProviderMetadata", + "description": "List of data providers' metadata." + } + } + } + } + }, + "DiagnosticsDefinition": { + "description": "Metadata of the diagnostics response", + "type": "object", + "properties": { + "id": { + "description": "Unique detector name", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Display Name of the detector", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Details of the diagnostics info", + "type": "string", + "readOnly": true + }, + "author": { + "description": "Authors' names of the detector", + "type": "string", + "readOnly": true + }, + "category": { + "description": "Category of the detector", + "type": "string", + "readOnly": true + }, + "supportTopicList": { + "description": "List of support topics", + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticSupportTopic" + } + }, + "analysisTypes": { + "description": "List of analysis types", + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "description": "Authors' names of the detector", + "type": "string", + "readOnly": true + }, + "score": { + "description": "Authors' names of the detector", + "type": "number", + "readOnly": true + } + } + }, + "DiagnosticSupportTopic": { + "description": "Support topic information", + "type": "object", + "properties": { + "id": { + "description": "Unique topic identifier", + "type": "string", + "readOnly": true + }, + "pesId": { + "description": "PES identifier", + "type": "string", + "readOnly": true + } + } + }, + "DiagnosticsDataApiResponse": { + "description": "Diagnostics data returned from a detector", + "type": "object", + "properties": { + "table": { + "description": "Table response", + "$ref": "#/definitions/DiagnosticDataTableResponseObject" + }, + "renderingProperties": { + "description": "Details of the table response", + "$ref": "#/definitions/DiagnosticRendering" + } + } + }, + "DiagnosticDataTableResponseObject": { + "description": "Diagnostics data table", + "type": "object", + "properties": { + "tableName": { + "description": "Table name", + "type": "string" + }, + "columns": { + "description": "Columns in the table", + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticDataTableResponseColumn" + }, + "x-ms-identifiers": [ + "columnName" + ] + }, + "rows": { + "description": "Rows in the table", + "type": "array", + "items": { + "type": "object" + }, + "x-ms-identifiers": [] + } + } + }, + "DiagnosticDataTableResponseColumn": { + "description": "Diagnostics data column", + "type": "object", + "properties": { + "columnName": { + "description": "Column name", + "type": "string" + }, + "dataType": { + "description": "Data type of the column", + "type": "string" + }, + "columnType": { + "description": "Column type", + "type": "string" + } + } + }, + "DiagnosticRendering": { + "description": "Rendering details of a diagnostics table", + "type": "object", + "properties": { + "type": { + "format": "int32", + "description": "Rendering type", + "type": "integer" + }, + "title": { + "description": "Title of the table", + "type": "string" + }, + "description": { + "description": "Description of the table", + "type": "string" + }, + "isVisible": { + "description": "Flag if the table should be rendered", + "type": "boolean" + } + } + }, + "DiagnosticsStatus": { + "description": "Rendering details of a diagnostics table", + "type": "object", + "properties": { + "message": { + "description": "Diagnostic message", + "type": "string" + }, + "statusId": { + "format": "int32", + "description": "Status", + "type": "integer" + } + } + }, + "DiagnosticDataProviderMetadata": { + "description": "Details of a diagnostics data provider", + "type": "object", + "properties": { + "providerName": { + "description": "Name of data provider", + "type": "string" + }, + "propertyBag": { + "description": "Collection of properties", + "type": "array", + "items": { + "description": "Property details", + "type": "object", + "properties": { + "name": { + "description": "Property name", + "type": "string" + }, + "value": { + "description": "Property value", + "type": "string" + } + } + }, + "x-ms-identifiers": [ + "name" + ] + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json new file mode 100644 index 000000000000..593cb6c1a399 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "containerAppName": "mikono-capp-stage1", + "name": "cappcontainerappnetworkIO", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappcontainerappnetworkIO", + "name": "cappcontainerappnetworkIO", + "type": "Microsoft.App/containerapps/detectors", + "properties": { + "metadata": { + "id": "cappcontainerappnetworkIO", + "name": "Container App Network Inbound and Outbound", + "description": "This detector shows the Container App Network Inbound and Outbound.", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Detector", + "score": 0 + }, + "dataset": [ + { + "table": { + "tableName": "", + "columns": [ + { + "columnName": "TimeStamp", + "dataType": "DateTime" + }, + { + "columnName": "Metric", + "dataType": "String" + }, + { + "columnName": "Average", + "dataType": "Double" + } + ], + "rows": [ + [ + "2022-03-15T21:35:00", + "RxBytes", + 0 + ] + ] + }, + "renderingProperties": { + "type": 8, + "title": "Container Apps Network Inbound ", + "description": "", + "isVisible": true + } + } + ], + "status": { + "statusId": 3 + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json new file mode 100644 index 000000000000..6562c8073c32 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "containerAppName": "mikono-capp-stage1", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappContainerAppAvailabilityMetrics", + "name": "cappContainerAppAvailabilityMetrics", + "type": "Microsoft.App/containerapps/detectors", + "properties": { + "metadata": { + "id": "cappContainerAppAvailabilityMetrics", + "name": "Availability Metrics for Container Apps", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Analysis", + "score": 0 + }, + "dataset": [], + "status": { + "statusId": 4 + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json new file mode 100644 index 000000000000..9a9c86aa959a --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "name": "mikonokubeenv", + "detectorName": "ManagedEnvAvailabilityMetrics", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics", + "name": "ManagedEnvAvailabilityMetrics", + "type": "Microsoft.App/managedEnvironments/detectors", + "properties": { + "metadata": { + "id": "ManagedEnvAvailabilityMetrics", + "name": "Managed Env Netowrk Inbound and Outbound", + "description": "This detector shows the Managed Environment Network Inbound and Outbound.", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Detector", + "score": 0 + }, + "dataset": [ + { + "table": { + "tableName": "", + "columns": [ + { + "columnName": "TimeStamp", + "dataType": "DateTime" + }, + { + "columnName": "Metric", + "dataType": "String" + }, + { + "columnName": "Average", + "dataType": "Double" + } + ], + "rows": [ + [ + "2022-03-15T21:35:00", + "RxBytes", + 0 + ] + ] + }, + "renderingProperties": { + "type": 8, + "title": "Managed Environment Network Inbound ", + "description": "", + "isVisible": true + } + } + ], + "status": { + "statusId": 3 + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json new file mode 100644 index 000000000000..e2b317ea07ee --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "name": "mikonokubeenv", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics", + "name": "ManagedEnvAvailabilityMetrics", + "type": "Microsoft.App/managedEnvironments/detectors", + "properties": { + "metadata": { + "id": "ManagedEnvAvailabilityMetrics", + "name": "Availability Metrics for Managed Environments", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Analysis", + "score": 0 + }, + "dataset": [], + "status": { + "statusId": 4 + } + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 5a4cf40a0302..42e8b18f15df 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -41,6 +41,7 @@ input-file: - Microsoft.App/stable/2022-05-01/ContainerApps.json - Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json - Microsoft.App/stable/2022-05-01/DaprComponents.json + - Microsoft.App/stable/2022-05-01/Diagnostics.json - Microsoft.App/stable/2022-05-01/Global.json - Microsoft.App/stable/2022-05-01/ManagedEnvironments.json - Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json From 707713445e1cf19b7e7abfbe7b810a91d8b3bee8 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Thu, 12 May 2022 16:48:03 +0800 Subject: [PATCH 05/50] Fix definition for customhostnameesult (#19014) * fix * update * more fix --- .../stable/2022-05-01/ContainerApps.json | 177 +++++++++++------- ...tainerApps_ListCustomHostNameAnalysis.json | 55 +++--- 2 files changed, 132 insertions(+), 100 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json index 93b766f08b6f..5ade41f06fad 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json @@ -755,94 +755,129 @@ "CustomHostnameAnalysisResult": { "description": "Custom domain analysis.", "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], "properties": { - "properties": { - "description": "CustomHostnameAnalysisResult resource specific properties", + "hostName": { + "description": "Host name that was analyzed", + "type": "string", + "readOnly": true + }, + "isHostnameAlreadyVerified": { + "description": "true if hostname is already verified; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "customDomainVerificationTest": { + "description": "DNS verification test result.", + "enum": [ + "Passed", + "Failed", + "Skipped" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DnsVerificationTestResult", + "modelAsString": false + } + }, + "customDomainVerificationFailureInfo": { + "description": "Raw failure information if DNS verification fails.", "type": "object", "properties": { - "hostName": { - "description": "Host name that was analyzed", + "code": { + "description": "Standardized string to programmatically identify the error.", "type": "string", "readOnly": true }, - "isHostnameAlreadyVerified": { - "description": "true if hostname is already verified; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "customDomainVerificationTest": { - "description": "DNS verification test result.", - "enum": [ - "Passed", - "Failed", - "Skipped" - ], + "message": { + "description": "Detailed error description and debugging information.", "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "DnsVerificationTestResult", - "modelAsString": false - } - }, - "customDomainVerificationFailureInfo": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse", - "description": "Raw failure information if DNS verification fails.", "readOnly": true }, - "hasConflictOnManagedEnvironment": { - "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "conflictingContainerAppResourceId": { - "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "target": { + "description": "Detailed error description and debugging information.", "type": "string", "readOnly": true }, - "cNameRecords": { - "description": "CName records visible for this hostname.", + "details": { "type": "array", + "description": "Details or the error", "items": { - "type": "string" - } - }, - "txtRecords": { - "description": "TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "aRecords": { - "description": "A records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateCNameRecords": { - "description": "Alternate CName records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateTxtRecords": { - "description": "Alternate TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } + "description": "Detailed errors.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, + "x-ms-identifiers": [ + "code" + ] } }, - "x-ms-client-flatten": true + "readOnly": true + }, + "hasConflictOnManagedEnvironment": { + "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "conflictingContainerAppResourceId": { + "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "type": "string", + "readOnly": true + }, + "cNameRecords": { + "description": "CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "txtRecords": { + "description": "TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "aRecords": { + "description": "A records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateCNameRecords": { + "description": "Alternate CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateTxtRecords": { + "description": "Alternate TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } } - } + }, + "x-ms-client-flatten": true } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json index 50a0e415f06a..a5bfe5a7dea9 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -10,35 +10,32 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "properties": { - "hostName": "my.name.corp", - "isHostnameAlreadyVerified": true, - "customDomainVerificationTest": "Passed", - "customDomainVerificationFailureInfo": {}, - "hasConflictOnManagedEnvironment": false, - "conflictingContainerAppResourceId": "", - "cNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "txtRecords": [ - "txtRecord1", - "txtRecord2" - ], - "aRecords": [ - "aRecord1", - "aRecord2" - ], - "alternateCNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "alternateTxtRecords": [ - "txtRecord1", - "txtRecord2" - ] - } + "hostName": "my.name.corp", + "isHostnameAlreadyVerified": true, + "customDomainVerificationTest": "Passed", + "customDomainVerificationFailureInfo": {}, + "hasConflictOnManagedEnvironment": false, + "conflictingContainerAppResourceId": "", + "cNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "txtRecords": [ + "txtRecord1", + "txtRecord2" + ], + "aRecords": [ + "aRecord1", + "aRecord2" + ], + "alternateCNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "alternateTxtRecords": [ + "txtRecord1", + "txtRecord2" + ] } } } From a33bd39771914b2f62d2a422af044a32e54a86b1 Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Thu, 12 May 2022 20:22:46 -0700 Subject: [PATCH 06/50] Cherry pick for the parameter name fixes for the 2022-03-01 and making the same fixes in 2022-05-01 (#19048) * Correct Probe enums (#18839) * fix probe enums * Fix revision mode enum * Fix patch example * Fix the casing of enums in the latest api version * Change the parameter names to unblock Terraform release (#19005) * contianerapps: fixing swagger inconsistencies in 2022-01-01-preview * containerapps: fixing inconsistencies in the 2022-03-01 swagger * containerapps: updating the examples for 2022-01-01-preview * containerapps: updating the examples to account for the updated parameter names * containerapps: fixing linting * fix probe enums * Fix revision mode enum * Fix the policheck error * Revert "containerapps: fixing linting" This reverts commit 3c4872f4a43fbe1a285830461f48d8c0a5ffeee8. * Revert "containerapps: updating the examples for 2022-01-01-preview" This reverts commit 9b81fbd65652d558c0296d72a63ca1a7c4850e3c. * Revert "contianerapps: fixing swagger inconsistencies in 2022-01-01-preview" This reverts commit 553fc551b3239598157238ed6246085748421b87. * Undo changes to 2022-01-01-preview * Fix one issue * fix remaining inconsistency * fix authConfig and sourceControl names Co-authored-by: tombuildsstuff Co-authored-by: Mike Vu * Change param names * Fix examples * Fix CI errors Co-authored-by: Mike Vu Co-authored-by: tombuildsstuff --- .../2022-01-01-preview/CommonDefinitions.json | 16 ++++++--- .../2022-01-01-preview/ContainerApps.json | 4 +-- .../ContainerApps_CreateOrUpdate.json | 6 ++-- .../stable/2022-03-01/AuthConfigs.json | 8 ++--- .../stable/2022-03-01/CommonDefinitions.json | 16 ++++++--- .../stable/2022-03-01/ContainerApps.json | 18 +++++----- .../2022-03-01/ContainerAppsRevisions.json | 20 +++++------ .../stable/2022-03-01/DaprComponents.json | 12 +++---- .../2022-03-01/ManagedEnvironments.json | 36 +++++++++---------- .../ManagedEnvironmentsStorages.json | 18 +++++----- .../stable/2022-03-01/SourceControls.json | 8 ++--- .../examples/AuthConfigs_CreateOrUpdate.json | 2 +- .../examples/AuthConfigs_Delete.json | 2 +- .../2022-03-01/examples/AuthConfigs_Get.json | 2 +- .../examples/Certificate_CreateOrUpdate.json | 6 ++-- .../examples/Certificate_Delete.json | 4 +-- .../2022-03-01/examples/Certificate_Get.json | 6 ++-- .../Certificates_CheckNameAvailability.json | 2 +- ...Certificates_ListByManagedEnvironment.json | 14 ++++---- .../examples/Certificates_Patch.json | 6 ++-- .../ContainerApps_CheckNameAvailability.json | 2 +- .../ContainerApps_CreateOrUpdate.json | 8 ++--- .../examples/ContainerApps_Delete.json | 2 +- .../examples/ContainerApps_Get.json | 2 +- .../examples/ContainerApps_ListSecrets.json | 2 +- .../examples/ContainerApps_Patch.json | 4 +-- .../DaprComponents_CreateOrUpdate.json | 2 +- .../examples/DaprComponents_Delete.json | 2 +- .../examples/DaprComponents_Get.json | 2 +- .../examples/DaprComponents_ListSecrets.json | 2 +- ...edEnvironmentsStorages_CreateOrUpdate.json | 4 +-- .../ManagedEnvironmentsStorages_Delete.json | 4 +-- .../ManagedEnvironmentsStorages_Get.json | 4 +-- .../ManagedEnvironmentsStorages_List.json | 2 +- .../ManagedEnvironments_CreateOrUpdate.json | 2 +- .../examples/ManagedEnvironments_Delete.json | 2 +- .../examples/ManagedEnvironments_Get.json | 2 +- .../examples/ManagedEnvironments_Patch.json | 2 +- .../2022-03-01/examples/Replicas_Get.json | 2 +- .../examples/Revisions_Activate.json | 2 +- .../examples/Revisions_Deactivate.json | 2 +- .../2022-03-01/examples/Revisions_Get.json | 2 +- .../examples/Revisions_Restart.json | 2 +- .../SourceControls_CreateOrUpdate.json | 2 +- .../examples/SourceControls_Delete.json | 2 +- .../examples/SourceControls_Get.json | 2 +- .../stable/2022-05-01/AuthConfigs.json | 8 ++--- .../stable/2022-05-01/CommonDefinitions.json | 16 ++++++--- .../stable/2022-05-01/ContainerApps.json | 18 +++++----- .../2022-05-01/ContainerAppsRevisions.json | 20 +++++------ .../stable/2022-05-01/DaprComponents.json | 12 +++---- .../stable/2022-05-01/Diagnostics.json | 24 ++++++------- .../2022-05-01/ManagedEnvironments.json | 36 +++++++++---------- .../ManagedEnvironmentsStorages.json | 18 +++++----- .../stable/2022-05-01/SourceControls.json | 8 ++--- .../examples/AuthConfigs_CreateOrUpdate.json | 2 +- .../examples/AuthConfigs_Delete.json | 2 +- .../2022-05-01/examples/AuthConfigs_Get.json | 2 +- .../examples/Certificate_CreateOrUpdate.json | 4 +-- .../examples/Certificate_Delete.json | 4 +-- .../2022-05-01/examples/Certificate_Get.json | 4 +-- .../Certificates_CheckNameAvailability.json | 2 +- ...Certificates_ListByManagedEnvironment.json | 2 +- .../examples/Certificates_Patch.json | 4 +-- .../ContainerAppsDiagnostics_Get.json | 2 +- .../ContainerApps_CheckNameAvailability.json | 2 +- .../ContainerApps_CreateOrUpdate.json | 8 ++--- .../examples/ContainerApps_Delete.json | 2 +- .../examples/ContainerApps_Get.json | 2 +- .../examples/ContainerApps_ListSecrets.json | 2 +- .../examples/ContainerApps_Patch.json | 4 +-- .../DaprComponents_CreateOrUpdate.json | 2 +- .../examples/DaprComponents_Delete.json | 2 +- .../examples/DaprComponents_Get.json | 2 +- .../examples/DaprComponents_ListSecrets.json | 2 +- .../ManagedEnvironmentDiagnostics_Get.json | 2 +- .../ManagedEnvironmentDiagnostics_List.json | 2 +- ...edEnvironmentsStorages_CreateOrUpdate.json | 4 +-- .../ManagedEnvironmentsStorages_Delete.json | 4 +-- .../ManagedEnvironmentsStorages_Get.json | 4 +-- .../ManagedEnvironmentsStorages_List.json | 2 +- .../ManagedEnvironments_CreateOrUpdate.json | 2 +- .../examples/ManagedEnvironments_Delete.json | 2 +- .../examples/ManagedEnvironments_Get.json | 2 +- .../examples/ManagedEnvironments_Patch.json | 2 +- .../2022-05-01/examples/Replicas_Get.json | 2 +- .../examples/Revisions_Activate.json | 2 +- .../examples/Revisions_Deactivate.json | 2 +- .../2022-05-01/examples/Revisions_Get.json | 2 +- .../examples/Revisions_Restart.json | 2 +- .../SourceControls_CreateOrUpdate.json | 2 +- .../examples/SourceControls_Delete.json | 2 +- .../examples/SourceControls_Get.json | 2 +- 93 files changed, 277 insertions(+), 253 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/CommonDefinitions.json index d74fb9991175..1812e9d32be9 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/CommonDefinitions.json @@ -172,7 +172,15 @@ }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" + "enum": [ + "HTTP", + "HTTPS" + ], + "type": "string", + "x-ms-enum": { + "name": "Scheme", + "modelAsString": true + } } } }, @@ -222,9 +230,9 @@ "type": { "description": "The type of probe.", "enum": [ - "liveness", - "readiness", - "startup" + "Liveness", + "Readiness", + "Startup" ], "type": "string", "x-ms-enum": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json index 4ddf1ed27cb1..4aff2475e7ab 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json @@ -427,8 +427,8 @@ "activeRevisionsMode": { "description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\nMultiple: multiple revisions can be active. If no value if provided, this is the defaultSingle: Only one revision can be active at a time. Revision weights can not be used in this mode", "enum": [ - "multiple", - "single" + "Multiple", + "Single" ], "type": "string", "x-ms-enum": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json index a3361fe80a45..a956f82ab4b8 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -38,7 +38,7 @@ "name": "testcontainerApp0", "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, @@ -122,7 +122,7 @@ }, "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, @@ -192,7 +192,7 @@ }, "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json index 114240879a9c..649e44aede95 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json @@ -64,7 +64,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}": { "get": { "tags": [ "ContainerAppsAuthConfigs" @@ -86,7 +86,7 @@ "type": "string" }, { - "name": "name", + "name": "authConfigName", "in": "path", "description": "Name of the Container App AuthConfig.", "required": true, @@ -138,7 +138,7 @@ "type": "string" }, { - "name": "name", + "name": "authConfigName", "in": "path", "description": "Name of the Container App AuthConfig.", "required": true, @@ -199,7 +199,7 @@ "type": "string" }, { - "name": "name", + "name": "authConfigName", "in": "path", "description": "Name of the Container App AuthConfig.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/CommonDefinitions.json index 169dde52642d..8dc19cfa4c1c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/CommonDefinitions.json @@ -172,7 +172,15 @@ }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" + "enum": [ + "HTTP", + "HTTPS" + ], + "type": "string", + "x-ms-enum": { + "name": "Scheme", + "modelAsString": true + } } } }, @@ -222,9 +230,9 @@ "type": { "description": "The type of probe.", "enum": [ - "liveness", - "readiness", - "startup" + "Liveness", + "Readiness", + "Startup" ], "type": "string", "x-ms-enum": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json index 080cb2828930..877cbec9784b 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json @@ -96,7 +96,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}": { "get": { "tags": [ "ContainerApps" @@ -111,7 +111,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -160,7 +160,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -221,7 +221,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -270,7 +270,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -360,7 +360,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/listSecrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets": { "post": { "tags": [ "ContainerApps" @@ -378,7 +378,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -425,8 +425,8 @@ "activeRevisionsMode": { "description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\nMultiple: multiple revisions can be active.Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.", "enum": [ - "multiple", - "single" + "Multiple", + "Single" ], "type": "string", "x-ms-enum": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerAppsRevisions.json index 86d35b503bca..e705ff88f42b 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerAppsRevisions.json @@ -72,7 +72,7 @@ "x-ms-odata": "#/definitions/Revision" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}": { "get": { "tags": [ "ContainerAppsRevisions" @@ -94,7 +94,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, @@ -125,7 +125,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/activate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate": { "post": { "tags": [ "ContainerAppsRevisions" @@ -147,7 +147,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, @@ -175,7 +175,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/deactivate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate": { "post": { "tags": [ "ContainerAppsRevisions" @@ -197,7 +197,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, @@ -225,7 +225,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}": { "get": { "tags": [ "ContainerAppsRevisionReplicas" @@ -254,7 +254,7 @@ "type": "string" }, { - "name": "name", + "name": "replicaName", "in": "path", "description": "Name of the Container App Revision Replica.", "required": true, @@ -338,7 +338,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart": { "post": { "tags": [ "ContainerAppsRevisions" @@ -360,7 +360,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json index e66984b2a170..ecf44dc771a9 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/DaprComponents.json @@ -64,7 +64,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}": { "get": { "tags": [ "DaprComponents" @@ -86,7 +86,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, @@ -138,7 +138,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, @@ -200,7 +200,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, @@ -232,7 +232,7 @@ "x-ms-long-running-operation": false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets": { "post": { "tags": [ "DaprComponents" @@ -254,7 +254,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json index c3b5b73fedf8..12720785d8bb 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json @@ -98,7 +98,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}": { "get": { "tags": [ "ManagedEnvironments" @@ -114,7 +114,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -159,7 +159,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -220,7 +220,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -269,7 +269,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -307,7 +307,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates": { "get": { "tags": [ "ManagedEnvironments", @@ -323,7 +323,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, @@ -357,7 +357,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}": { "get": { "tags": [ "ManagedEnvironments", @@ -373,14 +373,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -425,14 +425,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -485,14 +485,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -538,14 +538,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -585,7 +585,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/checkNameAvailability": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability": { "post": { "tags": [ "ManagedEnvironments" @@ -601,7 +601,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironmentsStorages.json index d87c6a2788bb..384b629665ff 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironmentsStorages.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironmentsStorages.json @@ -15,7 +15,7 @@ "application/json" ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages": { "get": { "tags": [ "ManagedEnvironmentsStorages" @@ -31,7 +31,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -62,7 +62,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}": { "get": { "tags": [ "ManagedEnvironmentsStorages" @@ -78,14 +78,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "storageName", "in": "path", "description": "Name of the storage.", "required": true, @@ -130,14 +130,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "storageName", "in": "path", "description": "Name of the storage.", "required": true, @@ -191,14 +191,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "storageName", "in": "path", "description": "Name of the storage.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json index 8af4d61f1abd..667d73c3fa6b 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json @@ -82,7 +82,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}": { "get": { "tags": [ "ContainerAppsSourceControls" @@ -104,7 +104,7 @@ "type": "string" }, { - "name": "name", + "name": "sourceControlName", "in": "path", "description": "Name of the Container App SourceControl.", "required": true, @@ -156,7 +156,7 @@ "type": "string" }, { - "name": "name", + "name": "sourceControlName", "in": "path", "description": "Name of the Container App SourceControl.", "required": true, @@ -224,7 +224,7 @@ "type": "string" }, { - "name": "name", + "name": "sourceControlName", "in": "path", "description": "Name of the Container App SourceControl.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json index 3ff06317e553..a87cbe7cad3f 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "authConfigName": "current", "api-version": "2022-03-01", "authConfigEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Delete.json index 63437a757c0c..29fb9dc55017 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "authConfigName": "current", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Get.json index 35ce520b8852..eeac23109a29 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "authConfigName": "current", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json index 49b28fc53d60..d2dc08b9ea8b 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-03-01", "certificateEnvelope": { "location": "East US", @@ -22,7 +22,7 @@ "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json index 7e25d26b39d7..6e7d3be772a2 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json index 403fdb7d21ba..8d134c8e670e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-03-01" }, "responses": { @@ -16,7 +16,7 @@ "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_CheckNameAvailability.json index 2788c6f66c02..6f90c2006f23 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_CheckNameAvailability.json @@ -3,7 +3,7 @@ "api-version": "2022-03-01", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", + "environmentName": "testcontainerenv", "checkNameAvailabilityRequest": { "name": "testcertificatename", "type": "Microsoft.App/managedEnvironments/certificates" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json index c92921d332d4..d1be7f76c5c1 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", + "environmentName": "testcontainerenv", "api-version": "2022-03-01" }, "responses": { @@ -11,13 +11,13 @@ "body": { "value": [ { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", - "name": "certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name1", + "name": "certificate-firendly-name1", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name1.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", @@ -26,13 +26,13 @@ } }, { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", - "name": "certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name2", + "name": "certificate-firendly-name2", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name2.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json index 1b92d47538e1..94a889785114 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-03-01", "certificateEnvelope": { "tags": { @@ -25,7 +25,7 @@ }, "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json index 9ce9037bc6b3..d6f636b2a320 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json @@ -3,7 +3,7 @@ "api-version": "2022-03-01", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", + "environmentName": "testcontainerenv", "checkNameAvailabilityRequest": { "name": "testcappname", "type": "Microsoft.App/containerApps" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json index f31bfa2e64d5..bbaee0fdb8bb 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-03-01", "containerAppEnvelope": { "location": "East US", @@ -45,7 +45,7 @@ "name": "testcontainerApp0", "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, @@ -140,7 +140,7 @@ }, "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, @@ -221,7 +221,7 @@ }, "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Delete.json index 20b1076be7ba..a53fe7450123 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Delete.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testWorkerApp0", + "containerAppName": "testWorkerApp0", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Get.json index c37083ccdab7..8ad2263501c7 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Get.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListSecrets.json index 9e14e9f54148..3ce88feb36d5 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListSecrets.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json index 96736f870fd9..efba84b222df 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-03-01", "containerAppEnvelope": { "location": "East US", @@ -48,7 +48,7 @@ "name": "testcontainerApp0", "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json index b110ceaf3d33..6157704c71c0 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-03-01", "daprComponentEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Delete.json index a7df7688e321..fa433299fd67 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Get.json index fff7f1076301..185c080b66b5 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_ListSecrets.json index 3d035869e98a..e6588ea518fd 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_ListSecrets.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json index 057ef675c2fe..01a6ce19cc6a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", - "name": "jlaw-demo1", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", "api-version": "2022-03-01", "storageEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json index 8b57652cd4a2..b6fb20850956 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", - "name": "jlaw-demo1", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json index c0173bcc426a..697608dc66e9 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", - "name": "jlaw-demo1", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json index 24a69bed4e83..28bbead85fe0 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", + "environmentName": "managedEnv", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json index 5b9882c1d245..8acb7777805a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "name": "testcontainerenv", + "environmentName": "testcontainerenv", "api-version": "2022-03-01", "environmentEnvelope": { "location": "East US", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Delete.json index 2e30ecf918b3..b3b9c7726af7 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Delete.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "name": "examplekenv", + "environmentName": "examplekenv", "api-version": "2022-03-01", "location": "East US" }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Get.json index 3c4e18f878f7..9e08dbac75cc 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Get.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "name": "jlaw-demo1", + "environmentName": "jlaw-demo1", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json index 4ff0a27b6bca..cbaa78bc0d7d 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "name": "testcontainerenv", + "environmentName": "testcontainerenv", "api-version": "2022-03-01", "environmentEnvelope": { "location": "East US", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_Get.json index e22181d1ea4b..ca3ba3d26abc 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "myapp", "revisionName": "myapp--0wlqy09", - "name": "myapp--0wlqy09-5d9774cff-5wnd8", + "replicaName": "myapp--0wlqy09-5d9774cff-5wnd8", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Activate.json index 2c9db2b0ed62..68557da006f5 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Activate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Activate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Deactivate.json index 2c9db2b0ed62..68557da006f5 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Deactivate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Deactivate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Get.json index 3092e525c708..8c2de360fcfa 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2021-02-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Restart.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Restart.json index 1bad2b7270cc..3336c0109c26 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Restart.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Restart.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testStaticSite0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2021-02-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json index 82ef2efd6ef8..f304e1427005 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "sourceControlName": "current", "api-version": "2022-03-01", "sourceControlEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Delete.json index 5264f49b4621..25339e0891b0 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "sourceControlName": "current", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Get.json index 2e1fa372773c..b2125159ed6f 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "sourceControlName": "current", "api-version": "2022-03-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json index a7966fb7575d..4b27c65ac374 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json @@ -64,7 +64,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}": { "get": { "tags": [ "ContainerAppsAuthConfigs" @@ -86,7 +86,7 @@ "type": "string" }, { - "name": "name", + "name": "authConfigName", "in": "path", "description": "Name of the Container App AuthConfig.", "required": true, @@ -138,7 +138,7 @@ "type": "string" }, { - "name": "name", + "name": "authConfigName", "in": "path", "description": "Name of the Container App AuthConfig.", "required": true, @@ -199,7 +199,7 @@ "type": "string" }, { - "name": "name", + "name": "authConfigName", "in": "path", "description": "Name of the Container App AuthConfig.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json index 8da086cd67b1..d80348dcf8b3 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json @@ -172,7 +172,15 @@ }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" + "enum": [ + "HTTP", + "HTTPS" + ], + "type": "string", + "x-ms-enum": { + "name": "Scheme", + "modelAsString": true + } } } }, @@ -222,9 +230,9 @@ "type": { "description": "The type of probe.", "enum": [ - "liveness", - "readiness", - "startup" + "Liveness", + "Readiness", + "Startup" ], "type": "string", "x-ms-enum": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json index 5ade41f06fad..0787118cb6f2 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json @@ -96,7 +96,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}": { "get": { "tags": [ "ContainerApps" @@ -111,7 +111,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -160,7 +160,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -221,7 +221,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -270,7 +270,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -360,7 +360,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/listSecrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets": { "post": { "tags": [ "ContainerApps" @@ -378,7 +378,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -425,8 +425,8 @@ "activeRevisionsMode": { "description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\nMultiple: multiple revisions can be active.Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.", "enum": [ - "multiple", - "single" + "Multiple", + "Single" ], "type": "string", "x-ms-enum": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json index a9fe1a200c1a..455a262a00ee 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json @@ -72,7 +72,7 @@ "x-ms-odata": "#/definitions/Revision" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}": { "get": { "tags": [ "ContainerAppsRevisions" @@ -94,7 +94,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, @@ -125,7 +125,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/activate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate": { "post": { "tags": [ "ContainerAppsRevisions" @@ -147,7 +147,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, @@ -175,7 +175,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/deactivate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate": { "post": { "tags": [ "ContainerAppsRevisions" @@ -197,7 +197,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, @@ -225,7 +225,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}": { "get": { "tags": [ "ContainerAppsRevisionReplicas" @@ -254,7 +254,7 @@ "type": "string" }, { - "name": "name", + "name": "replicaName", "in": "path", "description": "Name of the Container App Revision Replica.", "required": true, @@ -338,7 +338,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/restart": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart": { "post": { "tags": [ "ContainerAppsRevisions" @@ -360,7 +360,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json index 1bf47d25bc87..139790aae081 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json @@ -64,7 +64,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}": { "get": { "tags": [ "DaprComponents" @@ -86,7 +86,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, @@ -138,7 +138,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, @@ -200,7 +200,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, @@ -232,7 +232,7 @@ "x-ms-long-running-operation": false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets": { "post": { "tags": [ "DaprComponents" @@ -254,7 +254,7 @@ "type": "string" }, { - "name": "name", + "name": "componentName", "in": "path", "description": "Name of the Dapr Component.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json index 53a8ffd4cfdc..e107bb4095dd 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json @@ -65,7 +65,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{detectorName}": { "get": { "tags": [ "ContainerApps", @@ -88,7 +88,7 @@ "type": "string" }, { - "name": "name", + "name": "detectorName", "in": "path", "description": "Name of the Container App Detector.", "required": true, @@ -177,7 +177,7 @@ "x-ms-odata": "#/definitions/Revision" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/{revisionName}": { "get": { "tags": [ "ContainerApps", @@ -200,7 +200,7 @@ "type": "string" }, { - "name": "name", + "name": "revisionName", "in": "path", "description": "Name of the Container App Revision.", "required": true, @@ -231,7 +231,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/detectorproperties/rootApi/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/rootApi/": { "get": { "tags": [ "ContainerApps", @@ -247,7 +247,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "containerAppName", "in": "path", "description": "Name of the Container App.", "required": true, @@ -282,7 +282,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}/detectors": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors": { "get": { "tags": [ "ManagedEnvironments", @@ -299,7 +299,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -330,7 +330,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}/detectors/{detectorName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}": { "get": { "tags": [ "ManagedEnvironments", @@ -347,7 +347,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -385,7 +385,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}/detectorproperties/rootApi/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorproperties/rootApi/": { "get": { "tags": [ "ManagedEnvironments", @@ -402,7 +402,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json index 92cbf102dba7..ad9bcc62de6a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json @@ -98,7 +98,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}": { "get": { "tags": [ "ManagedEnvironments" @@ -114,7 +114,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -159,7 +159,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -220,7 +220,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -269,7 +269,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -307,7 +307,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates": { "get": { "tags": [ "ManagedEnvironments", @@ -323,7 +323,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, @@ -357,7 +357,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}": { "get": { "tags": [ "ManagedEnvironments", @@ -373,14 +373,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -425,14 +425,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -485,14 +485,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -538,14 +538,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "certificateName", "in": "path", "description": "Name of the Certificate.", "required": true, @@ -585,7 +585,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/checkNameAvailability": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability": { "post": { "tags": [ "ManagedEnvironments" @@ -601,7 +601,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "managedEnvironmentName", + "name": "environmentName", "in": "path", "description": "Name of the Managed Environment.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json index 7545bd646ce2..5352b8bc5330 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json @@ -15,7 +15,7 @@ "application/json" ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages": { "get": { "tags": [ "ManagedEnvironmentsStorages" @@ -31,7 +31,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, @@ -62,7 +62,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}": { "get": { "tags": [ "ManagedEnvironmentsStorages" @@ -78,14 +78,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "storageName", "in": "path", "description": "Name of the storage.", "required": true, @@ -130,14 +130,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "storageName", "in": "path", "description": "Name of the storage.", "required": true, @@ -191,14 +191,14 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "envName", + "name": "environmentName", "in": "path", "description": "Name of the Environment.", "required": true, "type": "string" }, { - "name": "name", + "name": "storageName", "in": "path", "description": "Name of the storage.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json index 353e4f182de7..95b8900637bb 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json @@ -82,7 +82,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}": { "get": { "tags": [ "ContainerAppsSourceControls" @@ -104,7 +104,7 @@ "type": "string" }, { - "name": "name", + "name": "sourceControlName", "in": "path", "description": "Name of the Container App SourceControl.", "required": true, @@ -156,7 +156,7 @@ "type": "string" }, { - "name": "name", + "name": "sourceControlName", "in": "path", "description": "Name of the Container App SourceControl.", "required": true, @@ -224,7 +224,7 @@ "type": "string" }, { - "name": "name", + "name": "sourceControlName", "in": "path", "description": "Name of the Container App SourceControl.", "required": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json index 3a2b6080024c..2b3dcbd5955e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "authConfigName": "current", "api-version": "2022-05-01", "authConfigEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json index 07857fb40fb3..411e4e7913ec 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "authConfigName": "current", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json index 2c68896d2f19..dd087a03cc0e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "authConfigName": "current", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json index 5c8dad0bdbbc..6a5f76bd8496 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-05-01", "certificateEnvelope": { "location": "East US", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json index 832864f8188c..d8cc7318fa1a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json index ad3f23561f0e..bf55c41de27d 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json index 939e7995ad59..c3e89eb6c81a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json @@ -3,7 +3,7 @@ "api-version": "2022-05-01", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", + "environmentName": "testcontainerenv", "checkNameAvailabilityRequest": { "name": "testcertificatename", "type": "Microsoft.App/managedEnvironments/certificates" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json index 243b08acd656..47b74a695346 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", + "environmentName": "testcontainerenv", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json index 83b2f28287ad..d73cfe7758e6 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", - "name": "certificate-firendly-name", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", "api-version": "2022-05-01", "certificateEnvelope": { "tags": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json index 593cb6c1a399..525efc8304ef 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", "resourceGroupName": "mikono-workerapp-test-rg", "containerAppName": "mikono-capp-stage1", - "name": "cappcontainerappnetworkIO", + "detectorName": "cappcontainerappnetworkIO", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json index a664ae189b23..7fa1391abab0 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json @@ -3,7 +3,7 @@ "api-version": "2022-05-01", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "managedEnvironmentName": "testcontainerenv", + "environmentName": "testcontainerenv", "checkNameAvailabilityRequest": { "name": "testcappname", "type": "Microsoft.App/containerApps" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json index 455190e18551..3ff1ae9bf090 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-05-01", "containerAppEnvelope": { "location": "East US", @@ -45,7 +45,7 @@ "name": "testcontainerApp0", "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, @@ -140,7 +140,7 @@ }, "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, @@ -221,7 +221,7 @@ }, "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json index b7b793fa9241..4417d1f9877c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testWorkerApp0", + "containerAppName": "testWorkerApp0", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json index 3fcc226cf11e..07583d4ef063 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json index 3fc64b6f7c46..15a7ba9bb496 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json index d422b3019b0e..df8f3f61d67c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "name": "testcontainerApp0", + "containerAppName": "testcontainerApp0", "api-version": "2022-05-01", "containerAppEnvelope": { "location": "East US", @@ -48,7 +48,7 @@ "name": "testcontainerApp0", "probes": [ { - "type": "liveness", + "type": "Liveness", "httpGet": { "path": "/health", "port": 8080, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json index b51dfa21732c..0ffa47695813 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-05-01", "daprComponentEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json index d45c17c10259..989ade111699 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json index b13762317433..b11cf2632a31 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json index f5d2d333da45..c483a92bfa51 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "name": "reddog", + "componentName": "reddog", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json index 9a9c86aa959a..3369ab0b5fc8 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", "resourceGroupName": "mikono-workerapp-test-rg", - "name": "mikonokubeenv", + "environmentName": "mikonokubeenv", "detectorName": "ManagedEnvAvailabilityMetrics", "api-version": "2022-05-01" }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json index e2b317ea07ee..81a4ca210f32 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", "resourceGroupName": "mikono-workerapp-test-rg", - "name": "mikonokubeenv", + "environmentName": "mikonokubeenv", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json index 4ba208ed1d5c..b3befe244f10 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", - "name": "jlaw-demo1", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", "api-version": "2022-05-01", "storageEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json index 419b7545c4bc..b5a68b628196 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", - "name": "jlaw-demo1", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json index 2c06ec7bc830..46200ff70421 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json @@ -2,8 +2,8 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", - "name": "jlaw-demo1", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json index 280dd0c2578b..e229d4b6463a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "envName": "managedEnv", + "environmentName": "managedEnv", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json index 7c3c4045bfc7..1569c23ef8d0 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "name": "testcontainerenv", + "environmentName": "testcontainerenv", "api-version": "2022-05-01", "environmentEnvelope": { "location": "East US", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json index 3ae1e1f3dc0e..d030a202a2fa 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "name": "examplekenv", + "environmentName": "examplekenv", "api-version": "2022-05-01", "location": "East US" }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json index 4295bd083dc4..2fb09492d557 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "name": "jlaw-demo1", + "environmentName": "jlaw-demo1", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json index ffa9308da817..7de7df4d9533 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", - "name": "testcontainerenv", + "environmentName": "testcontainerenv", "api-version": "2022-05-01", "environmentEnvelope": { "location": "East US", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json index bfa02729b66f..6934d1c65350 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "myapp", "revisionName": "myapp--0wlqy09", - "name": "myapp--0wlqy09-5d9774cff-5wnd8", + "replicaName": "myapp--0wlqy09-5d9774cff-5wnd8", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json index 91e77c76152a..61da5f005894 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json index 91e77c76152a..61da5f005894 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json index 3092e525c708..8c2de360fcfa 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2021-02-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json index 1bad2b7270cc..3336c0109c26 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testStaticSite0", - "name": "testcontainerApp0-pjxhsye", + "revisionName": "testcontainerApp0-pjxhsye", "api-version": "2021-02-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json index 27cbc1ef532e..3c732c762698 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "sourceControlName": "current", "api-version": "2022-05-01", "sourceControlEnvelope": { "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json index 25e16ddc1641..27ca9b9e7cca 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "sourceControlName": "current", "api-version": "2022-05-01" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json index 267649b7eef4..cb7e227aabbf 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "name": "current", + "sourceControlName": "current", "api-version": "2022-05-01" }, "responses": { From 0fd5e268b79330edc4f9d3193f2336fc6984ff1b Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Thu, 2 Jun 2022 17:19:37 -0700 Subject: [PATCH 07/50] Fix description in all API versions (#19313) * Fix description for ManagedEnvironment.Internal property (#19307) * Fix descriptions in all api versions --- .../preview/2022-01-01-preview/ManagedEnvironments.json | 2 +- .../Microsoft.App/stable/2022-03-01/ManagedEnvironments.json | 2 +- .../Microsoft.App/stable/2022-05-01/ManagedEnvironments.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ManagedEnvironments.json index e5a6084931a1..84b4a486ff2d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ManagedEnvironments.json @@ -609,7 +609,7 @@ "properties": { "internal": { "type": "boolean", - "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource, must provide ControlPlaneSubnetResourceId and AppSubnetResourceId if enabling this property", + "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide runtimeSubnetId and infrastructureSubnetId if enabling this property", "x-ms-mutability": [ "create", "read" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json index 12720785d8bb..3e4d31db001e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ManagedEnvironments.json @@ -666,7 +666,7 @@ "properties": { "internal": { "type": "boolean", - "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource, must provide ControlPlaneSubnetResourceId and AppSubnetResourceId if enabling this property", + "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide runtimeSubnetId and infrastructureSubnetId if enabling this property", "x-ms-mutability": [ "create", "read" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json index ad9bcc62de6a..f2a44ddef010 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json @@ -666,7 +666,7 @@ "properties": { "internal": { "type": "boolean", - "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource, must provide ControlPlaneSubnetResourceId and AppSubnetResourceId if enabling this property", + "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide runtimeSubnetId and infrastructureSubnetId if enabling this property", "x-ms-mutability": [ "create", "read" From 056cc51226bf2eef3d3a7e7bdca875a4a571026b Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Mon, 6 Jun 2022 23:05:44 -0700 Subject: [PATCH 08/50] Add traffic info to revisions api (#19054) * Add traffic info to a revision api * Add deprecated prop * Prettier fixes * 1pdate based on new proposal * Rename * Change names * minor fix --- .../2022-05-01/ContainerAppsRevisions.json | 27 +++++++++++++++++++ .../2022-05-01/examples/Revisions_Get.json | 9 ++++++- .../2022-05-01/examples/Revisions_List.json | 9 ++++++- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json index 455a262a00ee..0dca517cf280 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json @@ -436,6 +436,17 @@ "type": "integer", "readOnly": true }, + "trafficLabels": { + "description": "Traffic labels associated with this revision", + "type": "array", + "items": { + "$ref": "#/definitions/TrafficLabel" + }, + "x-ms-identifiers": [ + "label" + ], + "readOnly": true + }, "provisioningError": { "description": "Optional Field - Platform Error Message", "type": "string", @@ -476,6 +487,22 @@ } } }, + "TrafficLabel": { + "description": "Traffic label information", + "type": "object", + "properties": { + "label": { + "description": "Traffic label assigned to a revision", + "type": "string", + "readOnly": true + }, + "fqdn": { + "description": "Fully qualified domain name of a labelled revision", + "type": "string", + "readOnly": true + } + } + }, "RevisionCollection": { "description": "Container App Revisions collection ARM resource.", "required": [ diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json index 8c2de360fcfa..323fa04ef317 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json @@ -15,7 +15,7 @@ "type": "Microsoft.App/containerApps/revisions", "properties": { "createdTime": "2021-05-24T21:24:22+00:00", - "fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", "template": { "containers": [ { @@ -42,6 +42,13 @@ ] } }, + "trafficWeight": 80, + "trafficLabels": [ + { + "label": "blue", + "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" + } + ], "active": true, "replicas": 1 } diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json index aed17be62c3c..0839c7bf4723 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json @@ -16,7 +16,7 @@ "type": "Microsoft.App/containerApps/revisions", "properties": { "createdTime": "2021-05-24T21:24:22+00:00", - "fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerapps.k4apps.io", + "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", "template": { "containers": [ { @@ -43,6 +43,13 @@ ] } }, + "trafficWeight": 80, + "trafficLabels": [ + { + "label": "blue", + "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" + } + ], "active": true, "replicas": 1 } From 5421cc7ec7f24747f30052e00db749c0f378438d Mon Sep 17 00:00:00 2001 From: Ahmed ElSayed Date: Wed, 8 Jun 2022 20:21:27 -0700 Subject: [PATCH 09/50] Add httpReadBufferSize to dapr config in Microsoft.App-2022-05-01 (#19360) * Add httpReadBufferSize to dapr config * remove nullable --- .../Microsoft.App/stable/2022-05-01/ContainerApps.json | 4 ++++ .../examples/ContainerApps_CreateOrUpdate.json | 9 ++++++--- .../stable/2022-05-01/examples/ContainerApps_Get.json | 3 ++- .../examples/ContainerApps_ListByResourceGroup.json | 3 ++- .../examples/ContainerApps_ListBySubscription.json | 3 ++- .../stable/2022-05-01/examples/ContainerApps_Patch.json | 3 ++- 6 files changed, 18 insertions(+), 7 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json index 0787118cb6f2..454e2c81a224 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json @@ -579,6 +579,10 @@ "format": "int32", "description": "Tells Dapr which port your application is listening on", "type": "integer" + }, + "httpReadBufferSize": { + "type": "integer", + "format": "int32" } } }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json index 3ff1ae9bf090..b6370daf190c 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json @@ -35,7 +35,8 @@ "dapr": { "enabled": true, "appPort": 3000, - "appProtocol": "http" + "appProtocol": "http", + "httpReadBufferSize": 30 } }, "template": { @@ -126,7 +127,8 @@ "dapr": { "enabled": true, "appPort": 3000, - "appProtocol": "http" + "appProtocol": "http", + "httpReadBufferSize": 30 } }, "template": { @@ -207,7 +209,8 @@ "dapr": { "enabled": true, "appPort": 3000, - "appProtocol": "http" + "appProtocol": "http", + "httpReadBufferSize": 30 } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json index 07583d4ef063..ff636346961f 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json @@ -50,7 +50,8 @@ "dapr": { "enabled": true, "appPort": 3000, - "appProtocol": "http" + "appProtocol": "http", + "httpReadBufferSize": 30 } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json index 5bbd55b110bf..a0e7e667dbde 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json @@ -51,7 +51,8 @@ "dapr": { "enabled": true, "appPort": 3000, - "appProtocol": "http" + "appProtocol": "http", + "httpReadBufferSize": 30 } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json index 6079ae7f7b42..f79966eba9d6 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json @@ -50,7 +50,8 @@ "dapr": { "enabled": true, "appPort": 3000, - "appProtocol": "http" + "appProtocol": "http", + "httpReadBufferSize": 30 } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json index df8f3f61d67c..7688739a729b 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json @@ -38,7 +38,8 @@ "dapr": { "enabled": true, "appPort": 3000, - "appProtocol": "http" + "appProtocol": "http", + "httpReadBufferSize": 30 } }, "template": { From 8e5d3156999e84ad8b32cbc241e203c424609e33 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 10 Jun 2022 16:45:42 +0800 Subject: [PATCH 10/50] Adds base for updating Microsoft.App from version stable/2022-05-01 to version 2022-06-01-preview --- .../2022-06-01-preview/AuthConfigs.json | 980 +++++++++++++++++ .../2022-06-01-preview/CommonDefinitions.json | 556 ++++++++++ .../2022-06-01-preview/ContainerApps.json | 905 ++++++++++++++++ .../ContainerAppsRevisions.json | 623 +++++++++++ .../2022-06-01-preview/DaprComponents.json | 428 ++++++++ .../2022-06-01-preview/Diagnostics.json | 715 +++++++++++++ .../preview/2022-06-01-preview/Global.json | 140 +++ .../ManagedEnvironments.json | 986 ++++++++++++++++++ .../ManagedEnvironmentsStorages.json | 321 ++++++ .../2022-06-01-preview/SourceControls.json | 429 ++++++++ .../examples/AuthConfigs_CreateOrUpdate.json | 53 + .../examples/AuthConfigs_Delete.json | 13 + .../examples/AuthConfigs_Get.json | 35 + .../examples/AuthConfigs_ListByContainer.json | 39 + .../examples/Certificate_CreateOrUpdate.json | 35 + .../examples/Certificate_Delete.json | 13 + .../examples/Certificate_Get.json | 29 + .../Certificates_CheckNameAvailability.json | 21 + ...Certificates_ListByManagedEnvironment.json | 47 + .../examples/Certificates_Patch.json | 38 + .../ContainerAppsDiagnostics_Get.json | 68 ++ .../ContainerAppsDiagnostics_List.json | 38 + .../ContainerApps_CheckNameAvailability.json | 21 + .../ContainerApps_CreateOrUpdate.json | 263 +++++ .../examples/ContainerApps_Delete.json | 17 + .../examples/ContainerApps_Get.json | 88 ++ .../ContainerApps_ListByResourceGroup.json | 91 ++ .../ContainerApps_ListBySubscription.json | 90 ++ ...tainerApps_ListCustomHostNameAnalysis.json | 42 + .../examples/ContainerApps_ListSecrets.json | 23 + .../examples/ContainerApps_Patch.json | 95 ++ .../DaprComponents_CreateOrUpdate.json | 87 ++ .../examples/DaprComponents_Delete.json | 13 + .../examples/DaprComponents_Get.json | 51 + .../examples/DaprComponents_List.json | 54 + .../examples/DaprComponents_ListSecrets.json | 24 + .../ManagedEnvironmentDiagnostics_Get.json | 68 ++ .../ManagedEnvironmentDiagnostics_List.json | 37 + ...edEnvironmentsStorages_CreateOrUpdate.json | 35 + .../ManagedEnvironmentsStorages_Delete.json | 13 + .../ManagedEnvironmentsStorages_Get.json | 25 + .../ManagedEnvironmentsStorages_List.json | 28 + .../ManagedEnvironments_CreateOrUpdate.json | 63 ++ .../examples/ManagedEnvironments_Delete.json | 14 + .../examples/ManagedEnvironments_Get.json | 26 + ...nagedEnvironments_ListByResourceGroup.json | 45 + ...anagedEnvironments_ListBySubscription.json | 44 + .../examples/ManagedEnvironments_Patch.json | 22 + .../examples/Operations_List.json | 24 + .../examples/Replicas_Get.json | 32 + .../examples/Replicas_List.json | 35 + .../examples/Revisions_Activate.json | 12 + .../examples/Revisions_Deactivate.json | 12 + .../examples/Revisions_Get.json | 58 ++ .../examples/Revisions_List.json | 62 ++ .../examples/Revisions_Restart.json | 12 + .../SourceControls_CreateOrUpdate.json | 75 ++ .../examples/SourceControls_Delete.json | 18 + .../examples/SourceControls_Get.json | 31 + .../SourceControls_ListByContainer.json | 35 + 60 files changed, 8297 insertions(+) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Restart.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json new file mode 100644 index 000000000000..4b27c65ac374 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json @@ -0,0 +1,980 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs": { + "get": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Get the Container App AuthConfigs in a given resource group.", + "operationId": "ContainerAppsAuthConfigs_ListByContainerApp", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AuthConfigCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Auth Configs by Container Apps": { + "$ref": "./examples/AuthConfigs_ListByContainer.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}": { + "get": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Get a AuthConfig of a Container App.", + "operationId": "ContainerAppsAuthConfigs_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "authConfigName", + "in": "path", + "description": "Name of the Container App AuthConfig.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AuthConfig" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's AuthConfig": { + "$ref": "./examples/AuthConfigs_Get.json" + } + } + }, + "put": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Create or update the AuthConfig for a Container App.", + "description": "Description for Create or update the AuthConfig for a Container App.", + "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "authConfigName", + "in": "path", + "description": "Name of the Container App AuthConfig.", + "required": true, + "type": "string" + }, + { + "name": "authConfigEnvelope", + "in": "body", + "description": "Properties used to create a Container App AuthConfig", + "required": true, + "schema": { + "$ref": "#/definitions/AuthConfig" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "$ref": "#/definitions/AuthConfig" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Container App AuthConfig": { + "$ref": "./examples/AuthConfigs_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ContainerAppsAuthConfigs" + ], + "summary": "Delete a Container App AuthConfig.", + "description": "Description for Delete a Container App AuthConfig.", + "operationId": "ContainerAppsAuthConfigs_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "authConfigName", + "in": "path", + "description": "Name of the Container App AuthConfig.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App deleted successfully." + }, + "204": { + "description": "Container App AuthConfig does not exist." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App AuthConfig": { + "$ref": "./examples/AuthConfigs_Delete.json" + } + } + } + } + }, + "definitions": { + "AuthConfigCollection": { + "description": "AuthConfig collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/AuthConfig" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "AuthConfig": { + "description": "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "AuthConfig resource specific properties", + "type": "object", + "properties": { + "platform": { + "$ref": "#/definitions/AuthPlatform", + "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization." + }, + "globalValidation": { + "$ref": "#/definitions/GlobalValidation", + "description": "The configuration settings that determines the validation flow of users using Service Authentication/Authorization." + }, + "identityProviders": { + "$ref": "#/definitions/IdentityProviders", + "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization." + }, + "login": { + "$ref": "#/definitions/Login", + "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization." + }, + "httpSettings": { + "$ref": "#/definitions/HttpSettings", + "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization." + } + }, + "x-ms-client-flatten": true + } + } + }, + "AuthPlatform": { + "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "enabled": { + "description": "true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.", + "type": "boolean" + }, + "runtimeVersion": { + "description": "The RuntimeVersion of the Authentication / Authorization feature in use for the current app.\nThe setting in this value can control the behavior of certain features in the Authentication / Authorization module.", + "type": "string" + } + } + }, + "GlobalValidation": { + "description": "The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "unauthenticatedClientAction": { + "description": "The action to take when an unauthenticated client attempts to access the app.", + "enum": [ + "RedirectToLoginPage", + "AllowAnonymous", + "Return401", + "Return403" + ], + "type": "string", + "x-ms-enum": { + "name": "UnauthenticatedClientActionV2", + "modelAsString": false + } + }, + "redirectToProvider": { + "description": "The default authentication provider to use when multiple providers are configured.\nThis setting is only needed if multiple providers are configured and the unauthenticated client\naction is set to \"RedirectToLoginPage\".", + "type": "string" + }, + "excludedPaths": { + "description": "The paths for which unauthenticated flow would not be redirected to the login page.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "HttpSettings": { + "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "requireHttps": { + "description": "false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true.", + "type": "boolean" + }, + "routes": { + "$ref": "#/definitions/HttpSettingsRoutes", + "description": "The configuration settings of the paths HTTP requests." + }, + "forwardProxy": { + "$ref": "#/definitions/ForwardProxy", + "description": "The configuration settings of a forward proxy used to make the requests." + } + } + }, + "HttpSettingsRoutes": { + "description": "The configuration settings of the paths HTTP requests.", + "type": "object", + "properties": { + "apiPrefix": { + "description": "The prefix that should precede all the authentication/authorization paths.", + "type": "string" + } + } + }, + "ForwardProxy": { + "description": "The configuration settings of a forward proxy used to make the requests.", + "type": "object", + "properties": { + "convention": { + "description": "The convention used to determine the url of the request made.", + "enum": [ + "NoProxy", + "Standard", + "Custom" + ], + "type": "string", + "x-ms-enum": { + "name": "ForwardProxyConvention", + "modelAsString": false + } + }, + "customHostHeaderName": { + "description": "The name of the header containing the host of the request.", + "type": "string" + }, + "customProtoHeaderName": { + "description": "The name of the header containing the scheme of the request.", + "type": "string" + } + } + }, + "Login": { + "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "routes": { + "$ref": "#/definitions/LoginRoutes", + "description": "The routes that specify the endpoints used for login and logout requests." + }, + "preserveUrlFragmentsForLogins": { + "description": "true if the fragments from the request are preserved after the login request is made; otherwise, false.", + "type": "boolean" + }, + "allowedExternalRedirectUrls": { + "description": "External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored.\nThis is an advanced setting typically only needed by Windows Store application backends.\nNote that URLs within the current domain are always implicitly allowed.", + "type": "array", + "items": { + "type": "string" + } + }, + "cookieExpiration": { + "$ref": "#/definitions/CookieExpiration", + "description": "The configuration settings of the session cookie's expiration." + }, + "nonce": { + "$ref": "#/definitions/Nonce", + "description": "The configuration settings of the nonce used in the login flow." + } + } + }, + "LoginRoutes": { + "description": "The routes that specify the endpoints used for login and logout requests.", + "type": "object", + "properties": { + "logoutEndpoint": { + "description": "The endpoint at which a logout request should be made.", + "type": "string" + } + } + }, + "CookieExpiration": { + "description": "The configuration settings of the session cookie's expiration.", + "type": "object", + "properties": { + "convention": { + "description": "The convention used when determining the session cookie's expiration.", + "enum": [ + "FixedTime", + "IdentityProviderDerived" + ], + "type": "string", + "x-ms-enum": { + "name": "CookieExpirationConvention", + "modelAsString": false + } + }, + "timeToExpiration": { + "description": "The time after the request is made when the session cookie should expire.", + "type": "string" + } + } + }, + "Nonce": { + "description": "The configuration settings of the nonce used in the login flow.", + "type": "object", + "properties": { + "validateNonce": { + "description": "false if the nonce should not be validated while completing the login flow; otherwise, true.", + "type": "boolean" + }, + "nonceExpirationInterval": { + "description": "The time after the request is made when the nonce should expire.", + "type": "string" + } + } + }, + "IdentityProviders": { + "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.", + "type": "object", + "properties": { + "azureActiveDirectory": { + "$ref": "#/definitions/AzureActiveDirectory", + "description": "The configuration settings of the Azure Active directory provider." + }, + "facebook": { + "$ref": "#/definitions/Facebook", + "description": "The configuration settings of the Facebook provider." + }, + "gitHub": { + "$ref": "#/definitions/GitHub", + "description": "The configuration settings of the GitHub provider." + }, + "google": { + "$ref": "#/definitions/Google", + "description": "The configuration settings of the Google provider." + }, + "twitter": { + "$ref": "#/definitions/Twitter", + "description": "The configuration settings of the Twitter provider." + }, + "apple": { + "$ref": "#/definitions/Apple", + "description": "The configuration settings of the Apple provider." + }, + "azureStaticWebApps": { + "$ref": "#/definitions/AzureStaticWebApps", + "description": "The configuration settings of the Azure Static Web Apps provider." + }, + "customOpenIdConnectProviders": { + "description": "The map of the name of the alias of each custom Open ID Connect provider to the\nconfiguration settings of the custom Open ID Connect provider.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/CustomOpenIdConnectProvider" + } + } + } + }, + "AzureActiveDirectory": { + "description": "The configuration settings of the Azure Active directory provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AzureActiveDirectoryRegistration", + "description": "The configuration settings of the Azure Active Directory app registration." + }, + "login": { + "$ref": "#/definitions/AzureActiveDirectoryLogin", + "description": "The configuration settings of the Azure Active Directory login flow." + }, + "validation": { + "$ref": "#/definitions/AzureActiveDirectoryValidation", + "description": "The configuration settings of the Azure Active Directory token validation flow." + }, + "isAutoProvisioned": { + "description": "Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling.\nThis is an internal flag primarily intended to support the Azure Management Portal. Users should not\nread or write to this property.", + "type": "boolean" + } + } + }, + "AzureActiveDirectoryLogin": { + "description": "The configuration settings of the Azure Active Directory login flow.", + "type": "object", + "properties": { + "loginParameters": { + "description": "Login parameters to send to the OpenID Connect authorization endpoint when\na user logs in. Each parameter must be in the form \"key=value\".", + "type": "array", + "items": { + "type": "string" + } + }, + "disableWWWAuthenticate": { + "description": "true if the www-authenticate provider should be omitted from the request; otherwise, false.", + "type": "boolean" + } + } + }, + "AzureActiveDirectoryRegistration": { + "description": "The configuration settings of the Azure Active Directory app registration.", + "type": "object", + "properties": { + "openIdIssuer": { + "description": "The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application.\nWhen using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/.\nThis URI is a case-sensitive identifier for the token issuer.\nMore information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html", + "type": "string" + }, + "clientId": { + "description": "The Client ID of this relying party application, known as the client_id.\nThis setting is required for enabling OpenID Connection authentication with Azure Active Directory or \nother 3rd party OpenID Connect providers.\nMore information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html", + "type": "string" + }, + "clientSecretSettingName": { + "description": "The app setting name that contains the client secret of the relying party application.", + "type": "string" + }, + "clientSecretCertificateThumbprint": { + "description": "An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret. It is also optional.", + "type": "string" + }, + "clientSecretCertificateSubjectAlternativeName": { + "description": "An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.", + "type": "string" + }, + "clientSecretCertificateIssuer": { + "description": "An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.", + "type": "string" + } + } + }, + "AzureActiveDirectoryValidation": { + "description": "The configuration settings of the Azure Active Directory token validation flow.", + "type": "object", + "properties": { + "jwtClaimChecks": { + "$ref": "#/definitions/JwtClaimChecks", + "description": "The configuration settings of the checks that should be made while validating the JWT Claims." + }, + "allowedAudiences": { + "description": "The list of audiences that can make successful authentication/authorization requests.", + "type": "array", + "items": { + "type": "string" + } + }, + "defaultAuthorizationPolicy": { + "$ref": "#/definitions/DefaultAuthorizationPolicy", + "description": "The configuration settings of the default authorization policy." + } + } + }, + "JwtClaimChecks": { + "description": "The configuration settings of the checks that should be made while validating the JWT Claims.", + "type": "object", + "properties": { + "allowedGroups": { + "description": "The list of the allowed groups.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowedClientApplications": { + "description": "The list of the allowed client applications.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "DefaultAuthorizationPolicy": { + "description": "The configuration settings of the Azure Active Directory default authorization policy.", + "type": "object", + "properties": { + "allowedPrincipals": { + "$ref": "#/definitions/AllowedPrincipals", + "description": "The configuration settings of the Azure Active Directory allowed principals." + }, + "allowedApplications": { + "description": "The configuration settings of the Azure Active Directory allowed applications.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AllowedPrincipals": { + "description": "The configuration settings of the Azure Active Directory allowed principals.", + "type": "object", + "properties": { + "groups": { + "description": "The list of the allowed groups.", + "type": "array", + "items": { + "type": "string" + } + }, + "identities": { + "description": "The list of the allowed identities.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Facebook": { + "description": "The configuration settings of the Facebook provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Facebook provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AppRegistration", + "description": "The configuration settings of the app registration for the Facebook provider." + }, + "graphApiVersion": { + "description": "The version of the Facebook api to be used while logging in.", + "type": "string" + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + } + } + }, + "AppRegistration": { + "description": "The configuration settings of the app registration for providers that have app ids and app secrets", + "type": "object", + "properties": { + "appId": { + "description": "The App ID of the app used for login.", + "type": "string" + }, + "appSecretSettingName": { + "description": "The app setting name that contains the app secret.", + "type": "string" + } + } + }, + "LoginScopes": { + "description": "The configuration settings of the login flow, including the scopes that should be requested.", + "type": "object", + "properties": { + "scopes": { + "description": "A list of the scopes that should be requested while authenticating.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GitHub": { + "description": "The configuration settings of the GitHub provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the GitHub provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/ClientRegistration", + "description": "The configuration settings of the app registration for the GitHub provider." + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + } + } + }, + "ClientRegistration": { + "description": "The configuration settings of the app registration for providers that have client ids and client secrets", + "type": "object", + "properties": { + "clientId": { + "description": "The Client ID of the app used for login.", + "type": "string" + }, + "clientSecretSettingName": { + "description": "The app setting name that contains the client secret.", + "type": "string" + } + } + }, + "Google": { + "description": "The configuration settings of the Google provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Google provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/ClientRegistration", + "description": "The configuration settings of the app registration for the Google provider." + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + }, + "validation": { + "$ref": "#/definitions/AllowedAudiencesValidation", + "description": "The configuration settings of the Azure Active Directory token validation flow." + } + } + }, + "AllowedAudiencesValidation": { + "description": "The configuration settings of the Allowed Audiences validation flow.", + "type": "object", + "properties": { + "allowedAudiences": { + "description": "The configuration settings of the allowed list of audiences from which to validate the JWT token.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Twitter": { + "description": "The configuration settings of the Twitter provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Twitter provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/TwitterRegistration", + "description": "The configuration settings of the app registration for the Twitter provider." + } + } + }, + "TwitterRegistration": { + "description": "The configuration settings of the app registration for the Twitter provider.", + "type": "object", + "properties": { + "consumerKey": { + "description": "The OAuth 1.0a consumer key of the Twitter application used for sign-in.\nThis setting is required for enabling Twitter Sign-In.\nTwitter Sign-In documentation: https://dev.twitter.com/web/sign-in", + "type": "string" + }, + "consumerSecretSettingName": { + "description": "The app setting name that contains the OAuth 1.0a consumer secret of the Twitter\napplication used for sign-in.", + "type": "string" + } + } + }, + "Apple": { + "description": "The configuration settings of the Apple provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Apple provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AppleRegistration", + "description": "The configuration settings of the Apple registration." + }, + "login": { + "$ref": "#/definitions/LoginScopes", + "description": "The configuration settings of the login flow." + } + } + }, + "AppleRegistration": { + "description": "The configuration settings of the registration for the Apple provider", + "type": "object", + "properties": { + "clientId": { + "description": "The Client ID of the app used for login.", + "type": "string" + }, + "clientSecretSettingName": { + "description": "The app setting name that contains the client secret.", + "type": "string" + } + } + }, + "AzureStaticWebApps": { + "description": "The configuration settings of the Azure Static Web Apps provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/AzureStaticWebAppsRegistration", + "description": "The configuration settings of the Azure Static Web Apps registration." + } + } + }, + "AzureStaticWebAppsRegistration": { + "description": "The configuration settings of the registration for the Azure Static Web Apps provider", + "type": "object", + "properties": { + "clientId": { + "description": "The Client ID of the app used for login.", + "type": "string" + } + } + }, + "CustomOpenIdConnectProvider": { + "description": "The configuration settings of the custom Open ID Connect provider.", + "type": "object", + "properties": { + "enabled": { + "description": "false if the custom Open ID provider provider should not be enabled; otherwise, true.", + "type": "boolean" + }, + "registration": { + "$ref": "#/definitions/OpenIdConnectRegistration", + "description": "The configuration settings of the app registration for the custom Open ID Connect provider." + }, + "login": { + "$ref": "#/definitions/OpenIdConnectLogin", + "description": "The configuration settings of the login flow of the custom Open ID Connect provider." + } + } + }, + "OpenIdConnectRegistration": { + "description": "The configuration settings of the app registration for the custom Open ID Connect provider.", + "type": "object", + "properties": { + "clientId": { + "description": "The client id of the custom Open ID Connect provider.", + "type": "string" + }, + "clientCredential": { + "$ref": "#/definitions/OpenIdConnectClientCredential", + "description": "The authentication credentials of the custom Open ID Connect provider." + }, + "openIdConnectConfiguration": { + "$ref": "#/definitions/OpenIdConnectConfig", + "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider." + } + } + }, + "OpenIdConnectClientCredential": { + "description": "The authentication client credentials of the custom Open ID Connect provider.", + "type": "object", + "properties": { + "method": { + "description": "The method that should be used to authenticate the user.", + "enum": [ + "ClientSecretPost" + ], + "type": "string", + "x-ms-enum": { + "name": "ClientCredentialMethod", + "modelAsString": false + } + }, + "clientSecretSettingName": { + "description": "The app setting that contains the client secret for the custom Open ID Connect provider.", + "type": "string" + } + } + }, + "OpenIdConnectConfig": { + "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider.", + "type": "object", + "properties": { + "authorizationEndpoint": { + "description": "The endpoint to be used to make an authorization request.", + "type": "string" + }, + "tokenEndpoint": { + "description": "The endpoint to be used to request a token.", + "type": "string" + }, + "issuer": { + "description": "The endpoint that issues the token.", + "type": "string" + }, + "certificationUri": { + "description": "The endpoint that provides the keys necessary to validate the token.", + "type": "string" + }, + "wellKnownOpenIdConfiguration": { + "description": "The endpoint that contains all the configuration endpoints for the provider.", + "type": "string" + } + } + }, + "OpenIdConnectLogin": { + "description": "The configuration settings of the login flow of the custom Open ID Connect provider.", + "type": "object", + "properties": { + "nameClaimType": { + "description": "The name of the claim that contains the users name.", + "type": "string" + }, + "scopes": { + "description": "A list of the scopes that should be requested while authenticating.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json new file mode 100644 index 000000000000..d80348dcf8b3 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -0,0 +1,556 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "EnvironmentVar": { + "description": "Container App container environment variable.", + "type": "object", + "properties": { + "name": { + "description": "Environment variable name.", + "type": "string" + }, + "value": { + "description": "Non-secret environment variable value.", + "type": "string" + }, + "secretRef": { + "description": "Name of the Container App secret from which to pull the environment variable value.", + "type": "string" + } + } + }, + "Container": { + "description": "Container App container definition.", + "type": "object", + "properties": { + "image": { + "description": "Container image tag.", + "type": "string" + }, + "name": { + "description": "Custom container name.", + "type": "string" + }, + "command": { + "description": "Container start command.", + "type": "array", + "items": { + "type": "string" + } + }, + "args": { + "description": "Container start command arguments.", + "type": "array", + "items": { + "type": "string" + } + }, + "env": { + "description": "Container environment variables.", + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentVar" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "resources": { + "$ref": "#/definitions/ContainerResources", + "description": "Container resource requirements." + }, + "probes": { + "description": "List of probes for the container.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerAppProbe" + }, + "x-ms-identifiers": [ + "type" + ] + }, + "volumeMounts": { + "description": "Container volume mounts.", + "type": "array", + "items": { + "$ref": "#/definitions/VolumeMount" + }, + "x-ms-identifiers": [ + "volumeName" + ] + } + } + }, + "ContainerResources": { + "description": "Container App container resource requirements.", + "type": "object", + "properties": { + "cpu": { + "format": "double", + "description": "Required CPU in cores, e.g. 0.5", + "type": "number" + }, + "memory": { + "description": "Required memory, e.g. \"250Mb\"", + "type": "string" + }, + "ephemeralStorage": { + "description": "Ephemeral Storage, e.g. \"1Gi\"", + "type": "string", + "readOnly": true + } + } + }, + "ContainerAppProbe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "type": "object", + "properties": { + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10.", + "type": "integer", + "format": "int32" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + } + }, + "x-ms-identifiers": [ + "name" + ] + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "integer", + "format": "int32" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "enum": [ + "HTTP", + "HTTPS" + ], + "type": "string", + "x-ms-enum": { + "name": "Scheme", + "modelAsString": true + } + } + } + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. Minimum value is 1. Maximum value is 60.", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.", + "type": "integer", + "format": "int32" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "integer", + "format": "int32" + } + } + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 hour)", + "type": "integer", + "format": "int64" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 240.", + "type": "integer", + "format": "int32" + }, + "type": { + "description": "The type of probe.", + "enum": [ + "Liveness", + "Readiness", + "Startup" + ], + "type": "string", + "x-ms-enum": { + "name": "Type", + "modelAsString": true + } + } + } + }, + "CustomScaleRule": { + "description": "Container App container Custom scaling rule.", + "type": "object", + "properties": { + "type": { + "description": "Type of the custom scale rule\neg: azure-servicebus, redis etc.", + "type": "string" + }, + "metadata": { + "description": "Metadata properties to describe custom scale rule.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "auth": { + "description": "Authentication secrets for the custom scale rule.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleAuth" + }, + "x-ms-identifiers": [ + "triggerParameter" + ] + } + } + }, + "DefaultErrorResponse": { + "description": "App Service error response.", + "type": "object", + "properties": { + "error": { + "description": "Error model.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "details": { + "type": "array", + "description": "Details or the error", + "items": { + "description": "Detailed errors.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, + "x-ms-identifiers": [ + "code" + ] + }, + "innererror": { + "description": "More information to debug error.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + } + } + }, + "HttpScaleRule": { + "description": "Container App container Custom scaling rule.", + "type": "object", + "properties": { + "metadata": { + "description": "Metadata properties to describe http scale rule.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "auth": { + "description": "Authentication secrets for the custom scale rule.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleAuth" + }, + "x-ms-identifiers": [ + "triggerParameter" + ] + } + } + }, + "QueueScaleRule": { + "description": "Container App container Azure Queue based scaling rule.", + "type": "object", + "properties": { + "queueName": { + "description": "Queue name.", + "type": "string" + }, + "queueLength": { + "format": "int32", + "description": "Queue length.", + "type": "integer" + }, + "auth": { + "description": "Authentication secrets for the queue scale rule.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleAuth" + }, + "x-ms-identifiers": [ + "triggerParameter" + ] + } + } + }, + "Scale": { + "description": "Container App scaling configurations.", + "type": "object", + "properties": { + "minReplicas": { + "format": "int32", + "description": "Optional. Minimum number of container replicas.", + "type": "integer" + }, + "maxReplicas": { + "format": "int32", + "description": "Optional. Maximum number of container replicas. Defaults to 10 if not set.", + "type": "integer" + }, + "rules": { + "description": "Scaling rules.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRule" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "ScaleRule": { + "description": "Container App container scaling rule.", + "type": "object", + "properties": { + "name": { + "description": "Scale Rule Name", + "type": "string" + }, + "azureQueue": { + "$ref": "#/definitions/QueueScaleRule", + "description": "Azure Queue based scaling." + }, + "custom": { + "$ref": "#/definitions/CustomScaleRule", + "description": "Custom scale rule." + }, + "http": { + "$ref": "#/definitions/HttpScaleRule", + "description": "HTTP requests based scaling." + } + } + }, + "ScaleRuleAuth": { + "description": "Auth Secrets for Container App Scale Rule", + "type": "object", + "properties": { + "secretRef": { + "description": "Name of the Container App secret from which to pull the auth params.", + "type": "string" + }, + "triggerParameter": { + "description": "Trigger Parameter that uses the secret", + "type": "string" + } + } + }, + "Secret": { + "description": "Secret definition.", + "type": "object", + "properties": { + "name": { + "description": "Secret Name.", + "type": "string" + }, + "value": { + "description": "Secret Value.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "Template": { + "description": "Container App versioned application definition.\nDefines the desired state of an immutable revision.\nAny changes to this section Will result in a new revision being created", + "type": "object", + "properties": { + "revisionSuffix": { + "description": "User friendly suffix that is appended to the revision name", + "type": "string" + }, + "containers": { + "description": "List of container definitions for the Container App.", + "type": "array", + "items": { + "$ref": "#/definitions/Container" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "scale": { + "$ref": "#/definitions/Scale", + "description": "Scaling properties for the Container App." + }, + "volumes": { + "description": "List of volume definitions for the Container App.", + "type": "array", + "items": { + "$ref": "#/definitions/Volume" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "Volume": { + "description": "Volume definitions for the Container App.", + "type": "object", + "properties": { + "name": { + "description": "Volume name.", + "type": "string" + }, + "storageType": { + "description": "Storage type for the volume. If not provided, use EmptyDir.", + "enum": [ + "AzureFile", + "EmptyDir" + ], + "type": "string", + "x-ms-enum": { + "name": "StorageType", + "modelAsString": true + } + }, + "storageName": { + "description": "Name of storage resource. No need to provide for EmptyDir.", + "type": "string" + } + } + }, + "VolumeMount": { + "description": "Volume mount for the Container App.", + "type": "object", + "properties": { + "volumeName": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "mountPath": { + "description": "Path within the container at which the volume should be mounted.Must not contain ':'.", + "type": "string" + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json new file mode 100644 index 000000000000..454e2c81a224 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -0,0 +1,905 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps": { + "get": { + "tags": [ + "ContainerApps" + ], + "summary": "Get the Container Apps in a given subscription.", + "operationId": "ContainerApps_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerAppCollection" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps by subscription": { + "$ref": "./examples/ContainerApps_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps": { + "get": { + "tags": [ + "ContainerApps" + ], + "summary": "Get the Container Apps in a given resource group.", + "operationId": "ContainerApps_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerAppCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps by resource group": { + "$ref": "./examples/ContainerApps_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}": { + "get": { + "tags": [ + "ContainerApps" + ], + "summary": "Get the properties of a Container App.", + "operationId": "ContainerApps_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App": { + "$ref": "./examples/ContainerApps_Get.json" + } + } + }, + "put": { + "tags": [ + "ContainerApps" + ], + "summary": "Create or update a Container App.", + "description": "Description for Create or update a Container App.", + "operationId": "ContainerApps_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "containerAppEnvelope", + "in": "body", + "description": "Properties used to create a container app", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No change performed on the Container App.", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + "201": { + "description": "Container App create or update has been started.", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Container App": { + "$ref": "./examples/ContainerApps_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "ContainerApps" + ], + "summary": "Delete a Container App.", + "description": "Description for Delete a Container App.", + "operationId": "ContainerApps_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App deleted successfully." + }, + "202": { + "description": "Delete operation is in progress." + }, + "204": { + "description": "Container App does not exist." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App": { + "$ref": "./examples/ContainerApps_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "ContainerApps" + ], + "summary": "Update properties of a Container App", + "description": "Patches a Container App using JSON Merge Patch", + "operationId": "ContainerApps_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "containerAppEnvelope", + "in": "body", + "required": true, + "description": "Properties of a Container App that need to be updated", + "schema": { + "$ref": "#/definitions/ContainerApp" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Patch operation is in progress." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Container App": { + "$ref": "./examples/ContainerApps_Patch.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis": { + "post": { + "tags": [ + "ContainerApps" + ], + "summary": "Analyzes a custom hostname for a Container App", + "operationId": "ContainerApps_ListCustomHostNameAnalysis", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "customHostname", + "in": "query", + "description": "Custom hostname.", + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomHostnameAnalysisResult" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Analyze Custom Hostname": { + "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysis.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets": { + "post": { + "tags": [ + "ContainerApps" + ], + "summary": "List secrets for a container app", + "operationId": "ContainerApps_ListSecrets", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecretsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps Secrets": { + "$ref": "./examples/ContainerApps_ListSecrets.json" + } + } + } + } + }, + "definitions": { + "Configuration": { + "description": "Non versioned Container App configuration properties that define the mutable settings of a Container app", + "type": "object", + "properties": { + "secrets": { + "description": "Collection of secrets used by a Container app", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "activeRevisionsMode": { + "description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\nMultiple: multiple revisions can be active.Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.", + "enum": [ + "Multiple", + "Single" + ], + "type": "string", + "x-ms-enum": { + "name": "ActiveRevisionsMode", + "modelAsString": true + } + }, + "ingress": { + "$ref": "#/definitions/Ingress", + "description": "Ingress configurations." + }, + "registries": { + "description": "Collection of private container registry credentials for containers used by the Container app", + "type": "array", + "items": { + "$ref": "#/definitions/RegistryCredentials" + }, + "x-ms-identifiers": [ + "server" + ] + }, + "dapr": { + "$ref": "#/definitions/Dapr", + "description": "Dapr configuration for the Container App." + } + } + }, + "ContainerApp": { + "description": "Container App.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "identity": { + "description": "managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.", + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + }, + "properties": { + "description": "ContainerApp resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the Container App.", + "enum": [ + "InProgress", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ContainerAppProvisioningState", + "modelAsString": true + } + }, + "managedEnvironmentId": { + "description": "Resource ID of the Container App's environment.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "latestRevisionName": { + "description": "Name of the latest revision of the Container App.", + "type": "string", + "readOnly": true + }, + "latestRevisionFqdn": { + "description": "Fully Qualified Domain Name of the latest revision of the Container App.", + "type": "string", + "readOnly": true + }, + "customDomainVerificationId": { + "description": "Id used to verify domain name ownership", + "type": "string", + "readOnly": true + }, + "configuration": { + "$ref": "#/definitions/Configuration", + "description": "Non versioned Container App configuration properties." + }, + "template": { + "$ref": "./CommonDefinitions.json#/definitions/Template", + "description": "Container App versioned application definition." + }, + "outboundIPAddresses": { + "description": "Outbound IP Addresses for container app.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "x-ms-client-flatten": true + } + } + }, + "ContainerAppCollection": { + "description": "Container App collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerApp" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "Dapr": { + "description": "Container App Dapr configuration.", + "type": "object", + "properties": { + "enabled": { + "description": "Boolean indicating if the Dapr side car is enabled", + "type": "boolean" + }, + "appId": { + "description": "Dapr application identifier", + "type": "string" + }, + "appProtocol": { + "description": "Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http", + "enum": [ + "http", + "grpc" + ], + "type": "string", + "x-ms-enum": { + "name": "appProtocol", + "modelAsString": true + } + }, + "appPort": { + "format": "int32", + "description": "Tells Dapr which port your application is listening on", + "type": "integer" + }, + "httpReadBufferSize": { + "type": "integer", + "format": "int32" + } + } + }, + "Ingress": { + "description": "Container App Ingress configuration.", + "type": "object", + "properties": { + "fqdn": { + "description": "Hostname.", + "type": "string", + "readOnly": true + }, + "external": { + "description": "Bool indicating if app exposes an external http endpoint", + "default": false, + "type": "boolean" + }, + "targetPort": { + "format": "int32", + "description": "Target Port in containers for traffic from ingress", + "type": "integer" + }, + "transport": { + "description": "Ingress transport protocol", + "enum": [ + "auto", + "http", + "http2" + ], + "type": "string", + "x-ms-enum": { + "name": "IngressTransportMethod", + "modelAsString": true + } + }, + "traffic": { + "description": "Traffic weights for app's revisions", + "type": "array", + "items": { + "$ref": "#/definitions/TrafficWeight" + }, + "x-ms-identifiers": [ + "revisionName" + ] + }, + "customDomains": { + "description": "custom domain bindings for Container Apps' hostnames.", + "type": "array", + "items": { + "$ref": "#/definitions/CustomDomain" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "allowInsecure": { + "description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections", + "type": "boolean" + } + } + }, + "RegistryCredentials": { + "description": "Container App Private Registry", + "type": "object", + "properties": { + "server": { + "description": "Container Registry Server", + "type": "string" + }, + "username": { + "description": "Container Registry Username", + "type": "string" + }, + "passwordSecretRef": { + "description": "The name of the Secret that contains the registry login password", + "type": "string" + }, + "identity": { + "description": "A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'", + "type": "string" + } + } + }, + "SecretsCollection": { + "description": "Container App Secrets Collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerAppSecret" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "ContainerAppSecret": { + "description": "Container App Secret.", + "type": "object", + "properties": { + "name": { + "description": "Secret Name.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Secret Value.", + "type": "string", + "x-ms-secret": true, + "readOnly": true + } + } + }, + "TrafficWeight": { + "description": "Traffic weight assigned to a revision", + "type": "object", + "properties": { + "revisionName": { + "description": "Name of a revision", + "type": "string" + }, + "weight": { + "format": "int32", + "description": "Traffic weight assigned to a revision", + "type": "integer" + }, + "latestRevision": { + "description": "Indicates that the traffic weight belongs to a latest stable revision", + "default": false, + "type": "boolean" + }, + "label": { + "description": "Associates a traffic label with a revision", + "type": "string" + } + } + }, + "CustomDomain": { + "description": "Custom Domain of a Container App", + "type": "object", + "required": [ + "name", + "certificateId" + ], + "properties": { + "name": { + "description": "Hostname.", + "type": "string" + }, + "bindingType": { + "description": "Custom Domain binding type.", + "enum": [ + "Disabled", + "SniEnabled" + ], + "type": "string", + "x-ms-enum": { + "name": "bindingType", + "modelAsString": true + } + }, + "certificateId": { + "description": "Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment.", + "type": "string" + } + } + }, + "CustomHostnameAnalysisResult": { + "description": "Custom domain analysis.", + "type": "object", + "properties": { + "hostName": { + "description": "Host name that was analyzed", + "type": "string", + "readOnly": true + }, + "isHostnameAlreadyVerified": { + "description": "true if hostname is already verified; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "customDomainVerificationTest": { + "description": "DNS verification test result.", + "enum": [ + "Passed", + "Failed", + "Skipped" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DnsVerificationTestResult", + "modelAsString": false + } + }, + "customDomainVerificationFailureInfo": { + "description": "Raw failure information if DNS verification fails.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "details": { + "type": "array", + "description": "Details or the error", + "items": { + "description": "Detailed errors.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, + "x-ms-identifiers": [ + "code" + ] + } + }, + "readOnly": true + }, + "hasConflictOnManagedEnvironment": { + "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "conflictingContainerAppResourceId": { + "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "type": "string", + "readOnly": true + }, + "cNameRecords": { + "description": "CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "txtRecords": { + "description": "TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "aRecords": { + "description": "A records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateCNameRecords": { + "description": "Alternate CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateTxtRecords": { + "description": "Alternate TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-ms-client-flatten": true + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json new file mode 100644 index 000000000000..0dca517cf280 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json @@ -0,0 +1,623 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions": { + "get": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Get the Revisions for a given Container App.", + "operationId": "ContainerAppsRevisions_ListRevisions", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App for which Revisions are needed.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply on the operation.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RevisionCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container App's revisions": { + "$ref": "./examples/Revisions_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Revision" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}": { + "get": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Get a revision of a Container App.", + "operationId": "ContainerAppsRevisions_GetRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Revision" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's revision": { + "$ref": "./examples/Revisions_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate": { + "post": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Activates a revision for a Container App", + "operationId": "ContainerAppsRevisions_ActivateRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App revision was activated" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Activate Container App's revision": { + "$ref": "./examples/Revisions_Activate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate": { + "post": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Deactivates a revision for a Container App", + "operationId": "ContainerAppsRevisions_DeactivateRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App revision was deactivated" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Deactivate Container App's revision": { + "$ref": "./examples/Revisions_Deactivate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}": { + "get": { + "tags": [ + "ContainerAppsRevisionReplicas" + ], + "summary": "Get a replica for a Container App Revision.", + "operationId": "ContainerAppsRevisionReplicas_GetReplica", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "name": "replicaName", + "in": "path", + "description": "Name of the Container App Revision Replica.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Replica" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's revision replica": { + "$ref": "./examples/Replicas_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas": { + "get": { + "tags": [ + "ContainerAppsRevisionReplicas" + ], + "summary": "List replicas for a Container App Revision.", + "operationId": "ContainerAppsRevisionReplicas_ListReplicas", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ReplicaCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container App's replicas": { + "$ref": "./examples/Replicas_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart": { + "post": { + "tags": [ + "ContainerAppsRevisions" + ], + "summary": "Restarts a revision for a Container App", + "operationId": "ContainerAppsRevisions_RestartRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App revision was restarted" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Restart Container App's revision": { + "$ref": "./examples/Revisions_Restart.json" + } + } + } + } + }, + "definitions": { + "Revision": { + "description": "Container App Revision.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Revision resource specific properties", + "type": "object", + "properties": { + "createdTime": { + "format": "date-time", + "description": "Timestamp describing when the revision was created\nby controller", + "type": "string", + "readOnly": true + }, + "fqdn": { + "description": "Fully qualified domain name of the revision", + "type": "string", + "readOnly": true + }, + "template": { + "$ref": "./CommonDefinitions.json#/definitions/Template", + "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time", + "readOnly": true + }, + "active": { + "description": "Boolean describing if the Revision is Active", + "type": "boolean", + "readOnly": true + }, + "replicas": { + "format": "int32", + "description": "Number of pods currently running for this revision", + "type": "integer", + "readOnly": true + }, + "trafficWeight": { + "format": "int32", + "description": "Traffic weight assigned to this revision", + "type": "integer", + "readOnly": true + }, + "trafficLabels": { + "description": "Traffic labels associated with this revision", + "type": "array", + "items": { + "$ref": "#/definitions/TrafficLabel" + }, + "x-ms-identifiers": [ + "label" + ], + "readOnly": true + }, + "provisioningError": { + "description": "Optional Field - Platform Error Message", + "type": "string", + "readOnly": true + }, + "healthState": { + "description": "Current health State of the revision", + "enum": [ + "Healthy", + "Unhealthy", + "None" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "RevisionHealthState", + "modelAsString": true + } + }, + "provisioningState": { + "description": "Current provisioning State of the revision", + "enum": [ + "Provisioning", + "Provisioned", + "Failed", + "Deprovisioning", + "Deprovisioned" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "RevisionProvisioningState", + "modelAsString": true + } + } + }, + "x-ms-client-flatten": true + } + } + }, + "TrafficLabel": { + "description": "Traffic label information", + "type": "object", + "properties": { + "label": { + "description": "Traffic label assigned to a revision", + "type": "string", + "readOnly": true + }, + "fqdn": { + "description": "Fully qualified domain name of a labelled revision", + "type": "string", + "readOnly": true + } + } + }, + "RevisionCollection": { + "description": "Container App Revisions collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Revision" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "Replica": { + "description": "Container App Revision Replica.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Replica resource specific properties", + "type": "object", + "properties": { + "createdTime": { + "type": "string", + "description": "Timestamp describing when the pod was created by controller", + "format": "date-time", + "readOnly": true + }, + "containers": { + "description": "The containers collection under a replica.", + "type": "array", + "items": { + "$ref": "#/definitions/ReplicaContainer" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "x-ms-client-flatten": true + } + } + }, + "ReplicaCollection": { + "description": "Container App Revision Replicas collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Replica" + } + } + } + }, + "ReplicaContainer": { + "description": "Container object under Container App Revision Replica.", + "type": "object", + "properties": { + "name": { + "description": "The Name of the Container", + "type": "string" + }, + "containerId": { + "description": "The Id of the Container", + "type": "string" + }, + "ready": { + "description": "The container ready status", + "type": "boolean" + }, + "started": { + "description": "The container start status", + "type": "boolean" + }, + "restartCount": { + "format": "int32", + "description": "The container restart count", + "type": "integer" + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json new file mode 100644 index 000000000000..139790aae081 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json @@ -0,0 +1,428 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents": { + "get": { + "tags": [ + "DaprComponents" + ], + "summary": "Get the Dapr Components for a managed environment.", + "operationId": "DaprComponents_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprComponentsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Dapr Components": { + "$ref": "./examples/DaprComponents_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}": { + "get": { + "tags": [ + "DaprComponents" + ], + "summary": "Get a dapr component.", + "operationId": "DaprComponents_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprComponent" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Dapr Component": { + "$ref": "./examples/DaprComponents_Get.json" + } + } + }, + "put": { + "tags": [ + "DaprComponents" + ], + "summary": "Creates or updates a Dapr Component.", + "description": "Creates or updates a Dapr Component in a Managed Environment.", + "operationId": "DaprComponents_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "name": "daprComponentEnvelope", + "in": "body", + "description": "Configuration details of the Dapr Component.", + "required": true, + "schema": { + "$ref": "#/definitions/DaprComponent" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprComponent" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "x-ms-examples": { + "Create or update dapr component": { + "$ref": "./examples/DaprComponents_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "DaprComponents" + ], + "summary": "Delete a Dapr Component.", + "description": "Delete a Dapr Component from a Managed Environment.", + "operationId": "DaprComponents_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "204": { + "description": "Environment does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete dapr component": { + "$ref": "./examples/DaprComponents_Delete.json" + } + }, + "x-ms-long-running-operation": false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets": { + "post": { + "tags": [ + "DaprComponents" + ], + "summary": "List secrets for a dapr component", + "operationId": "DaprComponents_ListSecrets", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DaprSecretsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps Secrets": { + "$ref": "./examples/DaprComponents_ListSecrets.json" + } + } + } + } + }, + "definitions": { + "DaprComponentsCollection": { + "description": "Dapr Components ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/DaprComponent" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "DaprComponent": { + "description": "Dapr Component.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Dapr Component resource specific properties", + "type": "object", + "properties": { + "componentType": { + "description": "Component type", + "type": "string" + }, + "version": { + "description": "Component version", + "type": "string" + }, + "ignoreErrors": { + "description": "Boolean describing if the component errors are ignores", + "type": "boolean" + }, + "initTimeout": { + "description": "Initialization timeout", + "type": "string" + }, + "secrets": { + "description": "Collection of secrets used by a Dapr component", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "metadata": { + "description": "Component metadata", + "type": "array", + "items": { + "$ref": "#/definitions/DaprMetadata" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "scopes": { + "description": "Names of container apps that can use this Dapr component", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-ms-client-flatten": true + } + } + }, + "DaprMetadata": { + "description": "Dapr component metadata.", + "type": "object", + "properties": { + "name": { + "description": "Metadata property name.", + "type": "string" + }, + "value": { + "description": "Metadata property value.", + "type": "string" + }, + "secretRef": { + "description": "Name of the Dapr Component secret from which to pull the metadata property value.", + "type": "string" + } + } + }, + "DaprSecretsCollection": { + "description": "Dapr component Secrets Collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of secrets used by a Dapr component", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json new file mode 100644 index 000000000000..e107bb4095dd --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json @@ -0,0 +1,715 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get the list of diagnostics for a given Container App.", + "operationId": "ContainerAppsDiagnostics_ListDetectors", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App for which detector info is needed.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiagnosticsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the list of available diagnostics for a given Container App": { + "$ref": "./examples/ContainerAppsDiagnostics_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{detectorName}": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get a diagnostics result of a Container App.", + "operationId": "ContainerAppsDiagnostics_GetDetector", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "detectorName", + "in": "path", + "description": "Name of the Container App Detector.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Diagnostics" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's diagnostics info": { + "$ref": "./examples/ContainerAppsDiagnostics_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get the Revisions for a given Container App.", + "operationId": "ContainerAppsDiagnostics_ListRevisions", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App for which Revisions are needed.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "The filter to apply on the operation.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./ContainerAppsRevisions.json#/definitions/RevisionCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container App's revisions": { + "$ref": "./examples/Revisions_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Revision" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/{revisionName}": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get a revision of a Container App.", + "operationId": "ContainerAppsDiagnostics_GetRevision", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "revisionName", + "in": "path", + "description": "Name of the Container App Revision.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./ContainerAppsRevisions.json#/definitions/Revision" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's revision": { + "$ref": "./examples/Revisions_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/rootApi/": { + "get": { + "tags": [ + "ContainerApps", + "Diagnostics" + ], + "summary": "Get the properties of a Container App.", + "operationId": "ContainerAppsDiagnostics_GetRoot", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "./ContainerApps.json#/definitions/ContainerApp" + } + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App": { + "$ref": "./examples/ContainerApps_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors": { + "get": { + "tags": [ + "ManagedEnvironments", + "Diagnostics" + ], + "summary": "Get the list of diagnostics for a given Managed Environment.", + "description": "Get the list of diagnostics for a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironmentDiagnostics_ListDetectors", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiagnosticsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the list of available diagnostic data for a managed environments": { + "$ref": "./examples/ManagedEnvironmentDiagnostics_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}": { + "get": { + "tags": [ + "ManagedEnvironments", + "Diagnostics" + ], + "summary": "Get the diagnostics data for a given Managed Environment.", + "description": "Get the diagnostics data for a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironmentDiagnostics_GetDetector", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "detectorName", + "in": "path", + "description": "Name of the Managed Environment detector.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Diagnostics" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get diagnostic data for a managed environments": { + "$ref": "./examples/ManagedEnvironmentDiagnostics_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorproperties/rootApi/": { + "get": { + "tags": [ + "ManagedEnvironments", + "Diagnostics" + ], + "summary": "Get the properties of a Managed Environment.", + "description": "Get the properties of a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironmentsDiagnostics_GetRoot", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./ManagedEnvironments.json#/definitions/ManagedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get environments by name": { + "$ref": "./examples/ManagedEnvironments_Get.json" + } + } + } + } + }, + "definitions": { + "DiagnosticsCollection": { + "description": "Diagnostics data collection for a resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of diagnostic data.", + "type": "array", + "items": { + "$ref": "#/definitions/Diagnostics" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "Diagnostics": { + "description": "Diagnostics data for a resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Diagnostics resource specific properties", + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/DiagnosticsDefinition", + "description": "Metadata of the diagnostics response." + }, + "dataset": { + "description": "Set of data collections associated with the response.", + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticsDataApiResponse" + }, + "x-ms-identifiers": [] + }, + "status": { + "$ref": "#/definitions/DiagnosticsStatus", + "description": "Status of the diagnostics response." + }, + "dataProviderMetadata": { + "$ref": "#/definitions/DiagnosticDataProviderMetadata", + "description": "List of data providers' metadata." + } + } + } + } + }, + "DiagnosticsDefinition": { + "description": "Metadata of the diagnostics response", + "type": "object", + "properties": { + "id": { + "description": "Unique detector name", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Display Name of the detector", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Details of the diagnostics info", + "type": "string", + "readOnly": true + }, + "author": { + "description": "Authors' names of the detector", + "type": "string", + "readOnly": true + }, + "category": { + "description": "Category of the detector", + "type": "string", + "readOnly": true + }, + "supportTopicList": { + "description": "List of support topics", + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticSupportTopic" + } + }, + "analysisTypes": { + "description": "List of analysis types", + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "description": "Authors' names of the detector", + "type": "string", + "readOnly": true + }, + "score": { + "description": "Authors' names of the detector", + "type": "number", + "readOnly": true + } + } + }, + "DiagnosticSupportTopic": { + "description": "Support topic information", + "type": "object", + "properties": { + "id": { + "description": "Unique topic identifier", + "type": "string", + "readOnly": true + }, + "pesId": { + "description": "PES identifier", + "type": "string", + "readOnly": true + } + } + }, + "DiagnosticsDataApiResponse": { + "description": "Diagnostics data returned from a detector", + "type": "object", + "properties": { + "table": { + "description": "Table response", + "$ref": "#/definitions/DiagnosticDataTableResponseObject" + }, + "renderingProperties": { + "description": "Details of the table response", + "$ref": "#/definitions/DiagnosticRendering" + } + } + }, + "DiagnosticDataTableResponseObject": { + "description": "Diagnostics data table", + "type": "object", + "properties": { + "tableName": { + "description": "Table name", + "type": "string" + }, + "columns": { + "description": "Columns in the table", + "type": "array", + "items": { + "$ref": "#/definitions/DiagnosticDataTableResponseColumn" + }, + "x-ms-identifiers": [ + "columnName" + ] + }, + "rows": { + "description": "Rows in the table", + "type": "array", + "items": { + "type": "object" + }, + "x-ms-identifiers": [] + } + } + }, + "DiagnosticDataTableResponseColumn": { + "description": "Diagnostics data column", + "type": "object", + "properties": { + "columnName": { + "description": "Column name", + "type": "string" + }, + "dataType": { + "description": "Data type of the column", + "type": "string" + }, + "columnType": { + "description": "Column type", + "type": "string" + } + } + }, + "DiagnosticRendering": { + "description": "Rendering details of a diagnostics table", + "type": "object", + "properties": { + "type": { + "format": "int32", + "description": "Rendering type", + "type": "integer" + }, + "title": { + "description": "Title of the table", + "type": "string" + }, + "description": { + "description": "Description of the table", + "type": "string" + }, + "isVisible": { + "description": "Flag if the table should be rendered", + "type": "boolean" + } + } + }, + "DiagnosticsStatus": { + "description": "Rendering details of a diagnostics table", + "type": "object", + "properties": { + "message": { + "description": "Diagnostic message", + "type": "string" + }, + "statusId": { + "format": "int32", + "description": "Status", + "type": "integer" + } + } + }, + "DiagnosticDataProviderMetadata": { + "description": "Details of a diagnostics data provider", + "type": "object", + "properties": { + "providerName": { + "description": "Name of data provider", + "type": "string" + }, + "propertyBag": { + "description": "Collection of properties", + "type": "array", + "items": { + "description": "Property details", + "type": "object", + "properties": { + "name": { + "description": "Property name", + "type": "string" + }, + "value": { + "description": "Property value", + "type": "string" + } + } + }, + "x-ms-identifiers": [ + "name" + ] + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json new file mode 100644 index 000000000000..83c07d1b6943 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json @@ -0,0 +1,140 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.App/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available RP operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AvailableOperations" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all operations": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "AvailableOperations": { + "description": "Available operations of the service", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/OperationDetail" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "OperationDetail": { + "description": "Operation detail payload", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "Display of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + } + } + }, + "OperationDisplay": { + "description": "Operation display payload", + "type": "object", + "properties": { + "provider": { + "description": "Resource provider of the operation", + "type": "string" + }, + "resource": { + "description": "Resource of the operation", + "type": "string" + }, + "operation": { + "description": "Localized friendly name for the operation", + "type": "string" + }, + "description": { + "description": "Localized friendly description for the operation", + "type": "string" + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json new file mode 100644 index 000000000000..f2a44ddef010 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -0,0 +1,986 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments": { + "get": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Get all Environments for a subscription.", + "description": "Get all Managed Environments for a subscription.", + "operationId": "ManagedEnvironments_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List environments by subscription": { + "$ref": "./examples/ManagedEnvironments_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments": { + "get": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Get all the Environments in a resource group.", + "description": "Get all the Managed Environments in a resource group.", + "operationId": "ManagedEnvironments_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List environments by resource group": { + "$ref": "./examples/ManagedEnvironments_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}": { + "get": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Get the properties of a Managed Environment.", + "description": "Get the properties of a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironments_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get environments by name": { + "$ref": "./examples/ManagedEnvironments_Get.json" + } + } + }, + "put": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Creates or updates a Managed Environment.", + "description": "Creates or updates a Managed Environment used to host container apps.", + "operationId": "ManagedEnvironments_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "environmentEnvelope", + "in": "body", + "description": "Configuration details of the Environment.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create environments": { + "$ref": "./examples/ManagedEnvironments_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Delete a Managed Environment.", + "description": "Delete a Managed Environment if it does not have any container apps.", + "operationId": "ManagedEnvironments_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "202": { + "description": "Delete operation is in progress" + }, + "204": { + "description": "Environment does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete environment by name": { + "$ref": "./examples/ManagedEnvironments_Delete.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Update Managed Environment's properties.", + "description": "Patches a Managed Environment using JSON Merge Patch", + "operationId": "ManagedEnvironments_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "environmentEnvelope", + "in": "body", + "description": "Configuration details of the Environment.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Patch operation is in progress." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Managed Environment": { + "$ref": "./examples/ManagedEnvironments_Patch.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates": { + "get": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Get the Certificates in a given managed environment.", + "operationId": "Certificates_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CertificateCollection" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Certificates by Managed Environment": { + "$ref": "./examples/Certificates_ListByManagedEnvironment.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}": { + "get": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Get the specified Certificate.", + "operationId": "Certificates_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Certificate": { + "$ref": "./examples/Certificate_Get.json" + } + } + }, + "put": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Create or Update a Certificate.", + "operationId": "Certificates_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "name": "certificateEnvelope", + "in": "body", + "description": "Certificate to be created or updated", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Certificate": { + "$ref": "./examples/Certificate_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Deletes the specified Certificate.", + "operationId": "Certificates_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "204": { + "description": "Certificate does not exist" + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Certificate": { + "$ref": "./examples/Certificate_Delete.json" + } + } + }, + "patch": { + "tags": [ + "ManagedEnvironments", + "Certificates" + ], + "summary": "Update properties of a certificate", + "description": "Patches a certificate. Currently only patching of tags is supported", + "operationId": "Certificates_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "name": "certificateEnvelope", + "in": "body", + "required": true, + "description": "Properties of a certificate that need to be updated", + "schema": { + "$ref": "#/definitions/CertificatePatch" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App updated successfully.", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Certificate": { + "$ref": "./examples/Certificates_Patch.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability": { + "post": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Checks the resource name availability.", + "description": "Checks if resource name is available.", + "operationId": "Namespaces_CheckNameAvailability", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "checkNameAvailabilityRequest", + "in": "body", + "description": "The check name availability request.", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "ContainerApps_CheckNameAvailability": { + "$ref": "./examples/ContainerApps_CheckNameAvailability.json" + }, + "Certificates_CheckNameAvailability": { + "$ref": "./examples/Certificates_CheckNameAvailability.json" + } + } + } + } + }, + "definitions": { + "AppLogsConfiguration": { + "description": "Configuration of application logs", + "type": "object", + "properties": { + "destination": { + "description": "Logs destination", + "type": "string" + }, + "logAnalyticsConfiguration": { + "description": "Log Analytics configuration", + "$ref": "#/definitions/LogAnalyticsConfiguration" + } + } + }, + "VnetConfiguration": { + "type": "object", + "description": "Configuration properties for apps environment to join a Virtual Network", + "properties": { + "internal": { + "type": "boolean", + "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide runtimeSubnetId and infrastructureSubnetId if enabling this property", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "infrastructureSubnetId": { + "type": "string", + "description": "Resource ID of a subnet for infrastructure components. This subnet must be in the same VNET as the subnet defined in runtimeSubnetId. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "runtimeSubnetId": { + "type": "string", + "description": "Resource ID of a subnet that Container App containers are injected into. This subnet must be in the same VNET as the subnet defined in infrastructureSubnetId. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "dockerBridgeCidr": { + "type": "string", + "description": "CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "platformReservedCidr": { + "type": "string", + "description": "IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other provided IP ranges.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "platformReservedDnsIP": { + "type": "string", + "description": " An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server.", + "x-ms-mutability": [ + "create", + "read" + ] + } + } + }, + "ManagedEnvironment": { + "description": "An environment for hosting container apps", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Managed environment resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the Environment.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Waiting", + "InitializationInProgress", + "InfrastructureSetupInProgress", + "InfrastructureSetupComplete", + "ScheduledForDelete", + "UpgradeRequested", + "UpgradeFailed" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "EnvironmentProvisioningState", + "modelAsString": true + } + }, + "daprAIInstrumentationKey": { + "type": "string", + "description": "Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry", + "x-ms-mutability": [ + "create", + "read" + ], + "x-ms-secret": true + }, + "daprAIConnectionString": { + "type": "string", + "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", + "x-ms-mutability": [ + "create", + "read" + ], + "x-ms-secret": true + }, + "vnetConfiguration": { + "description": "Vnet configuration for the environment", + "$ref": "#/definitions/VnetConfiguration" + }, + "deploymentErrors": { + "description": "Any errors that occurred during deployment or deployment validation", + "type": "string", + "readOnly": true + }, + "defaultDomain": { + "description": "Default Domain Name for the cluster", + "type": "string", + "readOnly": true + }, + "staticIp": { + "description": "Static IP of the Environment", + "type": "string", + "readOnly": true + }, + "appLogsConfiguration": { + "$ref": "#/definitions/AppLogsConfiguration", + "description": "Cluster configuration which enables the log daemon to export\napp logs to a destination. Currently only \"log-analytics\" is\nsupported" + }, + "zoneRedundant": { + "description": "Whether or not this Managed Environment is zone-redundant.", + "type": "boolean", + "x-ms-mutability": [ + "create", + "read" + ] + } + }, + "x-ms-client-flatten": true + } + } + }, + "ManagedEnvironmentsCollection": { + "description": "Collection of Environments", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagedEnvironment" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "LogAnalyticsConfiguration": { + "description": "Log analytics configuration", + "type": "object", + "properties": { + "customerId": { + "description": "Log analytics customer id", + "type": "string" + }, + "sharedKey": { + "description": "Log analytics customer key", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "Certificate": { + "description": "Certificate used for Custom Domain bindings of Container Apps in a Managed Environment", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Certificate resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the certificate.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "DeleteFailed", + "Pending" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "CertificateProvisioningState", + "modelAsString": true + } + }, + "password": { + "description": "Certificate password.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "subjectName": { + "description": "Subject name of the certificate.", + "type": "string", + "readOnly": true + }, + "value": { + "format": "byte", + "description": "PFX or PEM blob", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "issuer": { + "description": "Certificate issuer.", + "type": "string", + "readOnly": true + }, + "issueDate": { + "format": "date-time", + "description": "Certificate issue Date.", + "type": "string", + "readOnly": true + }, + "expirationDate": { + "format": "date-time", + "description": "Certificate expiration date.", + "type": "string", + "readOnly": true + }, + "thumbprint": { + "description": "Certificate thumbprint.", + "type": "string", + "readOnly": true + }, + "valid": { + "description": "Is the certificate valid?.", + "type": "boolean", + "readOnly": true + }, + "publicKeyHash": { + "description": "Public key hash.", + "type": "string", + "readOnly": true + } + } + } + }, + "x-ms-client-flatten": true + }, + "CertificateCollection": { + "description": "Collection of Certificates.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "CertificatePatch": { + "description": "A certificate to update", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json new file mode 100644 index 000000000000..5352b8bc5330 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json @@ -0,0 +1,321 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages": { + "get": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Get all storages for a managedEnvironment.", + "description": "Get all storages for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStoragesCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List environments storages by subscription": { + "$ref": "./examples/ManagedEnvironmentsStorages_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}": { + "get": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Get storage for a managedEnvironment.", + "description": "Get storage for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "storageName", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "get a environments storage properties by subscription": { + "$ref": "./examples/ManagedEnvironmentsStorages_Get.json" + } + } + }, + "put": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Create or update storage for a managedEnvironment.", + "description": "Create or update storage for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "storageName", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "name": "storageEnvelope", + "in": "body", + "description": "Configuration details of storage.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update environments storage": { + "$ref": "./examples/ManagedEnvironmentsStorages_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ManagedEnvironmentsStorages" + ], + "summary": "Delete storage for a managedEnvironment.", + "description": "Delete storage for a managedEnvironment.", + "operationId": "ManagedEnvironmentsStorages_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "storageName", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "Storage does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List environments storages by subscription": { + "$ref": "./examples/ManagedEnvironmentsStorages_Delete.json" + } + } + } + } + }, + "definitions": { + "AzureFileProperties": { + "description": "Azure File Properties.", + "type": "object", + "properties": { + "accountName": { + "description": "Storage account name for azure file.", + "type": "string" + }, + "accountKey": { + "description": "Storage account key for azure file.", + "type": "string", + "x-ms-secret": true + }, + "accessMode": { + "description": "Access mode for storage", + "enum": [ + "ReadOnly", + "ReadWrite" + ], + "type": "string", + "x-ms-enum": { + "name": "AccessMode", + "modelAsString": true + } + }, + "shareName": { + "description": "Azure file share name.", + "type": "string" + } + } + }, + "ManagedEnvironmentStoragesCollection": { + "description": "Collection of Storage for Environments", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of storage resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagedEnvironmentStorage" + } + } + } + }, + "ManagedEnvironmentStorage": { + "description": "Storage resource for managedEnvironment.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Storage properties", + "type": "object", + "properties": { + "azureFile": { + "$ref": "#/definitions/AzureFileProperties", + "description": "Azure file properties" + } + } + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json new file mode 100644 index 000000000000..95b8900637bb --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json @@ -0,0 +1,429 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols": { + "get": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Get the Container App SourceControls in a given resource group.", + "operationId": "ContainerAppsSourceControls_ListByContainerApp", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SourceControlCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List App's Source Controls": { + "$ref": "./examples/SourceControls_ListByContainer.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}": { + "get": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Get a SourceControl of a Container App.", + "operationId": "ContainerAppsSourceControls_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "sourceControlName", + "in": "path", + "description": "Name of the Container App SourceControl.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App's SourceControl": { + "$ref": "./examples/SourceControls_Get.json" + } + } + }, + "put": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Create or update the SourceControl for a Container App.", + "description": "Description for Create or update the SourceControl for a Container App.", + "operationId": "ContainerAppsSourceControls_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "sourceControlName", + "in": "path", + "description": "Name of the Container App SourceControl.", + "required": true, + "type": "string" + }, + { + "name": "sourceControlEnvelope", + "in": "body", + "description": "Properties used to create a Container App SourceControl", + "required": true, + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No change performed on the Container App.", + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + "202": { + "description": "Container App create or update has been started.", + "schema": { + "$ref": "#/definitions/SourceControl" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Container App SourceControl": { + "$ref": "./examples/SourceControls_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "ContainerAppsSourceControls" + ], + "summary": "Delete a Container App SourceControl.", + "description": "Description for Delete a Container App SourceControl.", + "operationId": "ContainerAppsSourceControls_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + }, + { + "name": "sourceControlName", + "in": "path", + "description": "Name of the Container App SourceControl.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Container App deleted successfully." + }, + "202": { + "description": "Delete operation is in progress." + }, + "204": { + "description": "Container App SourceControl does not exist." + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App SourceControl": { + "$ref": "./examples/SourceControls_Delete.json" + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "SourceControl": { + "description": "Container App SourceControl.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "SourceControl resource specific properties", + "type": "object", + "properties": { + "operationState": { + "description": "Current provisioning State of the operation", + "enum": [ + "InProgress", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "SourceControlOperationState", + "modelAsString": true + } + }, + "repoUrl": { + "description": "The repo url which will be integrated to ContainerApp.", + "type": "string" + }, + "branch": { + "description": "The branch which will trigger the auto deployment", + "type": "string" + }, + "githubActionConfiguration": { + "$ref": "#/definitions/GithubActionConfiguration", + "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time" + } + }, + "x-ms-client-flatten": true + } + } + }, + "GithubActionConfiguration": { + "description": "Configuration properties that define the mutable settings of a Container App SourceControl", + "type": "object", + "properties": { + "registryInfo": { + "$ref": "#/definitions/RegistryInfo", + "description": "Registry configurations." + }, + "azureCredentials": { + "$ref": "#/definitions/AzureCredentials", + "description": "AzureCredentials configurations." + }, + "contextPath": { + "description": "Context path", + "type": "string" + }, + "image": { + "description": "Image name", + "type": "string" + }, + "publishType": { + "description": "Code or Image", + "type": "string" + }, + "os": { + "description": "Operation system", + "type": "string" + }, + "runtimeStack": { + "description": "Runtime stack", + "type": "string" + }, + "runtimeVersion": { + "description": "Runtime version", + "type": "string" + } + } + }, + "RegistryInfo": { + "description": "Container App registry information.", + "type": "object", + "properties": { + "registryUrl": { + "description": "registry server Url.", + "type": "string" + }, + "registryUserName": { + "description": "registry username.", + "type": "string" + }, + "registryPassword": { + "description": "registry secret.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + } + } + }, + "AzureCredentials": { + "description": "Container App credentials.", + "type": "object", + "properties": { + "clientId": { + "description": "Client Id.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "clientSecret": { + "description": "Client Secret.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "tenantId": { + "description": "Tenant Id.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "x-ms-secret": true + }, + "subscriptionId": { + "description": "Subscription Id.", + "type": "string" + } + } + }, + "SourceControlCollection": { + "description": "SourceControl collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/SourceControl" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json new file mode 100644 index 000000000000..2b3dcbd5955e --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "authConfigName": "current", + "api-version": "2022-05-01", + "authConfigEnvelope": { + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/authconfigs/current", + "name": "current", + "type": "Microsoft.App/containerapps/authconfigs", + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json new file mode 100644 index 000000000000..411e4e7913ec --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "authConfigName": "current", + "api-version": "2022-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json new file mode 100644 index 000000000000..dd087a03cc0e --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "authConfigName": "current", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current", + "name": "current", + "type": "Microsoft.App/containerapps/authconfigs", + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json new file mode 100644 index 000000000000..a80fc263204a --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current", + "name": "current", + "type": "Microsoft.App/containerapps/authconfigs", + "properties": { + "platform": { + "enabled": true + }, + "globalValidation": { + "unauthenticatedClientAction": "AllowAnonymous" + }, + "identityProviders": { + "facebook": { + "registration": { + "appId": "123", + "appSecretSettingName": "facebook-secret" + } + } + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json new file mode 100644 index 000000000000..6a5f76bd8496 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-05-01", + "certificateEnvelope": { + "location": "East US", + "properties": { + "password": "private key password", + "value": "PFX-or-PEM-blob" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json new file mode 100644 index 000000000000..d8cc7318fa1a --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json new file mode 100644 index 000000000000..bf55c41de27d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json new file mode 100644 index 000000000000..c3e89eb6c81a --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "checkNameAvailabilityRequest": { + "name": "testcertificatename", + "type": "Microsoft.App/managedEnvironments/certificates" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json new file mode 100644 index 000000000000..47b74a695346 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + }, + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json new file mode 100644 index 000000000000..d73cfe7758e6 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-05-01", + "certificateEnvelope": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "type": "Microsoft.App/ManagedEnvironments/Certificates", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json new file mode 100644 index 000000000000..525efc8304ef --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "containerAppName": "mikono-capp-stage1", + "detectorName": "cappcontainerappnetworkIO", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappcontainerappnetworkIO", + "name": "cappcontainerappnetworkIO", + "type": "Microsoft.App/containerapps/detectors", + "properties": { + "metadata": { + "id": "cappcontainerappnetworkIO", + "name": "Container App Network Inbound and Outbound", + "description": "This detector shows the Container App Network Inbound and Outbound.", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Detector", + "score": 0 + }, + "dataset": [ + { + "table": { + "tableName": "", + "columns": [ + { + "columnName": "TimeStamp", + "dataType": "DateTime" + }, + { + "columnName": "Metric", + "dataType": "String" + }, + { + "columnName": "Average", + "dataType": "Double" + } + ], + "rows": [ + [ + "2022-03-15T21:35:00", + "RxBytes", + 0 + ] + ] + }, + "renderingProperties": { + "type": 8, + "title": "Container Apps Network Inbound ", + "description": "", + "isVisible": true + } + } + ], + "status": { + "statusId": 3 + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json new file mode 100644 index 000000000000..6562c8073c32 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "containerAppName": "mikono-capp-stage1", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappContainerAppAvailabilityMetrics", + "name": "cappContainerAppAvailabilityMetrics", + "type": "Microsoft.App/containerapps/detectors", + "properties": { + "metadata": { + "id": "cappContainerAppAvailabilityMetrics", + "name": "Availability Metrics for Container Apps", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Analysis", + "score": 0 + }, + "dataset": [], + "status": { + "statusId": 4 + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json new file mode 100644 index 000000000000..7fa1391abab0 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "checkNameAvailabilityRequest": { + "name": "testcappname", + "type": "Microsoft.App/containerApps" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json new file mode 100644 index 000000000000..b6370daf190c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -0,0 +1,263 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "api-version": "2022-05-01", + "containerAppEnvelope": { + "location": "East US", + "properties": { + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "configuration": { + "ingress": { + "external": true, + "targetPort": 3000, + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my-other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 100, + "revisionName": "testcontainerApp0-ab1234", + "label": "production" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http", + "httpReadBufferSize": 30 + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v1", + "name": "testcontainerApp0", + "probes": [ + { + "type": "Liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "custom": { + "type": "http", + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my-other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http", + "httpReadBufferSize": 30 + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "probes": [ + { + "type": "Liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "InProgress", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http", + "httpReadBufferSize": 30 + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "probes": [ + { + "type": "Liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json new file mode 100644 index 000000000000..4417d1f9877c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testWorkerApp0", + "api-version": "2022-05-01" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" + } + }, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json new file mode 100644 index 000000000000..ff636346961f --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my--other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http", + "httpReadBufferSize": 30 + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "404": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json new file mode 100644 index 000000000000..a0e7e667dbde --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my--other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http", + "httpReadBufferSize": 30 + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json new file mode 100644 index 000000000000..f79966eba9d6 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "transport": "auto", + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my--other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerApp0-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerApp0-ab4321", + "label": "staging" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http", + "httpReadBufferSize": 30 + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json new file mode 100644 index 000000000000..a5bfe5a7dea9 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "customHostname": "my.name.corp", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "hostName": "my.name.corp", + "isHostnameAlreadyVerified": true, + "customDomainVerificationTest": "Passed", + "customDomainVerificationFailureInfo": {}, + "hasConflictOnManagedEnvironment": false, + "conflictingContainerAppResourceId": "", + "cNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "txtRecords": [ + "txtRecord1", + "txtRecord2" + ], + "aRecords": [ + "aRecord1", + "aRecord2" + ], + "alternateCNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "alternateTxtRecords": [ + "txtRecord1", + "txtRecord2" + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json new file mode 100644 index 000000000000..15a7ba9bb496 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "secret1" + }, + { + "name": "secret2" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json new file mode 100644 index 000000000000..7688739a729b --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "api-version": "2022-05-01", + "containerAppEnvelope": { + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "configuration": { + "ingress": { + "external": true, + "targetPort": 3000, + "customDomains": [ + { + "name": "www.my-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" + }, + { + "name": "www.my-other-name.com", + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" + } + ], + "traffic": [ + { + "weight": 100, + "revisionName": "testcontainerApp0-ab1234", + "label": "production" + } + ] + }, + "dapr": { + "enabled": true, + "appPort": 3000, + "appProtocol": "http", + "httpReadBufferSize": 30 + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v1", + "name": "testcontainerApp0", + "probes": [ + { + "type": "Liveness", + "httpGet": { + "path": "/health", + "port": 8080, + "httpHeaders": [ + { + "name": "Custom-Header", + "value": "Awesome" + } + ] + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "custom": { + "type": "http", + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + } + } + } + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json new file mode 100644 index 000000000000..0ffa47695813 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-05-01", + "daprComponentEnvelope": { + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey", + "value": "keyvalue" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json new file mode 100644 index 000000000000..989ade111699 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json new file mode 100644 index 000000000000..b11cf2632a31 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json new file mode 100644 index 000000000000..729dcf81a6ae --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json new file mode 100644 index 000000000000..c483a92bfa51 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "secret1" + }, + { + "name": "secret2" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json new file mode 100644 index 000000000000..3369ab0b5fc8 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "environmentName": "mikonokubeenv", + "detectorName": "ManagedEnvAvailabilityMetrics", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics", + "name": "ManagedEnvAvailabilityMetrics", + "type": "Microsoft.App/managedEnvironments/detectors", + "properties": { + "metadata": { + "id": "ManagedEnvAvailabilityMetrics", + "name": "Managed Env Netowrk Inbound and Outbound", + "description": "This detector shows the Managed Environment Network Inbound and Outbound.", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Detector", + "score": 0 + }, + "dataset": [ + { + "table": { + "tableName": "", + "columns": [ + { + "columnName": "TimeStamp", + "dataType": "DateTime" + }, + { + "columnName": "Metric", + "dataType": "String" + }, + { + "columnName": "Average", + "dataType": "Double" + } + ], + "rows": [ + [ + "2022-03-15T21:35:00", + "RxBytes", + 0 + ] + ] + }, + "renderingProperties": { + "type": 8, + "title": "Managed Environment Network Inbound ", + "description": "", + "isVisible": true + } + } + ], + "status": { + "statusId": 3 + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json new file mode 100644 index 000000000000..81a4ca210f32 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", + "resourceGroupName": "mikono-workerapp-test-rg", + "environmentName": "mikonokubeenv", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics", + "name": "ManagedEnvAvailabilityMetrics", + "type": "Microsoft.App/managedEnvironments/detectors", + "properties": { + "metadata": { + "id": "ManagedEnvAvailabilityMetrics", + "name": "Availability Metrics for Managed Environments", + "author": "", + "category": "Availability and Performance", + "supportTopicList": [], + "type": "Analysis", + "score": 0 + }, + "dataset": [], + "status": { + "statusId": 4 + } + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json new file mode 100644 index 000000000000..b3befe244f10 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", + "api-version": "2022-05-01", + "storageEnvelope": { + "properties": { + "azureFile": { + "accountName": "account1", + "accountKey": "key", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json new file mode 100644 index 000000000000..b5a68b628196 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", + "api-version": "2022-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json new file mode 100644 index 000000000000..46200ff70421 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "managedEnv", + "storageName": "jlaw-demo1", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json new file mode 100644 index 000000000000..e229d4b6463a --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "managedEnv", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json new file mode 100644 index 000000000000..1569c23ef8d0 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "api-version": "2022-05-01", + "environmentEnvelope": { + "location": "East US", + "properties": { + "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/", + "appLogsConfiguration": { + "logAnalyticsConfiguration": { + "customerId": "string", + "sharedKey": "string" + } + }, + "zoneRedundant": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv", + "name": "testcontainerenv", + "type": "Microsoft.App/managedEnvironments", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "testcontainerenv.k4apps.io", + "staticIp": "1.2.3.4", + "appLogsConfiguration": { + "logAnalyticsConfiguration": { + "customerId": "string" + } + }, + "zoneRedundant": true + } + } + }, + "201": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv", + "name": "testcontainerenv", + "type": "Microsoft.App/managedEnvironments", + "location": "East US", + "properties": { + "provisioningState": "InitializationInProgress", + "deploymentErrors": null, + "defaultDomain": "testcontainerenv.k4apps.io", + "staticIp": "1.2.3.4", + "appLogsConfiguration": { + "logAnalyticsConfiguration": { + "customerId": "string" + } + }, + "zoneRedundant": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json new file mode 100644 index 000000000000..d030a202a2fa --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "examplekenv", + "api-version": "2022-05-01", + "location": "East US" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json new file mode 100644 index 000000000000..2fb09492d557 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "jlaw-demo1", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "jlaw-demo1.k4apps.io", + "staticIp": "20.42.33.145", + "zoneRedundant": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json new file mode 100644 index 000000000000..f557fd84de13 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "jlaw-demo1.k4apps.io", + "staticIp": "20.42.33.145", + "appLogsConfiguration": null, + "zoneRedundant": true + } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/demo1", + "name": "demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "demo1.k4apps.io", + "staticIp": "52.142.21.61", + "appLogsConfiguration": null, + "zoneRedundant": true + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json new file mode 100644 index 000000000000..561fdaef2573 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "jlaw-demo1.k4apps.io", + "staticIp": "20.42.33.145", + "appLogsConfiguration": null, + "zoneRedundant": true + } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.App/managedEnvironments/demo1", + "name": "demo1", + "type": "Microsoft.App/managedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "demo1.k4apps.io", + "staticIp": "52.142.21.61", + "appLogsConfiguration": null, + "zoneRedundant": true + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json new file mode 100644 index 000000000000..7de7df4d9533 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "environmentName": "testcontainerenv", + "api-version": "2022-05-01", + "environmentEnvelope": { + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..836f2b6e1d7b --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Microsoft.App/containerApps/Read", + "display": { + "provider": "Microsoft Apps", + "resource": "Container App", + "operation": "Get Container App", + "description": "Get the properties of a Container App" + }, + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json new file mode 100644 index 000000000000..6934d1c65350 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "myapp", + "revisionName": "myapp--0wlqy09", + "replicaName": "myapp--0wlqy09-5d9774cff-5wnd8", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8", + "name": "myapp--0wlqy09-5d9774cff-5wnd8", + "type": "Microsoft.Web/containerapps/revisions/replicas", + "properties": { + "createdTime": "2022-01-25T19:42:45Z", + "containers": [ + { + "name": "hello92", + "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", + "ready": true, + "started": true, + "restartCount": 0 + } + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json new file mode 100644 index 000000000000..bb35abdefe3d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "myapp", + "revisionName": "myapp--0wlqy09", + "api-version": "2021-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8", + "name": "myapp--0wlqy09-5d9774cff-5wnd8", + "type": "Microsoft.Web/containerapps/revisions/replicas", + "properties": { + "createdTime": "2022-01-25T19:42:45Z", + "containers": [ + { + "name": "hello92", + "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", + "ready": true, + "started": true, + "restartCount": 0 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json new file mode 100644 index 000000000000..61da5f005894 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "revisionName": "testcontainerApp0-pjxhsye", + "api-version": "2022-05-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json new file mode 100644 index 000000000000..61da5f005894 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "revisionName": "testcontainerApp0-pjxhsye", + "api-version": "2022-05-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json new file mode 100644 index 000000000000..323fa04ef317 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "revisionName": "testcontainerApp0-pjxhsye", + "api-version": "2021-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppcontainerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye", + "name": "testcontainerApp0-pjxhsye", + "type": "Microsoft.App/containerApps/revisions", + "properties": { + "createdTime": "2021-05-24T21:24:22+00:00", + "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v2", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + }, + "trafficWeight": 80, + "trafficLabels": [ + { + "label": "blue", + "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" + } + ], + "active": true, + "replicas": 1 + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json new file mode 100644 index 000000000000..0839c7bf4723 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "api-version": "2021-02-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye", + "name": "testcontainerApp0-pjxhsye", + "type": "Microsoft.App/containerApps/revisions", + "properties": { + "createdTime": "2021-05-24T21:24:22+00:00", + "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v2", + "name": "testcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "httpscalingrule", + "http": { + "metadata": { + "concurrentRequests": "50" + } + } + } + ] + } + }, + "trafficWeight": 80, + "trafficLabels": [ + { + "label": "blue", + "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" + } + ], + "active": true, + "replicas": 1 + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Restart.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Restart.json new file mode 100644 index 000000000000..3336c0109c26 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Restart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testStaticSite0", + "revisionName": "testcontainerApp0-pjxhsye", + "api-version": "2021-02-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json new file mode 100644 index 000000000000..3c732c762698 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "sourceControlName": "current", + "api-version": "2022-05-01", + "sourceControlEnvelope": { + "properties": { + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg", + "registryPassword": "" + }, + "azureCredentials": { + "clientId": "", + "clientSecret": "", + "tenantId": "" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "operationState": "InProgress", + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + }, + "202": { + "headers": { + "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" + }, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "operationState": "InProgress", + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json new file mode 100644 index 000000000000..27ca9b9e7cca --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "sourceControlName": "current", + "api-version": "2022-05-01" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/14a787ee-c65f-462d-8a8b-897f69a2ab4f?api-version=2021-03-01" + } + }, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json new file mode 100644 index 000000000000..cb7e227aabbf --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "sourceControlName": "current", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json new file mode 100644 index 000000000000..d738e6eaa5ce --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "workerapps-rg-xj", + "containerAppName": "testcanadacentral", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current", + "name": "current", + "type": "Microsoft.App/containerapps/sourcecontrols", + "properties": { + "repoUrl": "https://github.com/xwang971/ghatest", + "branch": "master", + "githubActionConfiguration": { + "registryInfo": { + "registryUrl": "xwang971reg.azurecr.io", + "registryUserName": "xwang971reg" + }, + "contextPath": "./", + "image": "image/tag" + } + } + } + ], + "nextLink": null + } + } + } +} From 45cd59b1500e172a0db837d72d50ebd78e28634a Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 10 Jun 2022 16:45:45 +0800 Subject: [PATCH 11/50] Updates readme --- specification/app/resource-manager/readme.md | 22 ++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 42e8b18f15df..7f0f4245608e 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -26,15 +26,32 @@ These are the global settings for the app. ``` yaml openapi-type: arm -tag: package-2022-05 +tag: package-preview-2022-06 ``` +### Tag: package-preview-2022-06 + +These settings apply only when `--tag=package-preview-2022-06` is specified on the command line. + +```yaml $(tag) == 'package-preview-2022-06' +input-file: + - Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json + - Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json + - Microsoft.App/preview/2022-06-01-preview/ContainerApps.json + - Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json + - Microsoft.App/preview/2022-06-01-preview/DaprComponents.json + - Microsoft.App/preview/2022-06-01-preview/Diagnostics.json + - Microsoft.App/preview/2022-06-01-preview/Global.json + - Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json + - Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json + - Microsoft.App/preview/2022-06-01-preview/SourceControls.json +``` ### Tag: package-2022-05 These settings apply only when `--tag=package-2022-05` is specified on the command line. -```yaml $(tag) == 'package-2022-05' +``` yaml $(tag) == 'package-2022-05' input-file: - Microsoft.App/stable/2022-05-01/AuthConfigs.json - Microsoft.App/stable/2022-05-01/CommonDefinitions.json @@ -47,6 +64,7 @@ input-file: - Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json - Microsoft.App/stable/2022-05-01/SourceControls.json ``` + ### Tag: package-2022-03 These settings apply only when `--tag=package-2022-03` is specified on the command line. From 481bb59a42ae92250b912f4651e672de1d74c8fc Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 10 Jun 2022 16:45:47 +0800 Subject: [PATCH 12/50] Updates API version in new specs and examples --- .../Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json | 2 +- .../preview/2022-06-01-preview/CommonDefinitions.json | 2 +- .../preview/2022-06-01-preview/ContainerApps.json | 2 +- .../preview/2022-06-01-preview/ContainerAppsRevisions.json | 2 +- .../preview/2022-06-01-preview/DaprComponents.json | 2 +- .../Microsoft.App/preview/2022-06-01-preview/Diagnostics.json | 2 +- .../Microsoft.App/preview/2022-06-01-preview/Global.json | 2 +- .../preview/2022-06-01-preview/ManagedEnvironments.json | 2 +- .../2022-06-01-preview/ManagedEnvironmentsStorages.json | 2 +- .../preview/2022-06-01-preview/SourceControls.json | 2 +- .../examples/AuthConfigs_CreateOrUpdate.json | 2 +- .../2022-06-01-preview/examples/AuthConfigs_Delete.json | 2 +- .../preview/2022-06-01-preview/examples/AuthConfigs_Get.json | 2 +- .../examples/AuthConfigs_ListByContainer.json | 2 +- .../examples/Certificate_CreateOrUpdate.json | 2 +- .../2022-06-01-preview/examples/Certificate_Delete.json | 2 +- .../preview/2022-06-01-preview/examples/Certificate_Get.json | 2 +- .../examples/Certificates_CheckNameAvailability.json | 2 +- .../examples/Certificates_ListByManagedEnvironment.json | 2 +- .../2022-06-01-preview/examples/Certificates_Patch.json | 2 +- .../examples/ContainerAppsDiagnostics_Get.json | 2 +- .../examples/ContainerAppsDiagnostics_List.json | 2 +- .../examples/ContainerApps_CheckNameAvailability.json | 2 +- .../examples/ContainerApps_CreateOrUpdate.json | 2 +- .../2022-06-01-preview/examples/ContainerApps_Delete.json | 4 ++-- .../2022-06-01-preview/examples/ContainerApps_Get.json | 2 +- .../examples/ContainerApps_ListByResourceGroup.json | 2 +- .../examples/ContainerApps_ListBySubscription.json | 2 +- .../examples/ContainerApps_ListCustomHostNameAnalysis.json | 2 +- .../examples/ContainerApps_ListSecrets.json | 2 +- .../2022-06-01-preview/examples/ContainerApps_Patch.json | 4 ++-- .../examples/DaprComponents_CreateOrUpdate.json | 2 +- .../2022-06-01-preview/examples/DaprComponents_Delete.json | 2 +- .../2022-06-01-preview/examples/DaprComponents_Get.json | 2 +- .../2022-06-01-preview/examples/DaprComponents_List.json | 2 +- .../examples/DaprComponents_ListSecrets.json | 2 +- .../examples/ManagedEnvironmentDiagnostics_Get.json | 2 +- .../examples/ManagedEnvironmentDiagnostics_List.json | 2 +- .../examples/ManagedEnvironmentsStorages_CreateOrUpdate.json | 2 +- .../examples/ManagedEnvironmentsStorages_Delete.json | 2 +- .../examples/ManagedEnvironmentsStorages_Get.json | 2 +- .../examples/ManagedEnvironmentsStorages_List.json | 2 +- .../examples/ManagedEnvironments_CreateOrUpdate.json | 2 +- .../examples/ManagedEnvironments_Delete.json | 2 +- .../2022-06-01-preview/examples/ManagedEnvironments_Get.json | 2 +- .../examples/ManagedEnvironments_ListByResourceGroup.json | 2 +- .../examples/ManagedEnvironments_ListBySubscription.json | 2 +- .../examples/ManagedEnvironments_Patch.json | 4 ++-- .../preview/2022-06-01-preview/examples/Operations_List.json | 2 +- .../preview/2022-06-01-preview/examples/Replicas_Get.json | 2 +- .../2022-06-01-preview/examples/Revisions_Activate.json | 2 +- .../2022-06-01-preview/examples/Revisions_Deactivate.json | 2 +- .../examples/SourceControls_CreateOrUpdate.json | 2 +- .../2022-06-01-preview/examples/SourceControls_Delete.json | 2 +- .../2022-06-01-preview/examples/SourceControls_Get.json | 2 +- .../examples/SourceControls_ListByContainer.json | 2 +- 56 files changed, 59 insertions(+), 59 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json index 4b27c65ac374..e7430c57dbf1 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index d80348dcf8b3..e00edeb66435 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 454e2c81a224..9894d96bd5ae 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json index 0dca517cf280..2b45b3bc12c1 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json index 139790aae081..fdcd98112aaa 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json index e107bb4095dd..72c96b5bbffe 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json index 83c07d1b6943..f737b67ccf8b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Global.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index f2a44ddef010..86c97e5b8542 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json index 5352b8bc5330..874f7693726e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json index 95b8900637bb..798d49cd678e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-05-01", + "version": "2022-06-01-preview", "title": "ContainerApps API Client" }, "host": "management.azure.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json index 2b3dcbd5955e..bb7bae18916b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "authConfigName": "current", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "authConfigEnvelope": { "properties": { "platform": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json index 411e4e7913ec..918900401935 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "authConfigName": "current", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json index dd087a03cc0e..91cdcd0f4138 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "authConfigName": "current", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json index a80fc263204a..deaf2469edce 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json index 6a5f76bd8496..d3e1b7811c9f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "certificateEnvelope": { "location": "East US", "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json index d8cc7318fa1a..4cdc372a4c86 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json index bf55c41de27d..aa06c48d0f3d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json index c3e89eb6c81a..e5d9e7511500 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json index 47b74a695346..991a02a00739 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json index d73cfe7758e6..e4622ef4bc46 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "certificateEnvelope": { "tags": { "tag1": "value1", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json index 525efc8304ef..15cb3a06be45 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "mikono-workerapp-test-rg", "containerAppName": "mikono-capp-stage1", "detectorName": "cappcontainerappnetworkIO", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json index 6562c8073c32..adf57e7db323 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json @@ -3,7 +3,7 @@ "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", "resourceGroupName": "mikono-workerapp-test-rg", "containerAppName": "mikono-capp-stage1", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json index 7fa1391abab0..bf4ebcaa6956 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index b6370daf190c..538658bd88b5 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "containerAppEnvelope": { "location": "East US", "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json index 4417d1f9877c..af06b278d424 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json @@ -3,13 +3,13 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testWorkerApp0", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {}, "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-06-01-preview" } }, "204": {} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json index ff636346961f..d48160502b2f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json index a0e7e667dbde..93204d1cf0f0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json index f79966eba9d6..7a5d0252899b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json index a5bfe5a7dea9..4ed7168e0dc1 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", "customHostname": "my.name.corp", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json index 15a7ba9bb496..1d32806d5d95 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json index 7688739a729b..b7e19ec6d042 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "containerAppEnvelope": { "location": "East US", "tags": { @@ -88,7 +88,7 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-06-01-preview" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json index 0ffa47695813..af46aa2e01f5 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "componentName": "reddog", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "daprComponentEnvelope": { "properties": { "componentType": "state.azure.cosmosdb", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json index 989ade111699..a7e51d59b811 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "componentName": "reddog", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json index b11cf2632a31..4dd73d831997 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "componentName": "reddog", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json index 729dcf81a6ae..168e30a9d07e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "myenvironment", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json index c483a92bfa51..0543667f4bf7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "myenvironment", "componentName": "reddog", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json index 3369ab0b5fc8..cc9b17589e13 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "mikono-workerapp-test-rg", "environmentName": "mikonokubeenv", "detectorName": "ManagedEnvAvailabilityMetrics", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json index 81a4ca210f32..1f1b9672e124 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json @@ -3,7 +3,7 @@ "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", "resourceGroupName": "mikono-workerapp-test-rg", "environmentName": "mikonokubeenv", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json index b3befe244f10..26af1f502e40 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "managedEnv", "storageName": "jlaw-demo1", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "storageEnvelope": { "properties": { "azureFile": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json index b5a68b628196..9f992298ac95 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "managedEnv", "storageName": "jlaw-demo1", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json index 46200ff70421..70c7d48dd8a8 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "examplerg", "environmentName": "managedEnv", "storageName": "jlaw-demo1", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json index e229d4b6463a..317f7d99c70e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "managedEnv", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json index 1569c23ef8d0..bac1c184a70d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "environmentEnvelope": { "location": "East US", "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json index d030a202a2fa..16a8e2d3097f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "environmentName": "examplekenv", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "location": "East US" }, "responses": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json index 2fb09492d557..6ee914104740 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", "environmentName": "jlaw-demo1", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json index f557fd84de13..57159a0e75c9 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", "resourceGroupName": "examplerg", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json index 561fdaef2573..7af19fd8e92d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json index 7de7df4d9533..785478792be5 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "examplerg", "environmentName": "testcontainerenv", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "environmentEnvelope": { "location": "East US", "tags": { @@ -15,7 +15,7 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-06-01-preview" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json index 836f2b6e1d7b..6bfae98e7187 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json index 6934d1c65350..66ff19d61240 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json @@ -5,7 +5,7 @@ "containerAppName": "myapp", "revisionName": "myapp--0wlqy09", "replicaName": "myapp--0wlqy09-5d9774cff-5wnd8", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json index 61da5f005894..2c98644ebef9 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", "revisionName": "testcontainerApp0-pjxhsye", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json index 61da5f005894..2c98644ebef9 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "containerAppName": "testcontainerApp0", "revisionName": "testcontainerApp0-pjxhsye", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json index 3c732c762698..c177174e2600 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "sourceControlName": "current", - "api-version": "2022-05-01", + "api-version": "2022-06-01-preview", "sourceControlEnvelope": { "properties": { "repoUrl": "https://github.com/xwang971/ghatest", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json index 27ca9b9e7cca..511ecbec852d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "sourceControlName": "current", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": {}, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json index cb7e227aabbf..65dadc205b4e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", "sourceControlName": "current", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json index d738e6eaa5ce..2445be1bb557 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json @@ -3,7 +3,7 @@ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", "resourceGroupName": "workerapps-rg-xj", "containerAppName": "testcanadacentral", - "api-version": "2022-05-01" + "api-version": "2022-06-01-preview" }, "responses": { "200": { From ec34aa3de995aea2d7c29bb22d85e8dc08d32018 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Tue, 12 Jul 2022 15:42:08 +0800 Subject: [PATCH 13/50] Add new resources for 2022-06-01-preview (#19494) * update * update * update * fix * update * update * update * update * fix * update * update --- .../2022-06-01-preview/CommonDefinitions.json | 297 ++++++++++++ .../ConnectedEnvironments.json | 449 ++++++++++++++++++ .../ConnectedEnvironmentsCertificates.json | 315 ++++++++++++ .../ConnectedEnvironmentsDaprComponents.json | 307 ++++++++++++ .../ConnectedEnvironmentsStorages.json | 290 +++++++++++ .../2022-06-01-preview/ContainerApps.json | 13 +- .../ManagedEnvironments.json | 136 +----- ...=> ManagedEnvironmentsDaprComponents.json} | 131 +---- .../ManagedEnvironmentsStorages.json | 33 +- ...nvironmentsCertificate_CreateOrUpdate.json | 35 ++ ...nnectedEnvironmentsCertificate_Delete.json | 13 + .../ConnectedEnvironmentsCertificate_Get.json | 29 ++ ...ntsCertificates_CheckNameAvailability.json | 21 + ...rtificates_ListByConnectedEnvironment.json | 47 ++ ...nnectedEnvironmentsCertificates_Patch.json | 38 ++ ...ronmentsDaprComponents_CreateOrUpdate.json | 87 ++++ ...ctedEnvironmentsDaprComponents_Delete.json | 13 + ...nnectedEnvironmentsDaprComponents_Get.json | 51 ++ ...nectedEnvironmentsDaprComponents_List.json | 54 +++ ...nvironmentsDaprComponents_ListSecrets.json | 24 + ...edEnvironmentsStorages_CreateOrUpdate.json | 35 ++ .../ConnectedEnvironmentsStorages_Delete.json | 13 + .../ConnectedEnvironmentsStorages_Get.json | 25 + .../ConnectedEnvironmentsStorages_List.json | 28 ++ .../ConnectedEnvironments_CreateOrUpdate.json | 60 +++ .../ConnectedEnvironments_Delete.json | 19 + .../examples/ConnectedEnvironments_Get.json | 35 ++ ...ectedEnvironments_ListByResourceGroup.json | 49 ++ ...nectedEnvironments_ListBySubscription.json | 40 ++ .../examples/ConnectedEnvironments_Patch.json | 35 ++ .../ContainerApps_CreateOrUpdate.json | 2 +- specification/app/resource-manager/readme.md | 6 +- 32 files changed, 2440 insertions(+), 290 deletions(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json rename specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/{DaprComponents.json => ManagedEnvironmentsDaprComponents.json} (71%) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_List.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Delete.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index e00edeb66435..a372162ced14 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -533,6 +533,303 @@ "type": "string" } } + }, + "DaprComponentsCollection": { + "description": "Dapr Components ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/DaprComponent" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "DaprComponent": { + "description": "Dapr Component.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Dapr Component resource specific properties", + "type": "object", + "properties": { + "componentType": { + "description": "Component type", + "type": "string" + }, + "version": { + "description": "Component version", + "type": "string" + }, + "ignoreErrors": { + "description": "Boolean describing if the component errors are ignores", + "type": "boolean" + }, + "initTimeout": { + "description": "Initialization timeout", + "type": "string" + }, + "secrets": { + "description": "Collection of secrets used by a Dapr component", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "metadata": { + "description": "Component metadata", + "type": "array", + "items": { + "$ref": "#/definitions/DaprMetadata" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "scopes": { + "description": "Names of container apps that can use this Dapr component", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-ms-client-flatten": true + } + } + }, + "DaprMetadata": { + "description": "Dapr component metadata.", + "type": "object", + "properties": { + "name": { + "description": "Metadata property name.", + "type": "string" + }, + "value": { + "description": "Metadata property value.", + "type": "string" + }, + "secretRef": { + "description": "Name of the Dapr Component secret from which to pull the metadata property value.", + "type": "string" + } + } + }, + "DaprSecretsCollection": { + "description": "Dapr component Secrets Collection ARM resource.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of secrets used by a Dapr component", + "type": "array", + "items": { + "$ref": "./CommonDefinitions.json#/definitions/Secret" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "ExtendedLocation": { + "type": "object", + "description": "The complex type of the extended location.", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "$ref": "#/definitions/ExtendedLocationType", + "description": "The type of the extended location." + } + } + }, + "ExtendedLocationType": { + "type": "string", + "description": "The type of extendedLocation.", + "enum": [ + "CustomLocation" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "AzureFileProperties": { + "description": "Azure File Properties.", + "type": "object", + "properties": { + "accountName": { + "description": "Storage account name for azure file.", + "type": "string" + }, + "accountKey": { + "description": "Storage account key for azure file.", + "type": "string", + "x-ms-secret": true + }, + "accessMode": { + "description": "Access mode for storage", + "enum": [ + "ReadOnly", + "ReadWrite" + ], + "type": "string", + "x-ms-enum": { + "name": "AccessMode", + "modelAsString": true + } + }, + "shareName": { + "description": "Azure file share name.", + "type": "string" + } + } + }, + "Certificate": { + "description": "Certificate used for Custom Domain bindings of Container Apps in a Managed Environment", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Certificate resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the certificate.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "DeleteFailed", + "Pending" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "CertificateProvisioningState", + "modelAsString": true + } + }, + "password": { + "description": "Certificate password.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "subjectName": { + "description": "Subject name of the certificate.", + "type": "string", + "readOnly": true + }, + "value": { + "format": "byte", + "description": "PFX or PEM blob", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "issuer": { + "description": "Certificate issuer.", + "type": "string", + "readOnly": true + }, + "issueDate": { + "format": "date-time", + "description": "Certificate issue Date.", + "type": "string", + "readOnly": true + }, + "expirationDate": { + "format": "date-time", + "description": "Certificate expiration date.", + "type": "string", + "readOnly": true + }, + "thumbprint": { + "description": "Certificate thumbprint.", + "type": "string", + "readOnly": true + }, + "valid": { + "description": "Is the certificate valid?.", + "type": "boolean", + "readOnly": true + }, + "publicKeyHash": { + "description": "Public key hash.", + "type": "string", + "readOnly": true + } + } + } + }, + "x-ms-client-flatten": true + }, + "CertificateCollection": { + "description": "Collection of Certificates.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "CertificatePatch": { + "description": "A certificate to update", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + } } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json new file mode 100644 index 000000000000..b980a55abb91 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json @@ -0,0 +1,449 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-06-01-preview", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments": { + "get": { + "tags": [ + "ConnectedEnvironments" + ], + "summary": "Get all connectedEnvironments for a subscription.", + "description": "Description for Get all connectedEnvironments for a subscription.", + "operationId": "ConnectedEnvironments_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironmentCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List connected environments by subscription": { + "$ref": "./examples/ConnectedEnvironments_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments": { + "get": { + "tags": [ + "ConnectedEnvironments" + ], + "operationId": "ConnectedEnvironments_ListByResourceGroup", + "description": "Get all connectedEnvironments in a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironmentCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List environments by resource group": { + "$ref": "./examples/ConnectedEnvironments_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}": { + "get": { + "tags": [ + "ConnectedEnvironments" + ], + "operationId": "ConnectedEnvironments_Get", + "description": "Get the properties of an connectedEnvironment.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connectedEnvironment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get connected environment by connectedEnvironmentName": { + "$ref": "./examples/ConnectedEnvironments_Get.json" + } + } + }, + "put": { + "tags": [ + "ConnectedEnvironments" + ], + "description": "Creates or updates an connectedEnvironment.", + "operationId": "ConnectedEnvironments_CreateOrUpdate", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connectedEnvironment.", + "required": true, + "type": "string" + }, + { + "name": "environmentEnvelope", + "in": "body", + "description": "Configuration details of the connectedEnvironment.", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectedEnvironment" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ConnectedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create kube environments": { + "$ref": "./examples/ConnectedEnvironments_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ConnectedEnvironments" + ], + "summary": "Delete an connectedEnvironment.", + "description": "Description for Delete an connectedEnvironment.", + "operationId": "ConnectedEnvironments_Delete", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connectedEnvironment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "202": { + "description": "Delete operation is accepted" + }, + "204": { + "description": "ConnectedEnvironment does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete connected environment by connectedEnvironmentName": { + "$ref": "./examples/ConnectedEnvironments_Delete.json" + } + } + }, + "patch": { + "tags": [ + "ConnectedEnvironments" + ], + "summary": "Update connected Environment's properties.", + "description": "Patches a Managed Environment. Only patching of tags is supported currently", + "operationId": "ConnectedEnvironments_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connectedEnvironment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironment" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Managed Environment": { + "$ref": "./examples/ConnectedEnvironments_Patch.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/checkNameAvailability": { + "post": { + "tags": [ + "ConnectedEnvironments" + ], + "summary": "Checks the resource connectedEnvironmentName availability.", + "description": "Checks if resource connectedEnvironmentName is available.", + "operationId": "ConnectedEnvironments_CheckNameAvailability", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "name": "checkNameAvailabilityRequest", + "in": "body", + "description": "The check connectedEnvironmentName availability request.", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Certificates_CheckNameAvailability": { + "$ref": "./examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json" + } + } + } + } + }, + "definitions": { + "ConnectedEnvironment": { + "description": "An environment for Kubernetes cluster specialized for web workloads by Azure App Service", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "extendedLocation": { + "$ref": "./CommonDefinitions.json#/definitions/ExtendedLocation" + }, + "properties": { + "description": "ConnectedEnvironment resource specific properties", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the Kubernetes Environment.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Waiting", + "InitializationInProgress", + "InfrastructureSetupInProgress", + "InfrastructureSetupComplete", + "ScheduledForDelete" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ConnectedEnvironmentProvisioningState", + "modelAsString": true + } + }, + "deploymentErrors": { + "description": "Any errors that occurred during deployment or deployment validation", + "type": "string", + "readOnly": true + }, + "defaultDomain": { + "description": "Default Domain Name for the cluster", + "type": "string", + "readOnly": true + }, + "staticIp": { + "description": "Static IP of the connectedEnvironment", + "type": "string" + } + }, + "x-ms-client-flatten": true + } + } + }, + "ConnectedEnvironmentCollection": { + "description": "Collection of connectedEnvironments", + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedEnvironment" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json new file mode 100644 index 000000000000..d5497abfa56e --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json @@ -0,0 +1,315 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-06-01-preview", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates": { + "get": { + "tags": [ + "ConnectedEnvironments", + "Certificates" + ], + "summary": "Get the Certificates in a given connected environment.", + "operationId": "ConnectedEnvironmentsCertificates_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Connected Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/CertificateCollection" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Certificates by Connected Environment": { + "$ref": "./examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}": { + "get": { + "tags": [ + "ConnectedEnvironments", + "Certificates" + ], + "summary": "Get the specified Certificate.", + "operationId": "ConnectedEnvironmentsCertificates_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Connected Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/Certificate" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Certificate": { + "$ref": "./examples/ConnectedEnvironmentsCertificate_Get.json" + } + } + }, + "put": { + "tags": [ + "ConnectedEnvironments", + "Certificates" + ], + "summary": "Create or Update a Certificate.", + "operationId": "ConnectedEnvironmentsCertificates_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Connected Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "name": "certificateEnvelope", + "in": "body", + "description": "Certificate to be created or updated", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/Certificate" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/Certificate" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update Certificate": { + "$ref": "./examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ConnectedEnvironments", + "Certificates" + ], + "summary": "Deletes the specified Certificate.", + "operationId": "ConnectedEnvironmentsCertificates_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Connected Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "204": { + "description": "Certificate does not exist" + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Certificate": { + "$ref": "./examples/ConnectedEnvironmentsCertificate_Delete.json" + } + } + }, + "patch": { + "tags": [ + "ConnectedEnvironments", + "Certificates" + ], + "summary": "Update properties of a certificate", + "description": "Patches a certificate. Currently only patching of tags is supported", + "operationId": "ConnectedEnvironmentsCertificates_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Connected Environment.", + "required": true, + "type": "string" + }, + { + "name": "certificateName", + "in": "path", + "description": "Name of the Certificate.", + "required": true, + "type": "string" + }, + { + "name": "certificateEnvelope", + "in": "body", + "required": true, + "description": "Properties of a certificate that need to be updated", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/CertificatePatch" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Certificate updated successfully.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/Certificate" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch Certificate": { + "$ref": "./examples/ConnectedEnvironmentsCertificates_Patch.json" + } + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json new file mode 100644 index 000000000000..d94467d6bbf6 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json @@ -0,0 +1,307 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-06-01-preview", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents": { + "get": { + "tags": [ + "DaprComponents" + ], + "summary": "Get the Dapr Components for a connected environment.", + "operationId": "ConnectedEnvironmentsDaprComponents_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connected environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DaprComponentsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Dapr Components": { + "$ref": "./examples/ConnectedEnvironmentsDaprComponents_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}": { + "get": { + "tags": [ + "DaprComponents" + ], + "summary": "Get a dapr component.", + "operationId": "ConnectedEnvironmentsDaprComponents_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connected environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DaprComponent" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Dapr Component": { + "$ref": "./examples/ConnectedEnvironmentsDaprComponents_Get.json" + } + } + }, + "put": { + "tags": [ + "DaprComponents" + ], + "summary": "Creates or updates a Dapr Component.", + "description": "Creates or updates a Dapr Component in a connected environment.", + "operationId": "ConnectedEnvironmentsDaprComponents_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connected environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "name": "daprComponentEnvelope", + "in": "body", + "description": "Configuration details of the Dapr Component.", + "required": true, + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DaprComponent" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DaprComponent" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "x-ms-examples": { + "Create or update dapr component": { + "$ref": "./examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "DaprComponents" + ], + "summary": "Delete a Dapr Component.", + "description": "Delete a Dapr Component from a connected environment.", + "operationId": "ConnectedEnvironmentsDaprComponents_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connected environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed" + }, + "204": { + "description": "Environment does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete dapr component": { + "$ref": "./examples/ConnectedEnvironmentsDaprComponents_Delete.json" + } + }, + "x-ms-long-running-operation": false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}/listSecrets": { + "post": { + "tags": [ + "DaprComponents" + ], + "summary": "List secrets for a dapr component", + "operationId": "ConnectedEnvironmentsDaprComponents_ListSecrets", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the connected environment.", + "required": true, + "type": "string" + }, + { + "name": "componentName", + "in": "path", + "description": "Name of the Dapr Component.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DaprSecretsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List Container Apps Secrets": { + "$ref": "./examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json" + } + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json new file mode 100644 index 000000000000..22189631bcd8 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json @@ -0,0 +1,290 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-06-01-preview", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages": { + "get": { + "tags": [ + "ConnectedEnvironmentsStorages" + ], + "summary": "Get all storages for a connectedEnvironment.", + "description": "Get all storages for a connectedEnvironment.", + "operationId": "ConnectedEnvironmentsStorages_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironmentStoragesCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List environments storages by subscription": { + "$ref": "./examples/ConnectedEnvironmentsStorages_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}": { + "get": { + "tags": [ + "ConnectedEnvironmentsStorages" + ], + "summary": "Get storage for a connectedEnvironment.", + "description": "Get storage for a connectedEnvironment.", + "operationId": "ConnectedEnvironmentsStorages_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "storageName", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironmentStorage" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "get a environments storage properties by subscription": { + "$ref": "./examples/ConnectedEnvironmentsStorages_Get.json" + } + } + }, + "put": { + "tags": [ + "ConnectedEnvironmentsStorages" + ], + "summary": "Create or update storage for a connectedEnvironment.", + "description": "Create or update storage for a connectedEnvironment.", + "operationId": "ConnectedEnvironmentsStorages_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "storageName", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "name": "storageEnvelope", + "in": "body", + "description": "Configuration details of storage.", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectedEnvironmentStorage" + } + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConnectedEnvironmentStorage" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update environments storage": { + "$ref": "./examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ConnectedEnvironmentsStorages" + ], + "summary": "Delete storage for a connectedEnvironment.", + "description": "Delete storage for a connectedEnvironment.", + "operationId": "ConnectedEnvironmentsStorages_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "connectedEnvironmentName", + "in": "path", + "description": "Name of the Environment.", + "required": true, + "type": "string" + }, + { + "name": "storageName", + "in": "path", + "description": "Name of the storage.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "Storage does not exist" + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "List environments storages by subscription": { + "$ref": "./examples/ConnectedEnvironmentsStorages_Delete.json" + } + } + } + } + }, + "definitions": { + "ConnectedEnvironmentStoragesCollection": { + "description": "Collection of Storage for Environments", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of storage resources.", + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedEnvironmentStorage" + } + } + } + }, + "ConnectedEnvironmentStorage": { + "description": "Storage resource for connectedEnvironment.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Storage properties", + "type": "object", + "properties": { + "azureFile": { + "$ref": "./CommonDefinitions.json#/definitions/AzureFileProperties", + "description": "Azure file properties" + } + } + } + } + } + }, + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 9894d96bd5ae..244e0a49b1fc 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -463,6 +463,9 @@ } ], "properties": { + "extendedLocation": { + "$ref": "./CommonDefinitions.json#/definitions/ExtendedLocation" + }, "identity": { "description": "managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.", "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" @@ -487,7 +490,15 @@ } }, "managedEnvironmentId": { - "description": "Resource ID of the Container App's environment.", + "description": "Deprecated. Resource ID of the Container App's environment.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "environmentId": { + "description": "Resource ID of environment.", "type": "string", "x-ms-mutability": [ "create", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index 86c97e5b8542..c55763d79546 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -337,7 +337,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/CertificateCollection" + "$ref": "./CommonDefinitions.json#/definitions/CertificateCollection" } }, "default": { @@ -394,7 +394,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Certificate" + "$ref": "./CommonDefinitions.json#/definitions/Certificate" } }, "default": { @@ -443,7 +443,7 @@ "in": "body", "description": "Certificate to be created or updated", "schema": { - "$ref": "#/definitions/Certificate" + "$ref": "./CommonDefinitions.json#/definitions/Certificate" } }, { @@ -454,7 +454,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Certificate" + "$ref": "./CommonDefinitions.json#/definitions/Certificate" } }, "default": { @@ -557,7 +557,7 @@ "required": true, "description": "Properties of a certificate that need to be updated", "schema": { - "$ref": "#/definitions/CertificatePatch" + "$ref": "./CommonDefinitions.json#/definitions/CertificatePatch" } }, { @@ -566,9 +566,9 @@ ], "responses": { "200": { - "description": "Container App updated successfully.", + "description": "Certificate updated successfully.", "schema": { - "$ref": "#/definitions/Certificate" + "$ref": "./CommonDefinitions.json#/definitions/Certificate" } }, "default": { @@ -841,128 +841,6 @@ "x-ms-secret": true } } - }, - "Certificate": { - "description": "Certificate used for Custom Domain bindings of Container Apps in a Managed Environment", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Certificate resource specific properties", - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the certificate.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "DeleteFailed", - "Pending" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "CertificateProvisioningState", - "modelAsString": true - } - }, - "password": { - "description": "Certificate password.", - "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true - }, - "subjectName": { - "description": "Subject name of the certificate.", - "type": "string", - "readOnly": true - }, - "value": { - "format": "byte", - "description": "PFX or PEM blob", - "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true - }, - "issuer": { - "description": "Certificate issuer.", - "type": "string", - "readOnly": true - }, - "issueDate": { - "format": "date-time", - "description": "Certificate issue Date.", - "type": "string", - "readOnly": true - }, - "expirationDate": { - "format": "date-time", - "description": "Certificate expiration date.", - "type": "string", - "readOnly": true - }, - "thumbprint": { - "description": "Certificate thumbprint.", - "type": "string", - "readOnly": true - }, - "valid": { - "description": "Is the certificate valid?.", - "type": "boolean", - "readOnly": true - }, - "publicKeyHash": { - "description": "Public key hash.", - "type": "string", - "readOnly": true - } - } - } - }, - "x-ms-client-flatten": true - }, - "CertificateCollection": { - "description": "Collection of Certificates.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "CertificatePatch": { - "description": "A certificate to update", - "type": "object", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - } } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json similarity index 71% rename from specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json rename to specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json index fdcd98112aaa..90d052a42bf4 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/DaprComponents.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json @@ -44,7 +44,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DaprComponentsCollection" + "$ref": "./CommonDefinitions.json#/definitions/DaprComponentsCollection" } }, "default": { @@ -100,7 +100,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DaprComponent" + "$ref": "./CommonDefinitions.json#/definitions/DaprComponent" } }, "default": { @@ -150,7 +150,7 @@ "description": "Configuration details of the Dapr Component.", "required": true, "schema": { - "$ref": "#/definitions/DaprComponent" + "$ref": "./CommonDefinitions.json#/definitions/DaprComponent" } }, { @@ -161,7 +161,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DaprComponent" + "$ref": "./CommonDefinitions.json#/definitions/DaprComponent" } }, "default": { @@ -268,7 +268,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DaprSecretsCollection" + "$ref": "./CommonDefinitions.json#/definitions/DaprSecretsCollection" } }, "default": { @@ -286,127 +286,6 @@ } } }, - "definitions": { - "DaprComponentsCollection": { - "description": "Dapr Components ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/DaprComponent" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "DaprComponent": { - "description": "Dapr Component.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Dapr Component resource specific properties", - "type": "object", - "properties": { - "componentType": { - "description": "Component type", - "type": "string" - }, - "version": { - "description": "Component version", - "type": "string" - }, - "ignoreErrors": { - "description": "Boolean describing if the component errors are ignores", - "type": "boolean" - }, - "initTimeout": { - "description": "Initialization timeout", - "type": "string" - }, - "secrets": { - "description": "Collection of secrets used by a Dapr component", - "type": "array", - "items": { - "$ref": "./CommonDefinitions.json#/definitions/Secret" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "metadata": { - "description": "Component metadata", - "type": "array", - "items": { - "$ref": "#/definitions/DaprMetadata" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "scopes": { - "description": "Names of container apps that can use this Dapr component", - "type": "array", - "items": { - "type": "string" - } - } - }, - "x-ms-client-flatten": true - } - } - }, - "DaprMetadata": { - "description": "Dapr component metadata.", - "type": "object", - "properties": { - "name": { - "description": "Metadata property name.", - "type": "string" - }, - "value": { - "description": "Metadata property value.", - "type": "string" - }, - "secretRef": { - "description": "Name of the Dapr Component secret from which to pull the metadata property value.", - "type": "string" - } - } - }, - "DaprSecretsCollection": { - "description": "Dapr component Secrets Collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of secrets used by a Dapr component", - "type": "array", - "items": { - "$ref": "./CommonDefinitions.json#/definitions/Secret" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - } - }, "securityDefinitions": { "azure_auth": { "type": "oauth2", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json index 874f7693726e..954f3982a896 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json @@ -231,37 +231,6 @@ } }, "definitions": { - "AzureFileProperties": { - "description": "Azure File Properties.", - "type": "object", - "properties": { - "accountName": { - "description": "Storage account name for azure file.", - "type": "string" - }, - "accountKey": { - "description": "Storage account key for azure file.", - "type": "string", - "x-ms-secret": true - }, - "accessMode": { - "description": "Access mode for storage", - "enum": [ - "ReadOnly", - "ReadWrite" - ], - "type": "string", - "x-ms-enum": { - "name": "AccessMode", - "modelAsString": true - } - }, - "shareName": { - "description": "Azure file share name.", - "type": "string" - } - } - }, "ManagedEnvironmentStoragesCollection": { "description": "Collection of Storage for Environments", "required": [ @@ -292,7 +261,7 @@ "type": "object", "properties": { "azureFile": { - "$ref": "#/definitions/AzureFileProperties", + "$ref": "./CommonDefinitions.json#/definitions/AzureFileProperties", "description": "Azure file properties" } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json new file mode 100644 index 000000000000..33685e87de7d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-06-01-preview", + "certificateEnvelope": { + "location": "East US", + "properties": { + "password": "private key password", + "value": "PFX-or-PEM-blob" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name", + "type": "Microsoft.App/ConnectedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json new file mode 100644 index 000000000000..9f48c3ad6b38 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json new file mode 100644 index 000000000000..2eb51ca9bb06 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ConnectedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json new file mode 100644 index 000000000000..ff2bba4b81ee --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-06-01-preview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testcontainerenv", + "checkNameAvailabilityRequest": { + "name": "testcertificatename", + "type": "Microsoft.App/connectedEnvironments/certificates" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json new file mode 100644 index 000000000000..fdba5f9659c9 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testcontainerenv", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ConnectedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + }, + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name", + "name": "certificate-firendly-name", + "type": "Microsoft.App/ConnectedEnvironments/Certificates", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json new file mode 100644 index 000000000000..249c8bc1d4eb --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testcontainerenv", + "certificateName": "certificate-firendly-name", + "api-version": "2022-06-01-preview", + "certificateEnvelope": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name", + "type": "Microsoft.App/ConnectedEnvironments/Certificates", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "subjectName": "my-subject-name.company.country.net", + "issuer": "Issuer Name", + "issueDate": "2021-11-06T04:00:00Z", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT", + "valid": true + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json new file mode 100644 index 000000000000..d83118185a54 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-06-01-preview", + "daprComponentEnvelope": { + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey", + "value": "keyvalue" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/connectedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json new file mode 100644 index 000000000000..4175541e7819 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json new file mode 100644 index 000000000000..9b53267d076d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/connectedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json new file mode 100644 index 000000000000..3eb828161a15 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "myenvironment", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/myenvironment/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/connectedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secrets": [ + { + "name": "masterkey" + } + ], + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json new file mode 100644 index 000000000000..6af435646ced --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "secret1" + }, + { + "name": "secret2" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json new file mode 100644 index 000000000000..3250860baf87 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "env", + "storageName": "jlaw-demo1", + "api-version": "2022-06-01-preview", + "storageEnvelope": { + "properties": { + "azureFile": { + "accountName": "account1", + "accountKey": "key", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/env/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/connectedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json new file mode 100644 index 000000000000..3f21b1eb76bf --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "env", + "storageName": "jlaw-demo1", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Get.json new file mode 100644 index 000000000000..7389b0cf980c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "env", + "storageName": "jlaw-demo1", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/env/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/connectedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_List.json new file mode 100644 index 000000000000..0d5a421b104d --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "managedEnv", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/managedEnv/storages/jlaw-demo1", + "name": "jlaw-demo1", + "type": "Microsoft.App/connectedEnvironments/storages", + "properties": { + "azureFile": { + "accountName": "account1", + "shareName": "share1", + "accessMode": "ReadOnly" + } + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json new file mode 100644 index 000000000000..c8bebf4f2f98 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testenv", + "api-version": "2022-06-01-preview", + "kind": "kubernetes", + "location": "East US", + "extendedLocation": { + "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + }, + "environmentEnvelope": { + "location": "East US", + "properties": { + "staticIp": "1.2.3.4" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testenv", + "name": "testenv", + "type": "Microsoft.App/connectedEnvironments", + "location": "East US", + "extendedLocation": { + "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "testenv.k4apps.io", + "staticIp": "1.2.3.4" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testenv", + "name": "testenv", + "type": "Microsoft.App/connectedEnvironments", + "location": "East US", + "extendedLocation": { + "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + }, + "tags": {}, + "properties": { + "provisioningState": "Waiting", + "deploymentErrors": null, + "defaultDomain": "testenv.k4apps.io", + "staticIp": "1.2.3.4" + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Delete.json new file mode 100644 index 000000000000..e8156387da39 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "examplekenv", + "api-version": "2022-06-01-preview", + "kind": "kubernetes", + "location": "East US", + "extendedLocation": { + "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + } + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json new file mode 100644 index 000000000000..fb792f8e3102 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "examplekenv", + "api-version": "2022-06-01-preview", + "kind": "kubernetes", + "location": "East US", + "extendedLocation": { + "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/kubeEnvironments/examplekenv", + "name": "examplekenv", + "type": "Microsoft.App/kubeEnvironments", + "location": "North Central US", + "extendedLocation": { + "name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "examplekenv.k4apps.io", + "staticIp": "20.42.33.145" + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json new file mode 100644 index 000000000000..b9e4aa8202f6 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/sample1", + "name": "sample1", + "type": "Microsoft.App/connectedEnvironments", + "location": "North Central US", + "extendedLocation": { + "name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "sample1.k4apps.io", + "staticIp": "20.42.33.145" + } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/sample2", + "name": "sample2", + "type": "Microsoft.App/connectedEnvironments", + "location": "North Central US", + "extendedLocation": { + "name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation" + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "sample2.k4apps.io", + "staticIp": "52.142.21.61" + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json new file mode 100644 index 000000000000..cea755f1aa23 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/sample1", + "name": "sample1", + "type": "Microsoft.App/connectedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "sample1.k4apps.io", + "staticIp": "20.42.33.145" + } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.App/connectedEnvironments/sample2", + "name": "sample2", + "type": "Microsoft.App/connectedEnvironments", + "location": "North Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "sample2.k4apps.io", + "staticIp": "52.142.21.61" + } + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json new file mode 100644 index 000000000000..f894173a2738 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "examplerg", + "connectedEnvironmentName": "testenv", + "api-version": "2022-06-01-preview", + "location": "East US", + "environmentEnvelope": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testenv", + "name": "testenv", + "type": "Microsoft.App/connectedEnvironments", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "deploymentErrors": null, + "defaultDomain": "testenv.k4apps.io", + "staticIp": "20.42.33.145" + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index 538658bd88b5..a71323f10158 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -7,7 +7,7 @@ "containerAppEnvelope": { "location": "East US", "properties": { - "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", "configuration": { "ingress": { "external": true, diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 7f0f4245608e..22ae6305b313 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -40,12 +40,16 @@ input-file: - Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json - Microsoft.App/preview/2022-06-01-preview/ContainerApps.json - Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json - - Microsoft.App/preview/2022-06-01-preview/DaprComponents.json + - Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json - Microsoft.App/preview/2022-06-01-preview/Diagnostics.json - Microsoft.App/preview/2022-06-01-preview/Global.json - Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json - Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsStorages.json - Microsoft.App/preview/2022-06-01-preview/SourceControls.json + - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json + - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json + - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json + - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json ``` ### Tag: package-2022-05 From 83d8432595f59e7bc1dd4cbe4e16f60b327ec531 Mon Sep 17 00:00:00 2001 From: LaylaLiu-gmail <38268900+LaylaLiu-gmail@users.noreply.github.com> Date: Fri, 29 Jul 2022 03:32:10 +0000 Subject: [PATCH 14/50] Enable Dapr AI Connection string for Microsoft.App connected environment (#19974) * Enable Dapr AI Connection string for Microsoft.App connected environment * Fix dapr ai connection string * remove read * remove read permission of dapr ai connection string and instrument key for managed environment * fixes for comments --- .../preview/2022-06-01-preview/ConnectedEnvironments.json | 5 +++++ .../preview/2022-06-01-preview/ManagedEnvironments.json | 8 -------- .../examples/ConnectedEnvironments_CreateOrUpdate.json | 3 ++- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json index b980a55abb91..c7e144a9a558 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json @@ -403,6 +403,11 @@ "staticIp": { "description": "Static IP of the connectedEnvironment", "type": "string" + }, + "daprAIConnectionString": { + "type": "string", + "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", + "x-ms-secret": true } }, "x-ms-client-flatten": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index c55763d79546..6ba95e726ed6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -751,19 +751,11 @@ "daprAIInstrumentationKey": { "type": "string", "description": "Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry", - "x-ms-mutability": [ - "create", - "read" - ], "x-ms-secret": true }, "daprAIConnectionString": { "type": "string", "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", - "x-ms-mutability": [ - "create", - "read" - ], "x-ms-secret": true }, "vnetConfiguration": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json index c8bebf4f2f98..75364d7af1e8 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json @@ -13,7 +13,8 @@ "environmentEnvelope": { "location": "East US", "properties": { - "staticIp": "1.2.3.4" + "staticIp": "1.2.3.4", + "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/" } } }, From 8f6ff49ca0a4c5683aaddfc270fd941d74b6c4f4 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 29 Jul 2022 14:55:23 +0800 Subject: [PATCH 15/50] update (#20013) --- .../preview/2022-06-01-preview/CommonDefinitions.json | 8 ++++++++ .../examples/Certificate_CreateOrUpdate.json | 3 +++ .../2022-06-01-preview/examples/Certificate_Get.json | 3 +++ .../examples/Certificates_ListByManagedEnvironment.json | 6 ++++++ .../2022-06-01-preview/examples/Certificates_Patch.json | 3 +++ .../ConnectedEnvironmentsCertificate_CreateOrUpdate.json | 3 +++ .../examples/ConnectedEnvironmentsCertificate_Get.json | 3 +++ ...vironmentsCertificates_ListByConnectedEnvironment.json | 6 ++++++ .../examples/ConnectedEnvironmentsCertificates_Patch.json | 3 +++ 9 files changed, 38 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index a372162ced14..c396923f83d0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -751,6 +751,14 @@ "type": "string", "readOnly": true }, + "subjectAlternativeNames": { + "description": "Subject alternative names the certificate applies to.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, "value": { "format": "byte", "description": "PFX or PEM blob", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json index d3e1b7811c9f..3c79cd35b201 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json @@ -23,6 +23,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json index aa06c48d0f3d..d6ef5ff698c2 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json @@ -17,6 +17,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json index 991a02a00739..aa2a35cb5712 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json @@ -18,6 +18,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", @@ -33,6 +36,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json index e4622ef4bc46..7d9eb043bebc 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json @@ -26,6 +26,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json index 33685e87de7d..3ada6fb2a435 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json @@ -23,6 +23,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json index 2eb51ca9bb06..a28e599c4e31 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json @@ -17,6 +17,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json index fdba5f9659c9..a96cfa5f2752 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json @@ -18,6 +18,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", @@ -33,6 +36,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json index 249c8bc1d4eb..92506a36c579 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json @@ -26,6 +26,9 @@ "properties": { "provisioningState": "Succeeded", "subjectName": "my-subject-name.company.country.net", + "subjectAlternativeNames": [ + "CN=my-subject-name.com" + ], "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", From 6d7a4b0e8a040e436d76d3a2992991d2697a0fd2 Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Sun, 7 Aug 2022 19:33:57 -0700 Subject: [PATCH 16/50] Fixdescriptions on microsoft.app 2022 06 01 preview (#20133) * Fix casing for detector properties * Fix descriptions * Fix descriptions and detectorProperties in 2022-06-01-preview --- .../preview/2022-06-01-preview/AuthConfigs.json | 4 ++-- .../preview/2022-06-01-preview/ConnectedEnvironments.json | 4 ++-- .../preview/2022-06-01-preview/ContainerApps.json | 4 ++-- .../preview/2022-06-01-preview/Diagnostics.json | 8 ++++---- .../preview/2022-06-01-preview/SourceControls.json | 4 ++-- .../Microsoft.App/stable/2022-05-01/AuthConfigs.json | 4 ++-- .../Microsoft.App/stable/2022-05-01/ContainerApps.json | 4 ++-- .../Microsoft.App/stable/2022-05-01/Diagnostics.json | 8 ++++---- .../Microsoft.App/stable/2022-05-01/SourceControls.json | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json index e7430c57dbf1..81925e8a3d27 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AuthConfigs.json @@ -121,7 +121,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Create or update the AuthConfig for a Container App.", - "description": "Description for Create or update the AuthConfig for a Container App.", + "description": "Create or update the AuthConfig for a Container App.", "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate", "parameters": [ { @@ -182,7 +182,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Delete a Container App AuthConfig.", - "description": "Description for Delete a Container App AuthConfig.", + "description": "Delete a Container App AuthConfig.", "operationId": "ContainerAppsAuthConfigs_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json index c7e144a9a558..73b7637e59e2 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json @@ -21,7 +21,7 @@ "ConnectedEnvironments" ], "summary": "Get all connectedEnvironments for a subscription.", - "description": "Description for Get all connectedEnvironments for a subscription.", + "description": "Get all connectedEnvironments for a subscription.", "operationId": "ConnectedEnvironments_ListBySubscription", "parameters": [ { @@ -207,7 +207,7 @@ "ConnectedEnvironments" ], "summary": "Delete an connectedEnvironment.", - "description": "Description for Delete an connectedEnvironment.", + "description": "Delete an connectedEnvironment.", "operationId": "ConnectedEnvironments_Delete", "x-ms-long-running-operation": true, "parameters": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 244e0a49b1fc..999d81ce4b2d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -150,7 +150,7 @@ "ContainerApps" ], "summary": "Create or update a Container App.", - "description": "Description for Create or update a Container App.", + "description": "Create or update a Container App.", "operationId": "ContainerApps_CreateOrUpdate", "parameters": [ { @@ -211,7 +211,7 @@ "ContainerApps" ], "summary": "Delete a Container App.", - "description": "Description for Delete a Container App.", + "description": "Delete a Container App.", "operationId": "ContainerApps_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json index 72c96b5bbffe..e2b6e52049d7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/Diagnostics.json @@ -119,7 +119,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/": { "get": { "tags": [ "ContainerApps", @@ -177,7 +177,7 @@ "x-ms-odata": "#/definitions/Revision" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/{revisionName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/{revisionName}": { "get": { "tags": [ "ContainerApps", @@ -231,7 +231,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/rootApi/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/rootApi/": { "get": { "tags": [ "ContainerApps", @@ -385,7 +385,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorproperties/rootApi/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorProperties/rootApi/": { "get": { "tags": [ "ManagedEnvironments", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json index 798d49cd678e..a2840222552b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json @@ -139,7 +139,7 @@ "ContainerAppsSourceControls" ], "summary": "Create or update the SourceControl for a Container App.", - "description": "Description for Create or update the SourceControl for a Container App.", + "description": "Create or update the SourceControl for a Container App.", "operationId": "ContainerAppsSourceControls_CreateOrUpdate", "parameters": [ { @@ -207,7 +207,7 @@ "ContainerAppsSourceControls" ], "summary": "Delete a Container App SourceControl.", - "description": "Description for Delete a Container App SourceControl.", + "description": "Delete a Container App SourceControl.", "operationId": "ContainerAppsSourceControls_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json index 4b27c65ac374..1fcf4ed2ffb8 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json @@ -121,7 +121,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Create or update the AuthConfig for a Container App.", - "description": "Description for Create or update the AuthConfig for a Container App.", + "description": "Create or update the AuthConfig for a Container App.", "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate", "parameters": [ { @@ -182,7 +182,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Delete a Container App AuthConfig.", - "description": "Description for Delete a Container App AuthConfig.", + "description": "Delete a Container App AuthConfig.", "operationId": "ContainerAppsAuthConfigs_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json index 454e2c81a224..4bc563f9b02e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json @@ -150,7 +150,7 @@ "ContainerApps" ], "summary": "Create or update a Container App.", - "description": "Description for Create or update a Container App.", + "description": "Create or update a Container App.", "operationId": "ContainerApps_CreateOrUpdate", "parameters": [ { @@ -211,7 +211,7 @@ "ContainerApps" ], "summary": "Delete a Container App.", - "description": "Description for Delete a Container App.", + "description": "Delete a Container App.", "operationId": "ContainerApps_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json index e107bb4095dd..97b8412aaeb2 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json @@ -119,7 +119,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/": { "get": { "tags": [ "ContainerApps", @@ -177,7 +177,7 @@ "x-ms-odata": "#/definitions/Revision" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/revisionsApi/revisions/{revisionName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/{revisionName}": { "get": { "tags": [ "ContainerApps", @@ -231,7 +231,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorproperties/rootApi/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/rootApi/": { "get": { "tags": [ "ContainerApps", @@ -385,7 +385,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorproperties/rootApi/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorProperties/rootApi/": { "get": { "tags": [ "ManagedEnvironments", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json index 95b8900637bb..591bea40b997 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json @@ -139,7 +139,7 @@ "ContainerAppsSourceControls" ], "summary": "Create or update the SourceControl for a Container App.", - "description": "Description for Create or update the SourceControl for a Container App.", + "description": "Create or update the SourceControl for a Container App.", "operationId": "ContainerAppsSourceControls_CreateOrUpdate", "parameters": [ { @@ -207,7 +207,7 @@ "ContainerAppsSourceControls" ], "summary": "Delete a Container App SourceControl.", - "description": "Description for Delete a Container App SourceControl.", + "description": "Delete a Container App SourceControl.", "operationId": "ContainerAppsSourceControls_Delete", "parameters": [ { From baa9b05684f44f0638ea6f52cef4dbccf511454c Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Mon, 8 Aug 2022 19:27:45 -0700 Subject: [PATCH 17/50] Added `secretsStoreComponent` in 2022-06-01 spec (#20044) * Added `secretsStoreComponent` in 2022-06-01 spec Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Fixed typos and added example of name/key Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> --- .../2022-06-01-preview/CommonDefinitions.json | 4 + .../ManagedEnvironmentsDaprComponents.json | 14 +++- ...s_CreateOrUpdate_SecretStoreComponent.json | 78 +++++++++++++++++++ ...aprComponents_CreateOrUpdate_Secrets.json} | 0 ...prComponents_Get_SecretStoreComponent.json | 47 +++++++++++ ...t.json => DaprComponents_Get_Secrets.json} | 0 .../examples/DaprComponents_List.json | 68 ++++++++++++++++ 7 files changed, 207 insertions(+), 4 deletions(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json rename specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/{DaprComponents_CreateOrUpdate.json => DaprComponents_CreateOrUpdate_Secrets.json} (100%) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json rename specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/{DaprComponents_Get.json => DaprComponents_Get_Secrets.json} (100%) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index c396923f83d0..1a2a021c4a10 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -594,6 +594,10 @@ "name" ] }, + "secretStoreComponent": { + "description": "Name of a Dapr component to retrieve component secrets from", + "type": "string" + }, "metadata": { "description": "Component metadata", "type": "array", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json index 90d052a42bf4..e081003402cb 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironmentsDaprComponents.json @@ -111,8 +111,11 @@ } }, "x-ms-examples": { - "Get Dapr Component": { - "$ref": "./examples/DaprComponents_Get.json" + "Get Dapr Component with secrets": { + "$ref": "./examples/DaprComponents_Get_Secrets.json" + }, + "Get Dapr Component with secret store component": { + "$ref": "./examples/DaprComponents_Get_SecretStoreComponent.json" } } }, @@ -173,8 +176,11 @@ }, "x-ms-long-running-operation": false, "x-ms-examples": { - "Create or update dapr component": { - "$ref": "./examples/DaprComponents_CreateOrUpdate.json" + "Create or update dapr component with secrets": { + "$ref": "./examples/DaprComponents_CreateOrUpdate_Secrets.json" + }, + "Create or update dapr component with secret store component": { + "$ref": "./examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json" } } }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json new file mode 100644 index 000000000000..c549a8ca4278 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-06-01-preview", + "daprComponentEnvelope": { + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secretStoreComponent": "my-secret-store", + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secretStoreComponent": "my-secret-store", + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json similarity index 100% rename from specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json rename to specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json new file mode 100644 index 000000000000..f2c2e78380e6 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", + "resourceGroupName": "examplerg", + "environmentName": "myenvironment", + "componentName": "reddog", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", + "name": "reddog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secretStoreComponent": "my-secret-store", + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get_Secrets.json similarity index 100% rename from specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json rename to specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get_Secrets.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json index 168e30a9d07e..0c021c36c9ed 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json @@ -46,6 +46,74 @@ "container-app-2" ] } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/vaultdog", + "name": "vaultdog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secretStoreComponent": "my-secret-store", + "metadata": [ + { + "name": "url", + "value": "" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } + }, + { + "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/vaultdog", + "name": "vaultdog", + "type": "Microsoft.App/managedEnvironments/daprcomponents", + "properties": { + "componentType": "state.azure.cosmosdb", + "version": "v1", + "ignoreErrors": false, + "initTimeout": "50s", + "secretStoreComponent": "my-secret-store", + "metadata": [ + { + "name": "url", + "secretRef": "cosmosdb/url" + }, + { + "name": "database", + "value": "itemsDB" + }, + { + "name": "collection", + "value": "items" + }, + { + "name": "masterkey", + "secretRef": "cosmosdb/masterkey" + } + ], + "scopes": [ + "container-app-1", + "container-app-2" + ] + } } ] } From bb43ed18a40da93033fa480a8bcdb6705de6a545 Mon Sep 17 00:00:00 2001 From: Mengjun Qin <767524684@qq.com> Date: Tue, 9 Aug 2022 13:12:45 +0800 Subject: [PATCH 18/50] Add custom domain configuration for managed environment (#20149) Co-authored-by: Mengjun Qin --- .../ManagedEnvironments.json | 51 +++++++++++++++++++ .../ManagedEnvironments_CreateOrUpdate.json | 25 +++++++-- .../examples/ManagedEnvironments_Get.json | 9 +++- ...nagedEnvironments_ListByResourceGroup.json | 18 ++++++- ...anagedEnvironments_ListBySubscription.json | 18 ++++++- 5 files changed, 113 insertions(+), 8 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index 6ba95e726ed6..2b94e129694d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -714,6 +714,53 @@ } } }, + "CustomDomainConfiguration": { + "type": "object", + "description": "Configuration properties for apps environment custom domain", + "properties": { + "customDomainVerificationId": { + "description": "Id used to verify domain name ownership", + "type": "string", + "readOnly": true + }, + "dnsSuffix": { + "type": "string", + "description": "Dns suffix for the environment domain", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "certificateValue": { + "format": "byte", + "description": "PFX or PEM blob", + "type": "string", + "x-ms-secret": true + }, + "certificatePassword": { + "format": "byte", + "description": "Certificate password", + "type": "string", + "x-ms-secret": true + }, + "expirationDate": { + "format": "date-time", + "description": "Certificate expiration date.", + "type": "string", + "readOnly": true + }, + "thumbprint": { + "description": "Certificate thumbprint.", + "type": "string", + "readOnly": true + }, + "subjectName": { + "description": "Subject name of the certificate.", + "type": "string", + "readOnly": true + } + } + }, "ManagedEnvironment": { "description": "An environment for hosting container apps", "type": "object", @@ -788,6 +835,10 @@ "create", "read" ] + }, + "customDomainConfiguration": { + "$ref": "#/definitions/CustomDomainConfiguration", + "description": "Custom domain configuration for the environment" } }, "x-ms-client-flatten": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json index bac1c184a70d..7ff40c3c4aac 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json @@ -14,7 +14,12 @@ "sharedKey": "string" } }, - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "dnsSuffix": "www.my-name.com", + "certificateValue": "PFX-or-PEM-blob", + "certificatePassword": "private key password" + } } } }, @@ -35,7 +40,14 @@ "customerId": "string" } }, - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } }, @@ -55,7 +67,14 @@ "customerId": "string" } }, - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json index 6ee914104740..093e86d93161 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json @@ -18,7 +18,14 @@ "deploymentErrors": null, "defaultDomain": "jlaw-demo1.k4apps.io", "staticIp": "20.42.33.145", - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json index 57159a0e75c9..efb02c380984 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json @@ -20,7 +20,14 @@ "defaultDomain": "jlaw-demo1.k4apps.io", "staticIp": "20.42.33.145", "appLogsConfiguration": null, - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } }, { @@ -35,7 +42,14 @@ "defaultDomain": "demo1.k4apps.io", "staticIp": "52.142.21.61", "appLogsConfiguration": null, - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name2.com", + "subjectName": "CN=www.my-name2.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } ] diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json index 7af19fd8e92d..3ddcb293aa7f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json @@ -19,7 +19,14 @@ "defaultDomain": "jlaw-demo1.k4apps.io", "staticIp": "20.42.33.145", "appLogsConfiguration": null, - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } }, { @@ -34,7 +41,14 @@ "defaultDomain": "demo1.k4apps.io", "staticIp": "52.142.21.61", "appLogsConfiguration": null, - "zoneRedundant": true + "zoneRedundant": true, + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name2.com", + "subjectName": "CN=www.my-name2.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } ] From 94d84ee0e30135185e8472023e07cfabdbf5ad7c Mon Sep 17 00:00:00 2001 From: Ahmed ElSayed Date: Tue, 9 Aug 2022 18:42:48 -0700 Subject: [PATCH 19/50] Add additional Dapr options (2022-06-01-preview) (#19886) * Add additional Dapr options * Update examples for 2022-06-01-preview * force ci * force ci * force ci --- .../2022-06-01-preview/ContainerApps.json | 24 +++++++++++++++++++ .../ContainerApps_CreateOrUpdate.json | 5 +++- .../examples/ContainerApps_Get.json | 5 +++- .../ContainerApps_ListByResourceGroup.json | 5 +++- .../ContainerApps_ListBySubscription.json | 5 +++- .../examples/ContainerApps_Patch.json | 5 +++- 6 files changed, 44 insertions(+), 5 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 999d81ce4b2d..133b79e24831 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -593,7 +593,31 @@ }, "httpReadBufferSize": { "type": "integer", + "description": "Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.", "format": "int32" + }, + "httpMaxRequestSize": { + "type": "integer", + "description": "Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.", + "format": "int32" + }, + "logLevel": { + "description": "Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.", + "enum": [ + "info", + "debug", + "warn", + "error" + ], + "type": "string", + "x-ms-enum": { + "name": "logLevel", + "modelAsString": true + } + }, + "enableApiLogging": { + "description": "Enables API logging for the Dapr sidecar", + "type": "boolean" } } }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index a71323f10158..9f61e117c5d5 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -36,7 +36,10 @@ "enabled": true, "appPort": 3000, "appProtocol": "http", - "httpReadBufferSize": 30 + "httpReadBufferSize": 30, + "httpMaxRequestSize": 10, + "logLevel": "debug", + "enableApiLogging": true } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json index d48160502b2f..6dc081dbf2a1 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -51,7 +51,10 @@ "enabled": true, "appPort": 3000, "appProtocol": "http", - "httpReadBufferSize": 30 + "httpReadBufferSize": 30, + "httpMaxRequestSize": 10, + "logLevel": "debug", + "enableApiLogging": true } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json index 93204d1cf0f0..97044f912769 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -52,7 +52,10 @@ "enabled": true, "appPort": 3000, "appProtocol": "http", - "httpReadBufferSize": 30 + "httpReadBufferSize": 30, + "httpMaxRequestSize": 10, + "logLevel": "debug", + "enableApiLogging": true } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json index 7a5d0252899b..f9734aeba0b6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -51,7 +51,10 @@ "enabled": true, "appPort": 3000, "appProtocol": "http", - "httpReadBufferSize": 30 + "httpReadBufferSize": 30, + "httpMaxRequestSize": 10, + "logLevel": "debug", + "enableApiLogging": true } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json index b7e19ec6d042..8ee6577e1ddb 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json @@ -39,7 +39,10 @@ "enabled": true, "appPort": 3000, "appProtocol": "http", - "httpReadBufferSize": 30 + "httpReadBufferSize": 30, + "httpMaxRequestSize": 10, + "logLevel": "debug", + "enableApiLogging": true } }, "template": { From 3450a5cc37bf51dd1b3f714e396a5560aacf58c5 Mon Sep 17 00:00:00 2001 From: Taher Daroly <41846928+tdaroly@users.noreply.github.com> Date: Fri, 12 Aug 2022 02:20:27 -0500 Subject: [PATCH 20/50] adding ip-restriction feat (#19841) * adding ip-restriction feat * remove from stable, add to preview * fix lintDiff error * fix modelvalidation error * fix formatting changes * rename names, add note to all allow or all deny * fix spell check error * update name and examples * rename `ipAddress` to `ipAddressRange` * making small change to re-run build pipeline * trigger GitHub actions * resolve comments Co-authored-by: Taher Darolywala --- .../2022-06-01-preview/ContainerApps.json | 45 +++++++++++++++++++ .../ContainerApps_CreateOrUpdate.json | 28 ++++++++++++ .../examples/ContainerApps_Get.json | 14 ++++++ .../ContainerApps_ListByResourceGroup.json | 14 ++++++ .../ContainerApps_ListBySubscription.json | 14 ++++++ .../examples/ContainerApps_Patch.json | 14 ++++++ 6 files changed, 129 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 133b79e24831..83c5ae9a0ca0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -676,6 +676,16 @@ "allowInsecure": { "description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections", "type": "boolean" + }, + "ipSecurityRestrictions": { + "description": "Rules to restrict incoming IP address.", + "type": "array", + "items": { + "$ref": "#/definitions/IpSecurityRestrictionRule" + }, + "x-ms-identifiers": [ + "name" + ] } } }, @@ -791,6 +801,41 @@ } } }, + "IpSecurityRestrictionRule": { + "description": "Rule to restrict incoming IP address.", + "type": "object", + "required": [ + "name", + "ipAddressRange", + "action" + ], + "properties": { + "name": { + "description": "Name for the IP restriction rule.", + "type": "string" + }, + "description": { + "description": "Describe the IP restriction rule that is being sent to the container-app. This is an optional field.", + "type": "string" + }, + "ipAddressRange": { + "description": "CIDR notation to match incoming IP address", + "type": "string" + }, + "action": { + "description": "Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny", + "enum": [ + "Allow", + "Deny" + ], + "type": "string", + "x-ms-enum": { + "name": "action", + "modelAsString": true + } + } + } + }, "CustomHostnameAnalysisResult": { "description": "Custom domain analysis.", "type": "object", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index 9f61e117c5d5..f18b29998785 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -30,6 +30,20 @@ "revisionName": "testcontainerApp0-ab1234", "label": "production" } + ], + "ipSecurityRestrictions": [ + { + "name": "Allow work IP A subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "action": "Allow" + }, + { + "name": "Allow work IP B subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "action": "Allow" + } ] }, "dapr": { @@ -125,6 +139,20 @@ "revisionName": "testcontainerApp0-ab4321", "label": "staging" } + ], + "ipSecurityRestrictions": [ + { + "name": "Allow work IP A subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "action": "Allow" + }, + { + "name": "Allow work IP B subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "action": "Allow" + } ] }, "dapr": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json index 6dc081dbf2a1..6ae766c16cc0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -45,6 +45,20 @@ "revisionName": "testcontainerApp0-ab4321", "label": "staging" } + ], + "ipSecurityRestrictions": [ + { + "name": "Allow work IP A subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "action": "Allow" + }, + { + "name": "Allow work IP B subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "action": "Allow" + } ] }, "dapr": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json index 97044f912769..171c38bc7c24 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -46,6 +46,20 @@ "revisionName": "testcontainerApp0-ab4321", "label": "staging" } + ], + "ipSecurityRestrictions": [ + { + "name": "Allow work IP A subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "action": "Allow" + }, + { + "name": "Allow work IP B subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "action": "Allow" + } ] }, "dapr": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json index f9734aeba0b6..18e9a386e84b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -45,6 +45,20 @@ "revisionName": "testcontainerApp0-ab4321", "label": "staging" } + ], + "ipSecurityRestrictions": [ + { + "name": "Allow work IP A subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "action": "Allow" + }, + { + "name": "Allow work IP B subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "action": "Allow" + } ] }, "dapr": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json index 8ee6577e1ddb..4c34c4d74fa0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json @@ -33,6 +33,20 @@ "revisionName": "testcontainerApp0-ab1234", "label": "production" } + ], + "ipSecurityRestrictions": [ + { + "name": "Allow work IP A subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "action": "Allow" + }, + { + "name": "Allow work IP B subnet", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "action": "Allow" + } ] }, "dapr": { From 903da55c23c99c94fa12bbdfb3a8cd90e9fd857b Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Tue, 16 Aug 2022 18:14:44 -0700 Subject: [PATCH 21/50] Remove Traffic Labels from revisions because they haven't been impelemented (#20261) * Revert "Add traffic info to revisions api (#19054)" This reverts commit 056cc51226bf2eef3d3a7e7bdca875a4a571026b. * Remove traffic labels from revisions --- .../ContainerAppsRevisions.json | 27 ------------------- .../examples/Revisions_Get.json | 6 ----- .../examples/Revisions_List.json | 6 ----- .../2022-05-01/ContainerAppsRevisions.json | 27 ------------------- .../2022-05-01/examples/Revisions_Get.json | 7 ----- .../2022-05-01/examples/Revisions_List.json | 7 ----- 6 files changed, 80 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json index 2b45b3bc12c1..5ac279e1e77d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json @@ -436,17 +436,6 @@ "type": "integer", "readOnly": true }, - "trafficLabels": { - "description": "Traffic labels associated with this revision", - "type": "array", - "items": { - "$ref": "#/definitions/TrafficLabel" - }, - "x-ms-identifiers": [ - "label" - ], - "readOnly": true - }, "provisioningError": { "description": "Optional Field - Platform Error Message", "type": "string", @@ -487,22 +476,6 @@ } } }, - "TrafficLabel": { - "description": "Traffic label information", - "type": "object", - "properties": { - "label": { - "description": "Traffic label assigned to a revision", - "type": "string", - "readOnly": true - }, - "fqdn": { - "description": "Fully qualified domain name of a labelled revision", - "type": "string", - "readOnly": true - } - } - }, "RevisionCollection": { "description": "Container App Revisions collection ARM resource.", "required": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json index 323fa04ef317..98063fc987eb 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json @@ -43,12 +43,6 @@ } }, "trafficWeight": 80, - "trafficLabels": [ - { - "label": "blue", - "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" - } - ], "active": true, "replicas": 1 } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json index 0839c7bf4723..cc1f1eea33c9 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json @@ -44,12 +44,6 @@ } }, "trafficWeight": 80, - "trafficLabels": [ - { - "label": "blue", - "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" - } - ], "active": true, "replicas": 1 } diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json index 0dca517cf280..455a262a00ee 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json @@ -436,17 +436,6 @@ "type": "integer", "readOnly": true }, - "trafficLabels": { - "description": "Traffic labels associated with this revision", - "type": "array", - "items": { - "$ref": "#/definitions/TrafficLabel" - }, - "x-ms-identifiers": [ - "label" - ], - "readOnly": true - }, "provisioningError": { "description": "Optional Field - Platform Error Message", "type": "string", @@ -487,22 +476,6 @@ } } }, - "TrafficLabel": { - "description": "Traffic label information", - "type": "object", - "properties": { - "label": { - "description": "Traffic label assigned to a revision", - "type": "string", - "readOnly": true - }, - "fqdn": { - "description": "Fully qualified domain name of a labelled revision", - "type": "string", - "readOnly": true - } - } - }, "RevisionCollection": { "description": "Container App Revisions collection ARM resource.", "required": [ diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json index 323fa04ef317..e971a77c619d 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json @@ -42,13 +42,6 @@ ] } }, - "trafficWeight": 80, - "trafficLabels": [ - { - "label": "blue", - "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" - } - ], "active": true, "replicas": 1 } diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json index 0839c7bf4723..5a8c98a7bfb3 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json @@ -43,13 +43,6 @@ ] } }, - "trafficWeight": 80, - "trafficLabels": [ - { - "label": "blue", - "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" - } - ], "active": true, "replicas": 1 } From 2b61c76d32abf86ffa0a9027439364b67ba260a5 Mon Sep 17 00:00:00 2001 From: zhenqxuMSFT Date: Thu, 18 Aug 2022 13:56:35 +0800 Subject: [PATCH 22/50] Add property for tcp apps (#20193) * Add property for tcp apps * Add scale * Fix * Fix --- .../2022-06-01-preview/CommonDefinitions.json | 29 ++- .../2022-06-01-preview/ContainerApps.json | 11 +- .../ContainerApps_TcpApp_CreateOrUpdate.json | 200 ++++++++++++++++++ 3 files changed, 238 insertions(+), 2 deletions(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index 1a2a021c4a10..61287b98510d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -332,7 +332,7 @@ } }, "HttpScaleRule": { - "description": "Container App container Custom scaling rule.", + "description": "Container App container Http scaling rule.", "type": "object", "properties": { "metadata": { @@ -354,6 +354,29 @@ } } }, + "TcpScaleRule": { + "description": "Container App container Tcp scaling rule.", + "type": "object", + "properties": { + "metadata": { + "description": "Metadata properties to describe tcp scale rule.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "auth": { + "description": "Authentication secrets for the tcp scale rule.", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleAuth" + }, + "x-ms-identifiers": [ + "triggerParameter" + ] + } + } + }, "QueueScaleRule": { "description": "Container App container Azure Queue based scaling rule.", "type": "object", @@ -424,6 +447,10 @@ "http": { "$ref": "#/definitions/HttpScaleRule", "description": "HTTP requests based scaling." + }, + "tcp": { + "$ref": "#/definitions/TcpScaleRule", + "description": "Tcp requests based scaling." } } }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 83c5ae9a0ca0..d2960da21cc3 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -202,6 +202,9 @@ "x-ms-examples": { "Create or Update Container App": { "$ref": "./examples/ContainerApps_CreateOrUpdate.json" + }, + "Create or Update Tcp App": { + "$ref": "./examples/ContainerApps_TcpApp_CreateOrUpdate.json" } }, "x-ms-long-running-operation": true @@ -640,12 +643,18 @@ "description": "Target Port in containers for traffic from ingress", "type": "integer" }, + "exposedPort": { + "format": "int32", + "description": "Exposed Port in containers for TCP traffic from ingress", + "type": "integer" + }, "transport": { "description": "Ingress transport protocol", "enum": [ "auto", "http", - "http2" + "http2", + "tcp" ], "type": "string", "x-ms-enum": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json new file mode 100644 index 000000000000..e7cb34785a35 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json @@ -0,0 +1,200 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerAppTcp", + "api-version": "2022-06-01-preview", + "containerAppEnvelope": { + "location": "East US", + "properties": { + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "configuration": { + "ingress": { + "external": true, + "targetPort": 3000, + "exposedPort": 4000, + "transport": "tcp", + "traffic": [ + { + "weight": 100, + "revisionName": "testcontainerAppTcp-ab1234" + } + ] + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerAppTcp:v1", + "name": "testcontainerAppTcp", + "probes": [ + { + "type": "Liveness", + "tcpSocket": { + "port": 8080 + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "tcpscalingrule", + "tcp": { + "metadata": { + "concurrentConnections": "50" + } + } + } + ] + } + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerAppTcp", + "name": "testcontainerAppTcp", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerAppTcp.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "exposedPort": 4000, + "transport": "tcp", + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerAppTcp-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerAppTcp-ab4321" + } + ] + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerAppTcp:v4", + "name": "testcontainerAppTcp", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "probes": [ + { + "type": "Liveness", + "tcpSocket": { + "port": 8080 + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "tcpscalingrule", + "tcp": { + "metadata": { + "concurrentConnections": "50" + } + } + } + ] + } + } + } + } + }, + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerAppTcp", + "name": "testcontainerAppTcp", + "type": "Microsoft.App/containerApps", + "location": "East US", + "properties": { + "provisioningState": "InProgress", + "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "configuration": { + "ingress": { + "fqdn": "testcontainerAppTcp.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "external": true, + "targetPort": 3000, + "exposedPort": 4000, + "transport": "tcp", + "traffic": [ + { + "weight": 80, + "revisionName": "testcontainerAppTcp-ab1234" + }, + { + "weight": 20, + "revisionName": "testcontainerAppTcp-ab4321" + } + ] + } + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerAppTcp:v4", + "name": "testcontainerAppTcp", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "probes": [ + { + "type": "Liveness", + "tcpSocket": { + "port": 8080 + }, + "initialDelaySeconds": 3, + "periodSeconds": 3 + } + ] + } + ], + "scale": { + "minReplicas": 1, + "maxReplicas": 5, + "rules": [ + { + "name": "tcpscalingrule", + "tcp": { + "metadata": { + "concurrentConnections": "50" + } + } + } + ] + } + } + } + } + } + } +} From fba4c8b7491aad28744bdd67ab031cc7d6bfe7a3 Mon Sep 17 00:00:00 2001 From: p-bouchon <107427816+p-bouchon@users.noreply.github.com> Date: Thu, 18 Aug 2022 21:07:53 -0500 Subject: [PATCH 23/50] Add Init Containers to common definitions (#19855) * add init containers to common definitions * move changes to 06-01 preview * remove repeated container definition * fix allof syntax * fix anonymous container definition * fix lintdiff errors * fix container allof syntax * add more init examples * split baseContainer definition * remove description Co-authored-by: p-bouchon --- .../2022-06-01-preview/CommonDefinitions.json | 52 +++++++++++++++---- .../ContainerApps_CreateOrUpdate.json | 51 ++++++++++++++++++ .../examples/ContainerApps_Get.json | 10 ++++ .../ContainerApps_ListByResourceGroup.json | 10 ++++ .../ContainerApps_ListBySubscription.json | 10 ++++ .../examples/ContainerApps_Patch.json | 10 ++++ 6 files changed, 132 insertions(+), 11 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index 61287b98510d..b6ea45c70d20 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -34,8 +34,8 @@ } } }, - "Container": { - "description": "Container App container definition.", + "BaseContainer": { + "description": "Container App base container definition.", "type": "object", "properties": { "image": { @@ -74,24 +74,44 @@ "$ref": "#/definitions/ContainerResources", "description": "Container resource requirements." }, - "probes": { - "description": "List of probes for the container.", + "volumeMounts": { + "description": "Container volume mounts.", "type": "array", "items": { - "$ref": "#/definitions/ContainerAppProbe" + "$ref": "#/definitions/VolumeMount" }, "x-ms-identifiers": [ - "type" + "volumeName" ] - }, - "volumeMounts": { - "description": "Container volume mounts.", + } + } + }, + "InitContainer": { + "description": "Container App init container definition", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/BaseContainer" + } + ] + }, + "Container": { + "description": "Container App container definition", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/BaseContainer" + } + ], + "properties": { + "probes": { + "description": "List of probes for the container.", "type": "array", "items": { - "$ref": "#/definitions/VolumeMount" + "$ref": "#/definitions/ContainerAppProbe" }, "x-ms-identifiers": [ - "volumeName" + "type" ] } } @@ -495,6 +515,16 @@ "description": "User friendly suffix that is appended to the revision name", "type": "string" }, + "initContainers": { + "description": "List of specialized containers that run before app containers.", + "type": "array", + "items": { + "$ref": "#/definitions/InitContainer" + }, + "x-ms-identifiers": [ + "name" + ] + }, "containers": { "description": "List of container definitions for the Container App.", "type": "array", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index f18b29998785..d189401f3876 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -80,6 +80,23 @@ ] } ], + "initContainers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "command": [ + "/bin/sh" + ], + "args": [ + "-c", + "while true; do echo hello; sleep 10;done" + ] + } + ], "scale": { "minReplicas": 1, "maxReplicas": 5, @@ -190,6 +207,23 @@ ] } ], + "initContainers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "command": [ + "/bin/sh" + ], + "args": [ + "-c", + "while true; do echo hello; sleep 10;done" + ] + } + ], "scale": { "minReplicas": 1, "maxReplicas": 5, @@ -272,6 +306,23 @@ ] } ], + "initContainers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + }, + "command": [ + "/bin/sh" + ], + "args": [ + "-c", + "while true; do echo hello; sleep 10;done" + ] + } + ], "scale": { "minReplicas": 1, "maxReplicas": 5, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json index 6ae766c16cc0..dc9f7ac49140 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -82,6 +82,16 @@ } } ], + "initContainers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], "scale": { "minReplicas": 1, "maxReplicas": 5, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json index 171c38bc7c24..7be9511aff3a 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -83,6 +83,16 @@ } } ], + "initContainers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], "scale": { "minReplicas": 1, "maxReplicas": 5, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json index 18e9a386e84b..b7e3a4a4883d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -82,6 +82,16 @@ } } ], + "initContainers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], "scale": { "minReplicas": 1, "maxReplicas": 5, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json index 4c34c4d74fa0..1efc5cd79e33 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json @@ -83,6 +83,16 @@ ] } ], + "initContainers": [ + { + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], "scale": { "minReplicas": 1, "maxReplicas": 5, From 68a1c9e2563c5784bae4fbdfbedf0629796f45a7 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 26 Aug 2022 19:45:01 +0800 Subject: [PATCH 24/50] Update container app provisioningstate (#20411) * update * update --- .../preview/2022-01-01-preview/ContainerApps.json | 3 ++- .../preview/2022-06-01-preview/ContainerApps.json | 3 ++- .../Microsoft.App/stable/2022-03-01/ContainerApps.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json index 4aff2475e7ab..4f5698f87d16 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json @@ -479,7 +479,8 @@ "InProgress", "Succeeded", "Failed", - "Canceled" + "Canceled", + "Deleting" ], "type": "string", "readOnly": true, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index d2960da21cc3..5cc2bf972f99 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -483,7 +483,8 @@ "InProgress", "Succeeded", "Failed", - "Canceled" + "Canceled", + "Deleting" ], "type": "string", "readOnly": true, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json index 877cbec9784b..eae776b03f71 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json @@ -477,7 +477,8 @@ "InProgress", "Succeeded", "Failed", - "Canceled" + "Canceled", + "Deleting" ], "type": "string", "readOnly": true, From e4568a1cfcee77c214a19ef4d3f92360a3f6c6ae Mon Sep 17 00:00:00 2001 From: njucz <740360112@qq.com> Date: Tue, 30 Aug 2022 11:08:48 +0800 Subject: [PATCH 25/50] add property: maxInactiveRevisions (#20334) * add property: maxInactiveRevisions * update * update --- .../preview/2022-06-01-preview/ContainerApps.json | 5 +++++ .../examples/ContainerApps_CreateOrUpdate.json | 3 ++- .../2022-06-01-preview/examples/ContainerApps_Get.json | 3 ++- .../examples/ContainerApps_ListByResourceGroup.json | 3 ++- .../examples/ContainerApps_ListBySubscription.json | 3 ++- .../2022-06-01-preview/examples/ContainerApps_Patch.json | 3 ++- 6 files changed, 15 insertions(+), 5 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 5cc2bf972f99..d22124282d84 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -454,6 +454,11 @@ "dapr": { "$ref": "#/definitions/Dapr", "description": "Dapr configuration for the Container App." + }, + "maxInactiveRevisions": { + "format": "int32", + "description": "Optional. Max inactive revisions a Container App can have.", + "type": "integer" } } }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index d189401f3876..e7ba1f743ed2 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -54,7 +54,8 @@ "httpMaxRequestSize": 10, "logLevel": "debug", "enableApiLogging": true - } + }, + "maxInactiveRevisions": 10 }, "template": { "containers": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json index dc9f7ac49140..131b989f2dc6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -69,7 +69,8 @@ "httpMaxRequestSize": 10, "logLevel": "debug", "enableApiLogging": true - } + }, + "maxInactiveRevisions": 10 }, "template": { "containers": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json index 7be9511aff3a..71cce696e34f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -70,7 +70,8 @@ "httpMaxRequestSize": 10, "logLevel": "debug", "enableApiLogging": true - } + }, + "maxInactiveRevisions": 10 }, "template": { "containers": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json index b7e3a4a4883d..50160b6ddec7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -69,7 +69,8 @@ "httpMaxRequestSize": 10, "logLevel": "debug", "enableApiLogging": true - } + }, + "maxInactiveRevisions": 10 }, "template": { "containers": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json index 1efc5cd79e33..d2cb9c0a4dc6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json @@ -57,7 +57,8 @@ "httpMaxRequestSize": 10, "logLevel": "debug", "enableApiLogging": true - } + }, + "maxInactiveRevisions": 10 }, "template": { "containers": [ From 62f0c6256ffda248e5d9bba61aae2102aa526eb7 Mon Sep 17 00:00:00 2001 From: JJ Date: Mon, 29 Aug 2022 20:40:03 -0700 Subject: [PATCH 26/50] Add premium sku related properties for managed environment (#19770) * Add premium sku related properties for managed environment * Move sku to base property * Add workloadProfileType * Examples for managed environment * Add container app example * Fix workloadProfiles * Add custom word * Fix WorkloadProfileType references * prettier fixes * Fix workload profile * Fix typo * remove readonly property for workload profile * Add object type * nit: Fix description location * Fix XmsIdentifierValidation * Remove spaces from enum values * Remove unwanted change * Add aka ms url * Update examples for workload profile type * Fix rebase issue * Fix json * Update description and move location * Remove provisioning state for node pool * sku capacity explanation * Remove capacity attribute * Remove capacity attribute from required * Mark sku property as required * Add x-ms-identifiers * Rename mimum and maximum * Rename skutype to skuName * Make sku property as optional * Make workload profile type as string * fix go SDK automation config Co-authored-by: Chenjie Shi --- .../2022-06-01-preview/CommonDefinitions.json | 4 + .../2022-06-01-preview/ContainerApps.json | 4 + .../ManagedEnvironments.json | 73 +++++++++++++++++++ .../ContainerApps_CreateOrUpdate.json | 2 + .../examples/ContainerApps_Get.json | 1 + .../ContainerApps_ListByResourceGroup.json | 1 + .../ContainerApps_ListBySubscription.json | 1 + .../ManagedEnvironments_CreateOrUpdate.json | 66 ++++++++++++++++- .../examples/ManagedEnvironments_Get.json | 22 +++++- ...nagedEnvironments_ListByResourceGroup.json | 25 ++++++- ...anagedEnvironments_ListBySubscription.json | 25 ++++++- specification/app/resource-manager/readme.md | 2 +- 12 files changed, 219 insertions(+), 7 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index b6ea45c70d20..4be8167f677c 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -34,6 +34,10 @@ } } }, + "WorkloadProfileType": { + "description": "Workload profile type for container apps to execute.", + "type": "string" + }, "BaseContainer": { "description": "Container App base container definition.", "type": "object", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index d22124282d84..0d6ebf1059c0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -514,6 +514,10 @@ "read" ] }, + "workloadProfileType": { + "$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileType", + "description": "Workload profile type to pin for container app execution." + }, "latestRevisionName": { "description": "Name of the latest revision of the Container App.", "type": "string", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index 2b94e129694d..ea727556e144 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -770,6 +770,10 @@ } ], "properties": { + "sku": { + "$ref": "#/definitions/EnvironmentSkuProperties", + "description": "SKU properties of the Environment." + }, "properties": { "description": "Managed environment resource specific properties", "type": "object", @@ -839,6 +843,16 @@ "customDomainConfiguration": { "$ref": "#/definitions/CustomDomainConfiguration", "description": "Custom domain configuration for the environment" + }, + "workloadProfiles": { + "description": "Workload profiles configured for the Managed Environment.", + "type": "array", + "items": { + "$ref": "#/definitions/WorkloadProfile" + }, + "x-ms-identifiers": [ + "workloadProfileType" + ] } }, "x-ms-client-flatten": true @@ -884,6 +898,65 @@ "x-ms-secret": true } } + }, + "WorkloadProfile": { + "description": "Workload profile to scope container app execution.", + "type": "object", + "properties": { + "workloadProfileType": { + "$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileType", + "description": "Workload profile type for the workloads to run on." + }, + "minimumCount": { + "type": "integer", + "format": "int32", + "description": "The minimum capacity." + }, + "maximumCount": { + "type": "integer", + "format": "int32", + "description": "The maximum capacity." + } + }, + "required": [ + "workloadProfileType", + "minimumCount", + "maximumCount" + ] + }, + "EnvironmentSkuProperties": { + "description": "Managed Environment resource SKU properties.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Sku.", + "externalDocs": { + "url": "https://aka.ms/container-apps-pricing" + }, + "enum": [ + "Consumption", + "Premium" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true, + "values": [ + { + "value": "Consumption", + "description": "Consumption SKU of Managed Environment." + }, + { + "value": "Premium", + "description": "Premium SKU of Managed Environment." + } + ] + } + } + }, + "required": [ + "name" + ] } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index e7ba1f743ed2..66296f066b09 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -8,6 +8,7 @@ "location": "East US", "properties": { "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "workloadProfileType": "GeneralPurpose", "configuration": { "ingress": { "external": true, @@ -128,6 +129,7 @@ "properties": { "provisioningState": "Succeeded", "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "workloadProfileType": "GeneralPurpose", "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", "configuration": { "ingress": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json index 131b989f2dc6..f1602fe97bc2 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -16,6 +16,7 @@ "properties": { "provisioningState": "Succeeded", "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "workloadProfileType": "GeneralPurpose", "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", "configuration": { "ingress": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json index 71cce696e34f..d1e8e03e16ce 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -17,6 +17,7 @@ "properties": { "provisioningState": "Succeeded", "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "workloadProfileType": "GeneralPurpose", "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", "configuration": { "ingress": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json index 50160b6ddec7..bb4276a39d57 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -16,6 +16,7 @@ "properties": { "provisioningState": "Succeeded", "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "workloadProfileType": "GeneralPurpose", "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", "configuration": { "ingress": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json index 7ff40c3c4aac..bc6499cf010e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json @@ -6,6 +6,9 @@ "api-version": "2022-06-01-preview", "environmentEnvelope": { "location": "East US", + "sku": { + "name": "Premium" + }, "properties": { "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/", "appLogsConfiguration": { @@ -19,7 +22,24 @@ "dnsSuffix": "www.my-name.com", "certificateValue": "PFX-or-PEM-blob", "certificatePassword": "private key password" - } + }, + "workloadProfiles": [ + { + "workloadProfileType": "GeneralPurpose", + "minimumCount": 3, + "maximumCount": 12 + }, + { + "workloadProfileType": "MemoryOptimized", + "minimumCount": 3, + "maximumCount": 6 + }, + { + "workloadProfileType": "ComputeOptimized", + "minimumCount": 3, + "maximumCount": 6 + } + ] } } }, @@ -30,6 +50,9 @@ "name": "testcontainerenv", "type": "Microsoft.App/managedEnvironments", "location": "East US", + "sku": { + "name": "Premium" + }, "properties": { "provisioningState": "Succeeded", "deploymentErrors": null, @@ -47,7 +70,24 @@ "subjectName": "CN=www.my-name.com", "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" - } + }, + "workloadProfiles": [ + { + "workloadProfileType": "GeneralPurpose", + "minimumCount": 3, + "maximumCount": 12 + }, + { + "workloadProfileType": "MemoryOptimized", + "minimumCount": 3, + "maximumCount": 6 + }, + { + "workloadProfileType": "ComputeOptimized", + "minimumCount": 3, + "maximumCount": 6 + } + ] } } }, @@ -57,6 +97,9 @@ "name": "testcontainerenv", "type": "Microsoft.App/managedEnvironments", "location": "East US", + "sku": { + "name": "Premium" + }, "properties": { "provisioningState": "InitializationInProgress", "deploymentErrors": null, @@ -74,7 +117,24 @@ "subjectName": "CN=www.my-name.com", "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" - } + }, + "workloadProfiles": [ + { + "workloadProfileType": "GeneralPurpose", + "minimumCount": 3, + "maximumCount": 12 + }, + { + "workloadProfileType": "MemoryOptimized", + "minimumCount": 3, + "maximumCount": 6 + }, + { + "workloadProfileType": "ComputeOptimized", + "minimumCount": 3, + "maximumCount": 6 + } + ] } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json index 093e86d93161..6c69a7b8ab1a 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json @@ -13,6 +13,9 @@ "type": "Microsoft.App/managedEnvironments", "location": "North Central US", "tags": {}, + "sku": { + "name": "Premium" + }, "properties": { "provisioningState": "Succeeded", "deploymentErrors": null, @@ -25,7 +28,24 @@ "subjectName": "CN=www.my-name.com", "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" - } + }, + "workloadProfiles": [ + { + "workloadProfileType": "GeneralPurpose", + "minimumCount": 3, + "maximumCount": 12 + }, + { + "workloadProfileType": "MemoryOptimized", + "minimumCount": 3, + "maximumCount": 6 + }, + { + "workloadProfileType": "ComputeOptimized", + "minimumCount": 3, + "maximumCount": 6 + } + ] } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json index efb02c380984..5b7bcca51438 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json @@ -14,6 +14,9 @@ "type": "Microsoft.App/managedEnvironments", "location": "North Central US", "tags": {}, + "sku": { + "name": "Premium" + }, "properties": { "provisioningState": "Succeeded", "deploymentErrors": null, @@ -27,7 +30,24 @@ "subjectName": "CN=www.my-name.com", "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" - } + }, + "workloadProfiles": [ + { + "workloadProfileType": "GeneralPurpose", + "minimumCount": 3, + "maximumCount": 12 + }, + { + "workloadProfileType": "MemoryOptimized", + "minimumCount": 3, + "maximumCount": 6 + }, + { + "workloadProfileType": "ComputeOptimized", + "minimumCount": 3, + "maximumCount": 6 + } + ] } }, { @@ -36,6 +56,9 @@ "type": "Microsoft.App/managedEnvironments", "location": "North Central US", "tags": {}, + "sku": { + "name": "Consumption" + }, "properties": { "provisioningState": "Succeeded", "deploymentErrors": null, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json index 3ddcb293aa7f..f0bfc7f8292b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json @@ -13,6 +13,9 @@ "type": "Microsoft.App/managedEnvironments", "location": "North Central US", "tags": {}, + "sku": { + "name": "Premium" + }, "properties": { "provisioningState": "Succeeded", "deploymentErrors": null, @@ -26,7 +29,24 @@ "subjectName": "CN=www.my-name.com", "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" - } + }, + "workloadProfiles": [ + { + "workloadProfileType": "GeneralPurpose", + "minimumCount": 3, + "maximumCount": 12 + }, + { + "workloadProfileType": "MemoryOptimized", + "minimumCount": 3, + "maximumCount": 6 + }, + { + "workloadProfileType": "ComputeOptimized", + "minimumCount": 3, + "maximumCount": 6 + } + ] } }, { @@ -35,6 +55,9 @@ "type": "Microsoft.App/managedEnvironments", "location": "North Central US", "tags": {}, + "sku": { + "name": "Consumption" + }, "properties": { "provisioningState": "Succeeded", "deploymentErrors": null, diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 22ae6305b313..a709225896f8 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -157,7 +157,7 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-go - repo: azure-sdk-for-js - repo: azure-resource-manager-schemas - repo: azure-cli-extensions From 483d3a44521842a21d9f8a16eac9dc0dde08c627 Mon Sep 17 00:00:00 2001 From: yalixiang <88011184+yalixiang@users.noreply.github.com> Date: Tue, 30 Aug 2022 16:42:54 +0800 Subject: [PATCH 27/50] Fix source control status code in 2022-06-01-preview. (#20429) --- .../preview/2022-01-01-preview/SourceControls.json | 8 ++++---- .../examples/SourceControls_CreateOrUpdate.json | 2 +- .../preview/2022-06-01-preview/SourceControls.json | 8 ++++---- .../examples/SourceControls_CreateOrUpdate.json | 2 +- .../Microsoft.App/stable/2022-03-01/SourceControls.json | 8 ++++---- .../examples/SourceControls_CreateOrUpdate.json | 2 +- .../Microsoft.App/stable/2022-05-01/SourceControls.json | 8 ++++---- .../examples/SourceControls_CreateOrUpdate.json | 2 +- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json index d07f59442b89..d9445cf3cde8 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json @@ -177,13 +177,13 @@ ], "responses": { "200": { - "description": "No change performed on the Container App.", + "description": "OK", "schema": { "$ref": "#/definitions/SourceControl" } }, - "202": { - "description": "Container App create or update has been started.", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/SourceControl" } @@ -236,7 +236,7 @@ ], "responses": { "200": { - "description": "Container App deleted successfully." + "description": "Container App SourceControl deleted successfully." }, "202": { "description": "Delete operation is in progress." diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json index a3a5bd3e2b5d..485e17cf743b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json @@ -44,7 +44,7 @@ } } }, - "202": { + "201": { "headers": { "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json index a2840222552b..3b8a02263d93 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/SourceControls.json @@ -177,13 +177,13 @@ ], "responses": { "200": { - "description": "No change performed on the Container App.", + "description": "OK", "schema": { "$ref": "#/definitions/SourceControl" } }, - "202": { - "description": "Container App create or update has been started.", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/SourceControl" } @@ -236,7 +236,7 @@ ], "responses": { "200": { - "description": "Container App deleted successfully." + "description": "Container App SourceControl deleted successfully." }, "202": { "description": "Delete operation is in progress." diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json index c177174e2600..9997b785b8db 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json @@ -48,7 +48,7 @@ } } }, - "202": { + "201": { "headers": { "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json index 667d73c3fa6b..b710ae2f9898 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json @@ -177,13 +177,13 @@ ], "responses": { "200": { - "description": "No change performed on the Container App.", + "description": "OK", "schema": { "$ref": "#/definitions/SourceControl" } }, - "202": { - "description": "Container App create or update has been started.", + "201": { + "description": "Created.", "schema": { "$ref": "#/definitions/SourceControl" } @@ -236,7 +236,7 @@ ], "responses": { "200": { - "description": "Container App deleted successfully." + "description": "Container App SourceControl deleted successfully." }, "202": { "description": "Delete operation is in progress." diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json index f304e1427005..49ecf9be5314 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json @@ -48,7 +48,7 @@ } } }, - "202": { + "201": { "headers": { "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json index 591bea40b997..66362f5b177f 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json @@ -177,13 +177,13 @@ ], "responses": { "200": { - "description": "No change performed on the Container App.", + "description": "OK", "schema": { "$ref": "#/definitions/SourceControl" } }, - "202": { - "description": "Container App create or update has been started.", + "201": { + "description": "Created.", "schema": { "$ref": "#/definitions/SourceControl" } @@ -236,7 +236,7 @@ ], "responses": { "200": { - "description": "Container App deleted successfully." + "description": "Container App SourceControl deleted successfully." }, "202": { "description": "Delete operation is in progress." diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json index 3c732c762698..9f0b2606b0a7 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json @@ -48,7 +48,7 @@ } } }, - "202": { + "201": { "headers": { "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" }, From 9845076934a449f7c0e3207a9bf03943c8f652f7 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Tue, 30 Aug 2022 20:58:08 -0400 Subject: [PATCH 28/50] Swagger documentation for /locations/{location}/billingMeters - GET endpoint --- .../2022-06-01-preview/CommonDefinitions.json | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index 4be8167f677c..573f6c78eef6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -903,6 +903,60 @@ "description": "Application-specific metadata in the form of key-value pairs." } } + }, + "BillingMeter": { + "type": "object", + "properties": { + "meterId":{ + "type": "string", + "description": "Billing meter id." + }, + "category":{ + "type": "string", + "enum": [ + "PremiumSkuGeneralCompute", + "PremiumSkuMemoryOptimized", + "PremiumSkuComputeOptimized" + ], + "description": "Used to map workload profile types to billing meter." + }, + "type":{ + "type": "string", + "enum": [ + "Memory", + "CPU" + ], + "description": "Compute type." + }, + "shortName":{ + "type": "string", + "description": "Unique short name for the meter." + }, + "friendlyName":{ + "type": "string", + "description": "The everyday name of the billing meter." + }, + "billingLocation":{ + "type": "string", + "description": "Region for the billing meter." + } + } + }, + "BillingMeterCollection": { + "description": "Collection of premium workload billing meters.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of billing meters.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingMeter" + } + } + } } }, "securityDefinitions": { From 404bde200d3bc51a7b44321b4daadc58cb7ef227 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Tue, 30 Aug 2022 22:34:38 -0400 Subject: [PATCH 29/50] Add example, fix validation errors --- .../2022-06-01-preview/CommonDefinitions.json | 13 ++++++-- .../examples/BillingMeters_Get.json | 31 +++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index 573f6c78eef6..84adaf3937ab 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -905,6 +905,7 @@ } }, "BillingMeter": { + "description": "A premium billing meter.", "type": "object", "properties": { "meterId":{ @@ -912,21 +913,29 @@ "description": "Billing meter id." }, "category":{ + "description": "Used to map workload profile types to billing meter.", "type": "string", "enum": [ "PremiumSkuGeneralCompute", "PremiumSkuMemoryOptimized", "PremiumSkuComputeOptimized" ], - "description": "Used to map workload profile types to billing meter." + "x-ms-enum": { + "name": "Category", + "modelAsString": true + } }, "type":{ + "description": "Compute type.", "type": "string", "enum": [ "Memory", "CPU" ], - "description": "Compute type." + "x-ms-enum": { + "name": "ComputeType", + "modelAsString": true + } }, "shortName":{ "type": "string", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json new file mode 100644 index 000000000000..e25b8433bd02 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "location ": "East US", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "meterId": "7a3b96e3-1c68-4506-86d8-224b89b3347f", + "category": "PremiumSkuGeneralCompute", + "type": "CPU", + "shortName": "PremiumSKUGeneralComputeCPU", + "friendlyName": "Premium SKU General Compute Cores per Second", + "billingLocation": "East US" + }, + { + "meterId": "2343b96e3-1c68-4506-86d8-224b8ass347f", + "category": "PremiumSkuGeneralCompute", + "type": "Memory", + "shortName": "PremiumSKUGeneralComputeMemory", + "friendlyName": "Premium SKU General Compute Memory GB per Second", + "billingLocation": "East US" + } + ] + } + } + } +} From 51042c8681a17b1491350f9442349fea589a4313 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Wed, 31 Aug 2022 14:53:40 -0400 Subject: [PATCH 30/50] Fix ARM validation errors, code review comments --- .../2022-06-01-preview/BillingMeters.json | 127 ++++++++++++++++++ .../2022-06-01-preview/CommonDefinitions.json | 63 --------- .../examples/BillingMeters_Get.json | 6 +- 3 files changed, 130 insertions(+), 66 deletions(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json new file mode 100644 index 000000000000..4610f7ac6810 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json @@ -0,0 +1,127 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-06-01-preview", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters": { + "get": { + "tags": [ + "BillingMeters" + ], + "summary": "Get billing meters by location.", + "description": "Get all billingMeters for a location.", + "operationId": "BillingMeters_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BillingMeterCollection" + } + } + }, + "x-ms-examples": { + "List billing meters by location": { + "$ref": "./examples/BillingMeters_Get.json" + } + } + } + } + }, + "definitions": { + "BillingMeter": { + "description": "A premium billing meter.", + "type": "object", + "properties": { + "id":{ + "type": "string", + "description": "Billing meter id." + }, + "category":{ + "description": "Used to map workload profile types to billing meter.", + "type": "string", + "enum": [ + "PremiumSkuGeneralCompute", + "PremiumSkuMemoryOptimized", + "PremiumSkuComputeOptimized" + ], + "x-ms-enum": { + "name": "Category", + "modelAsString": true + } + }, + "type":{ + "description": "Compute type.", + "type": "string", + "enum": [ + "Memory", + "CPU" + ], + "x-ms-enum": { + "name": "ComputeType", + "modelAsString": true + } + }, + "shortName":{ + "type": "string", + "description": "Unique short name for the meter." + }, + "friendlyName":{ + "type": "string", + "description": "The everyday name of the billing meter." + }, + "billingLocation":{ + "type": "string", + "description": "Region for the billing meter." + } + } + }, + "BillingMeterCollection": { + "description": "Collection of premium workload billing meters.", + "required": [ + "value", + "location" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of billing meters.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingMeter" + } + } + } + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index 84adaf3937ab..4be8167f677c 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -903,69 +903,6 @@ "description": "Application-specific metadata in the form of key-value pairs." } } - }, - "BillingMeter": { - "description": "A premium billing meter.", - "type": "object", - "properties": { - "meterId":{ - "type": "string", - "description": "Billing meter id." - }, - "category":{ - "description": "Used to map workload profile types to billing meter.", - "type": "string", - "enum": [ - "PremiumSkuGeneralCompute", - "PremiumSkuMemoryOptimized", - "PremiumSkuComputeOptimized" - ], - "x-ms-enum": { - "name": "Category", - "modelAsString": true - } - }, - "type":{ - "description": "Compute type.", - "type": "string", - "enum": [ - "Memory", - "CPU" - ], - "x-ms-enum": { - "name": "ComputeType", - "modelAsString": true - } - }, - "shortName":{ - "type": "string", - "description": "Unique short name for the meter." - }, - "friendlyName":{ - "type": "string", - "description": "The everyday name of the billing meter." - }, - "billingLocation":{ - "type": "string", - "description": "Region for the billing meter." - } - } - }, - "BillingMeterCollection": { - "description": "Collection of premium workload billing meters.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of billing meters.", - "type": "array", - "items": { - "$ref": "#/definitions/BillingMeter" - } - } - } } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json index e25b8433bd02..bd2fcd5a265c 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "location ": "East US", + "location": "East US", "api-version": "2022-06-01-preview" }, "responses": { @@ -9,7 +9,7 @@ "body": { "value": [ { - "meterId": "7a3b96e3-1c68-4506-86d8-224b89b3347f", + "id": "7a3b96e3-1c68-4506-86d8-224b89b3347f", "category": "PremiumSkuGeneralCompute", "type": "CPU", "shortName": "PremiumSKUGeneralComputeCPU", @@ -17,7 +17,7 @@ "billingLocation": "East US" }, { - "meterId": "2343b96e3-1c68-4506-86d8-224b8ass347f", + "id": "2343b96e3-1c68-4506-86d8-224b8ass347f", "category": "PremiumSkuGeneralCompute", "type": "Memory", "shortName": "PremiumSKUGeneralComputeMemory", From 54d80fd7d64515c1953b5e4fb9487a2c1fb8d4d8 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Wed, 31 Aug 2022 15:01:42 -0400 Subject: [PATCH 31/50] Fix response validation --- .../preview/2022-06-01-preview/BillingMeters.json | 3 +-- specification/app/resource-manager/readme.md | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json index 4610f7ac6810..61e5977de0ba 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json @@ -98,8 +98,7 @@ "BillingMeterCollection": { "description": "Collection of premium workload billing meters.", "required": [ - "value", - "location" + "value" ], "type": "object", "properties": { diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index a709225896f8..4bae9429efa6 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -50,6 +50,7 @@ input-file: - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json + - Microsoft.App/preview/2022-06-01-preview/BillingMeters.json ``` ### Tag: package-2022-05 From c6e7c4241381b4c11e1e8565dead50af46bf3d05 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Thu, 1 Sep 2022 10:08:34 +0800 Subject: [PATCH 32/50] Remove 20220501 because we will not support it in server side (#20427) * remove * update --- .../stable/2022-05-01/AuthConfigs.json | 980 ----------------- .../stable/2022-05-01/CommonDefinitions.json | 556 ---------- .../stable/2022-05-01/ContainerApps.json | 905 ---------------- .../2022-05-01/ContainerAppsRevisions.json | 596 ----------- .../stable/2022-05-01/DaprComponents.json | 428 -------- .../stable/2022-05-01/Diagnostics.json | 715 ------------- .../stable/2022-05-01/Global.json | 140 --- .../2022-05-01/ManagedEnvironments.json | 986 ------------------ .../ManagedEnvironmentsStorages.json | 321 ------ .../stable/2022-05-01/SourceControls.json | 429 -------- .../examples/AuthConfigs_CreateOrUpdate.json | 53 - .../examples/AuthConfigs_Delete.json | 13 - .../2022-05-01/examples/AuthConfigs_Get.json | 35 - .../examples/AuthConfigs_ListByContainer.json | 39 - .../examples/Certificate_CreateOrUpdate.json | 35 - .../examples/Certificate_Delete.json | 13 - .../2022-05-01/examples/Certificate_Get.json | 29 - .../Certificates_CheckNameAvailability.json | 21 - ...Certificates_ListByManagedEnvironment.json | 47 - .../examples/Certificates_Patch.json | 38 - .../ContainerAppsDiagnostics_Get.json | 68 -- .../ContainerAppsDiagnostics_List.json | 38 - .../ContainerApps_CheckNameAvailability.json | 21 - .../ContainerApps_CreateOrUpdate.json | 263 ----- .../examples/ContainerApps_Delete.json | 17 - .../examples/ContainerApps_Get.json | 88 -- .../ContainerApps_ListByResourceGroup.json | 91 -- .../ContainerApps_ListBySubscription.json | 90 -- ...tainerApps_ListCustomHostNameAnalysis.json | 42 - .../examples/ContainerApps_ListSecrets.json | 23 - .../examples/ContainerApps_Patch.json | 95 -- .../DaprComponents_CreateOrUpdate.json | 87 -- .../examples/DaprComponents_Delete.json | 13 - .../examples/DaprComponents_Get.json | 51 - .../examples/DaprComponents_List.json | 54 - .../examples/DaprComponents_ListSecrets.json | 24 - .../ManagedEnvironmentDiagnostics_Get.json | 68 -- .../ManagedEnvironmentDiagnostics_List.json | 37 - ...edEnvironmentsStorages_CreateOrUpdate.json | 35 - .../ManagedEnvironmentsStorages_Delete.json | 13 - .../ManagedEnvironmentsStorages_Get.json | 25 - .../ManagedEnvironmentsStorages_List.json | 28 - .../ManagedEnvironments_CreateOrUpdate.json | 63 -- .../examples/ManagedEnvironments_Delete.json | 14 - .../examples/ManagedEnvironments_Get.json | 26 - ...nagedEnvironments_ListByResourceGroup.json | 45 - ...anagedEnvironments_ListBySubscription.json | 44 - .../examples/ManagedEnvironments_Patch.json | 22 - .../2022-05-01/examples/Operations_List.json | 24 - .../2022-05-01/examples/Replicas_Get.json | 32 - .../2022-05-01/examples/Replicas_List.json | 35 - .../examples/Revisions_Activate.json | 12 - .../examples/Revisions_Deactivate.json | 12 - .../2022-05-01/examples/Revisions_Get.json | 51 - .../2022-05-01/examples/Revisions_List.json | 55 - .../examples/Revisions_Restart.json | 12 - .../SourceControls_CreateOrUpdate.json | 75 -- .../examples/SourceControls_Delete.json | 18 - .../examples/SourceControls_Get.json | 31 - .../SourceControls_ListByContainer.json | 35 - specification/app/resource-manager/readme.md | 17 - 61 files changed, 8273 deletions(-) delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json deleted file mode 100644 index 1fcf4ed2ffb8..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/AuthConfigs.json +++ /dev/null @@ -1,980 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs": { - "get": { - "tags": [ - "ContainerAppsAuthConfigs" - ], - "summary": "Get the Container App AuthConfigs in a given resource group.", - "operationId": "ContainerAppsAuthConfigs_ListByContainerApp", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AuthConfigCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Auth Configs by Container Apps": { - "$ref": "./examples/AuthConfigs_ListByContainer.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}": { - "get": { - "tags": [ - "ContainerAppsAuthConfigs" - ], - "summary": "Get a AuthConfig of a Container App.", - "operationId": "ContainerAppsAuthConfigs_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "authConfigName", - "in": "path", - "description": "Name of the Container App AuthConfig.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AuthConfig" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App's AuthConfig": { - "$ref": "./examples/AuthConfigs_Get.json" - } - } - }, - "put": { - "tags": [ - "ContainerAppsAuthConfigs" - ], - "summary": "Create or update the AuthConfig for a Container App.", - "description": "Create or update the AuthConfig for a Container App.", - "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "authConfigName", - "in": "path", - "description": "Name of the Container App AuthConfig.", - "required": true, - "type": "string" - }, - { - "name": "authConfigEnvelope", - "in": "body", - "description": "Properties used to create a Container App AuthConfig", - "required": true, - "schema": { - "$ref": "#/definitions/AuthConfig" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Ok", - "schema": { - "$ref": "#/definitions/AuthConfig" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Create or Update Container App AuthConfig": { - "$ref": "./examples/AuthConfigs_CreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "ContainerAppsAuthConfigs" - ], - "summary": "Delete a Container App AuthConfig.", - "description": "Delete a Container App AuthConfig.", - "operationId": "ContainerAppsAuthConfigs_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "authConfigName", - "in": "path", - "description": "Name of the Container App AuthConfig.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Container App deleted successfully." - }, - "204": { - "description": "Container App AuthConfig does not exist." - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete Container App AuthConfig": { - "$ref": "./examples/AuthConfigs_Delete.json" - } - } - } - } - }, - "definitions": { - "AuthConfigCollection": { - "description": "AuthConfig collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/AuthConfig" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "AuthConfig": { - "description": "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "AuthConfig resource specific properties", - "type": "object", - "properties": { - "platform": { - "$ref": "#/definitions/AuthPlatform", - "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization." - }, - "globalValidation": { - "$ref": "#/definitions/GlobalValidation", - "description": "The configuration settings that determines the validation flow of users using Service Authentication/Authorization." - }, - "identityProviders": { - "$ref": "#/definitions/IdentityProviders", - "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization." - }, - "login": { - "$ref": "#/definitions/Login", - "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization." - }, - "httpSettings": { - "$ref": "#/definitions/HttpSettings", - "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization." - } - }, - "x-ms-client-flatten": true - } - } - }, - "AuthPlatform": { - "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization.", - "type": "object", - "properties": { - "enabled": { - "description": "true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.", - "type": "boolean" - }, - "runtimeVersion": { - "description": "The RuntimeVersion of the Authentication / Authorization feature in use for the current app.\nThe setting in this value can control the behavior of certain features in the Authentication / Authorization module.", - "type": "string" - } - } - }, - "GlobalValidation": { - "description": "The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization.", - "type": "object", - "properties": { - "unauthenticatedClientAction": { - "description": "The action to take when an unauthenticated client attempts to access the app.", - "enum": [ - "RedirectToLoginPage", - "AllowAnonymous", - "Return401", - "Return403" - ], - "type": "string", - "x-ms-enum": { - "name": "UnauthenticatedClientActionV2", - "modelAsString": false - } - }, - "redirectToProvider": { - "description": "The default authentication provider to use when multiple providers are configured.\nThis setting is only needed if multiple providers are configured and the unauthenticated client\naction is set to \"RedirectToLoginPage\".", - "type": "string" - }, - "excludedPaths": { - "description": "The paths for which unauthenticated flow would not be redirected to the login page.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "HttpSettings": { - "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization.", - "type": "object", - "properties": { - "requireHttps": { - "description": "false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true.", - "type": "boolean" - }, - "routes": { - "$ref": "#/definitions/HttpSettingsRoutes", - "description": "The configuration settings of the paths HTTP requests." - }, - "forwardProxy": { - "$ref": "#/definitions/ForwardProxy", - "description": "The configuration settings of a forward proxy used to make the requests." - } - } - }, - "HttpSettingsRoutes": { - "description": "The configuration settings of the paths HTTP requests.", - "type": "object", - "properties": { - "apiPrefix": { - "description": "The prefix that should precede all the authentication/authorization paths.", - "type": "string" - } - } - }, - "ForwardProxy": { - "description": "The configuration settings of a forward proxy used to make the requests.", - "type": "object", - "properties": { - "convention": { - "description": "The convention used to determine the url of the request made.", - "enum": [ - "NoProxy", - "Standard", - "Custom" - ], - "type": "string", - "x-ms-enum": { - "name": "ForwardProxyConvention", - "modelAsString": false - } - }, - "customHostHeaderName": { - "description": "The name of the header containing the host of the request.", - "type": "string" - }, - "customProtoHeaderName": { - "description": "The name of the header containing the scheme of the request.", - "type": "string" - } - } - }, - "Login": { - "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.", - "type": "object", - "properties": { - "routes": { - "$ref": "#/definitions/LoginRoutes", - "description": "The routes that specify the endpoints used for login and logout requests." - }, - "preserveUrlFragmentsForLogins": { - "description": "true if the fragments from the request are preserved after the login request is made; otherwise, false.", - "type": "boolean" - }, - "allowedExternalRedirectUrls": { - "description": "External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored.\nThis is an advanced setting typically only needed by Windows Store application backends.\nNote that URLs within the current domain are always implicitly allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "cookieExpiration": { - "$ref": "#/definitions/CookieExpiration", - "description": "The configuration settings of the session cookie's expiration." - }, - "nonce": { - "$ref": "#/definitions/Nonce", - "description": "The configuration settings of the nonce used in the login flow." - } - } - }, - "LoginRoutes": { - "description": "The routes that specify the endpoints used for login and logout requests.", - "type": "object", - "properties": { - "logoutEndpoint": { - "description": "The endpoint at which a logout request should be made.", - "type": "string" - } - } - }, - "CookieExpiration": { - "description": "The configuration settings of the session cookie's expiration.", - "type": "object", - "properties": { - "convention": { - "description": "The convention used when determining the session cookie's expiration.", - "enum": [ - "FixedTime", - "IdentityProviderDerived" - ], - "type": "string", - "x-ms-enum": { - "name": "CookieExpirationConvention", - "modelAsString": false - } - }, - "timeToExpiration": { - "description": "The time after the request is made when the session cookie should expire.", - "type": "string" - } - } - }, - "Nonce": { - "description": "The configuration settings of the nonce used in the login flow.", - "type": "object", - "properties": { - "validateNonce": { - "description": "false if the nonce should not be validated while completing the login flow; otherwise, true.", - "type": "boolean" - }, - "nonceExpirationInterval": { - "description": "The time after the request is made when the nonce should expire.", - "type": "string" - } - } - }, - "IdentityProviders": { - "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.", - "type": "object", - "properties": { - "azureActiveDirectory": { - "$ref": "#/definitions/AzureActiveDirectory", - "description": "The configuration settings of the Azure Active directory provider." - }, - "facebook": { - "$ref": "#/definitions/Facebook", - "description": "The configuration settings of the Facebook provider." - }, - "gitHub": { - "$ref": "#/definitions/GitHub", - "description": "The configuration settings of the GitHub provider." - }, - "google": { - "$ref": "#/definitions/Google", - "description": "The configuration settings of the Google provider." - }, - "twitter": { - "$ref": "#/definitions/Twitter", - "description": "The configuration settings of the Twitter provider." - }, - "apple": { - "$ref": "#/definitions/Apple", - "description": "The configuration settings of the Apple provider." - }, - "azureStaticWebApps": { - "$ref": "#/definitions/AzureStaticWebApps", - "description": "The configuration settings of the Azure Static Web Apps provider." - }, - "customOpenIdConnectProviders": { - "description": "The map of the name of the alias of each custom Open ID Connect provider to the\nconfiguration settings of the custom Open ID Connect provider.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CustomOpenIdConnectProvider" - } - } - } - }, - "AzureActiveDirectory": { - "description": "The configuration settings of the Azure Active directory provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/AzureActiveDirectoryRegistration", - "description": "The configuration settings of the Azure Active Directory app registration." - }, - "login": { - "$ref": "#/definitions/AzureActiveDirectoryLogin", - "description": "The configuration settings of the Azure Active Directory login flow." - }, - "validation": { - "$ref": "#/definitions/AzureActiveDirectoryValidation", - "description": "The configuration settings of the Azure Active Directory token validation flow." - }, - "isAutoProvisioned": { - "description": "Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling.\nThis is an internal flag primarily intended to support the Azure Management Portal. Users should not\nread or write to this property.", - "type": "boolean" - } - } - }, - "AzureActiveDirectoryLogin": { - "description": "The configuration settings of the Azure Active Directory login flow.", - "type": "object", - "properties": { - "loginParameters": { - "description": "Login parameters to send to the OpenID Connect authorization endpoint when\na user logs in. Each parameter must be in the form \"key=value\".", - "type": "array", - "items": { - "type": "string" - } - }, - "disableWWWAuthenticate": { - "description": "true if the www-authenticate provider should be omitted from the request; otherwise, false.", - "type": "boolean" - } - } - }, - "AzureActiveDirectoryRegistration": { - "description": "The configuration settings of the Azure Active Directory app registration.", - "type": "object", - "properties": { - "openIdIssuer": { - "description": "The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application.\nWhen using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/.\nThis URI is a case-sensitive identifier for the token issuer.\nMore information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html", - "type": "string" - }, - "clientId": { - "description": "The Client ID of this relying party application, known as the client_id.\nThis setting is required for enabling OpenID Connection authentication with Azure Active Directory or \nother 3rd party OpenID Connect providers.\nMore information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html", - "type": "string" - }, - "clientSecretSettingName": { - "description": "The app setting name that contains the client secret of the relying party application.", - "type": "string" - }, - "clientSecretCertificateThumbprint": { - "description": "An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret. It is also optional.", - "type": "string" - }, - "clientSecretCertificateSubjectAlternativeName": { - "description": "An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.", - "type": "string" - }, - "clientSecretCertificateIssuer": { - "description": "An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.", - "type": "string" - } - } - }, - "AzureActiveDirectoryValidation": { - "description": "The configuration settings of the Azure Active Directory token validation flow.", - "type": "object", - "properties": { - "jwtClaimChecks": { - "$ref": "#/definitions/JwtClaimChecks", - "description": "The configuration settings of the checks that should be made while validating the JWT Claims." - }, - "allowedAudiences": { - "description": "The list of audiences that can make successful authentication/authorization requests.", - "type": "array", - "items": { - "type": "string" - } - }, - "defaultAuthorizationPolicy": { - "$ref": "#/definitions/DefaultAuthorizationPolicy", - "description": "The configuration settings of the default authorization policy." - } - } - }, - "JwtClaimChecks": { - "description": "The configuration settings of the checks that should be made while validating the JWT Claims.", - "type": "object", - "properties": { - "allowedGroups": { - "description": "The list of the allowed groups.", - "type": "array", - "items": { - "type": "string" - } - }, - "allowedClientApplications": { - "description": "The list of the allowed client applications.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "DefaultAuthorizationPolicy": { - "description": "The configuration settings of the Azure Active Directory default authorization policy.", - "type": "object", - "properties": { - "allowedPrincipals": { - "$ref": "#/definitions/AllowedPrincipals", - "description": "The configuration settings of the Azure Active Directory allowed principals." - }, - "allowedApplications": { - "description": "The configuration settings of the Azure Active Directory allowed applications.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "AllowedPrincipals": { - "description": "The configuration settings of the Azure Active Directory allowed principals.", - "type": "object", - "properties": { - "groups": { - "description": "The list of the allowed groups.", - "type": "array", - "items": { - "type": "string" - } - }, - "identities": { - "description": "The list of the allowed identities.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "Facebook": { - "description": "The configuration settings of the Facebook provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the Facebook provider should not be enabled despite the set registration; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/AppRegistration", - "description": "The configuration settings of the app registration for the Facebook provider." - }, - "graphApiVersion": { - "description": "The version of the Facebook api to be used while logging in.", - "type": "string" - }, - "login": { - "$ref": "#/definitions/LoginScopes", - "description": "The configuration settings of the login flow." - } - } - }, - "AppRegistration": { - "description": "The configuration settings of the app registration for providers that have app ids and app secrets", - "type": "object", - "properties": { - "appId": { - "description": "The App ID of the app used for login.", - "type": "string" - }, - "appSecretSettingName": { - "description": "The app setting name that contains the app secret.", - "type": "string" - } - } - }, - "LoginScopes": { - "description": "The configuration settings of the login flow, including the scopes that should be requested.", - "type": "object", - "properties": { - "scopes": { - "description": "A list of the scopes that should be requested while authenticating.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "GitHub": { - "description": "The configuration settings of the GitHub provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the GitHub provider should not be enabled despite the set registration; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/ClientRegistration", - "description": "The configuration settings of the app registration for the GitHub provider." - }, - "login": { - "$ref": "#/definitions/LoginScopes", - "description": "The configuration settings of the login flow." - } - } - }, - "ClientRegistration": { - "description": "The configuration settings of the app registration for providers that have client ids and client secrets", - "type": "object", - "properties": { - "clientId": { - "description": "The Client ID of the app used for login.", - "type": "string" - }, - "clientSecretSettingName": { - "description": "The app setting name that contains the client secret.", - "type": "string" - } - } - }, - "Google": { - "description": "The configuration settings of the Google provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the Google provider should not be enabled despite the set registration; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/ClientRegistration", - "description": "The configuration settings of the app registration for the Google provider." - }, - "login": { - "$ref": "#/definitions/LoginScopes", - "description": "The configuration settings of the login flow." - }, - "validation": { - "$ref": "#/definitions/AllowedAudiencesValidation", - "description": "The configuration settings of the Azure Active Directory token validation flow." - } - } - }, - "AllowedAudiencesValidation": { - "description": "The configuration settings of the Allowed Audiences validation flow.", - "type": "object", - "properties": { - "allowedAudiences": { - "description": "The configuration settings of the allowed list of audiences from which to validate the JWT token.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "Twitter": { - "description": "The configuration settings of the Twitter provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the Twitter provider should not be enabled despite the set registration; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/TwitterRegistration", - "description": "The configuration settings of the app registration for the Twitter provider." - } - } - }, - "TwitterRegistration": { - "description": "The configuration settings of the app registration for the Twitter provider.", - "type": "object", - "properties": { - "consumerKey": { - "description": "The OAuth 1.0a consumer key of the Twitter application used for sign-in.\nThis setting is required for enabling Twitter Sign-In.\nTwitter Sign-In documentation: https://dev.twitter.com/web/sign-in", - "type": "string" - }, - "consumerSecretSettingName": { - "description": "The app setting name that contains the OAuth 1.0a consumer secret of the Twitter\napplication used for sign-in.", - "type": "string" - } - } - }, - "Apple": { - "description": "The configuration settings of the Apple provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the Apple provider should not be enabled despite the set registration; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/AppleRegistration", - "description": "The configuration settings of the Apple registration." - }, - "login": { - "$ref": "#/definitions/LoginScopes", - "description": "The configuration settings of the login flow." - } - } - }, - "AppleRegistration": { - "description": "The configuration settings of the registration for the Apple provider", - "type": "object", - "properties": { - "clientId": { - "description": "The Client ID of the app used for login.", - "type": "string" - }, - "clientSecretSettingName": { - "description": "The app setting name that contains the client secret.", - "type": "string" - } - } - }, - "AzureStaticWebApps": { - "description": "The configuration settings of the Azure Static Web Apps provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/AzureStaticWebAppsRegistration", - "description": "The configuration settings of the Azure Static Web Apps registration." - } - } - }, - "AzureStaticWebAppsRegistration": { - "description": "The configuration settings of the registration for the Azure Static Web Apps provider", - "type": "object", - "properties": { - "clientId": { - "description": "The Client ID of the app used for login.", - "type": "string" - } - } - }, - "CustomOpenIdConnectProvider": { - "description": "The configuration settings of the custom Open ID Connect provider.", - "type": "object", - "properties": { - "enabled": { - "description": "false if the custom Open ID provider provider should not be enabled; otherwise, true.", - "type": "boolean" - }, - "registration": { - "$ref": "#/definitions/OpenIdConnectRegistration", - "description": "The configuration settings of the app registration for the custom Open ID Connect provider." - }, - "login": { - "$ref": "#/definitions/OpenIdConnectLogin", - "description": "The configuration settings of the login flow of the custom Open ID Connect provider." - } - } - }, - "OpenIdConnectRegistration": { - "description": "The configuration settings of the app registration for the custom Open ID Connect provider.", - "type": "object", - "properties": { - "clientId": { - "description": "The client id of the custom Open ID Connect provider.", - "type": "string" - }, - "clientCredential": { - "$ref": "#/definitions/OpenIdConnectClientCredential", - "description": "The authentication credentials of the custom Open ID Connect provider." - }, - "openIdConnectConfiguration": { - "$ref": "#/definitions/OpenIdConnectConfig", - "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider." - } - } - }, - "OpenIdConnectClientCredential": { - "description": "The authentication client credentials of the custom Open ID Connect provider.", - "type": "object", - "properties": { - "method": { - "description": "The method that should be used to authenticate the user.", - "enum": [ - "ClientSecretPost" - ], - "type": "string", - "x-ms-enum": { - "name": "ClientCredentialMethod", - "modelAsString": false - } - }, - "clientSecretSettingName": { - "description": "The app setting that contains the client secret for the custom Open ID Connect provider.", - "type": "string" - } - } - }, - "OpenIdConnectConfig": { - "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider.", - "type": "object", - "properties": { - "authorizationEndpoint": { - "description": "The endpoint to be used to make an authorization request.", - "type": "string" - }, - "tokenEndpoint": { - "description": "The endpoint to be used to request a token.", - "type": "string" - }, - "issuer": { - "description": "The endpoint that issues the token.", - "type": "string" - }, - "certificationUri": { - "description": "The endpoint that provides the keys necessary to validate the token.", - "type": "string" - }, - "wellKnownOpenIdConfiguration": { - "description": "The endpoint that contains all the configuration endpoints for the provider.", - "type": "string" - } - } - }, - "OpenIdConnectLogin": { - "description": "The configuration settings of the login flow of the custom Open ID Connect provider.", - "type": "object", - "properties": { - "nameClaimType": { - "description": "The name of the claim that contains the users name.", - "type": "string" - }, - "scopes": { - "description": "A list of the scopes that should be requested while authenticating.", - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json deleted file mode 100644 index d80348dcf8b3..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/CommonDefinitions.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "EnvironmentVar": { - "description": "Container App container environment variable.", - "type": "object", - "properties": { - "name": { - "description": "Environment variable name.", - "type": "string" - }, - "value": { - "description": "Non-secret environment variable value.", - "type": "string" - }, - "secretRef": { - "description": "Name of the Container App secret from which to pull the environment variable value.", - "type": "string" - } - } - }, - "Container": { - "description": "Container App container definition.", - "type": "object", - "properties": { - "image": { - "description": "Container image tag.", - "type": "string" - }, - "name": { - "description": "Custom container name.", - "type": "string" - }, - "command": { - "description": "Container start command.", - "type": "array", - "items": { - "type": "string" - } - }, - "args": { - "description": "Container start command arguments.", - "type": "array", - "items": { - "type": "string" - } - }, - "env": { - "description": "Container environment variables.", - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentVar" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "resources": { - "$ref": "#/definitions/ContainerResources", - "description": "Container resource requirements." - }, - "probes": { - "description": "List of probes for the container.", - "type": "array", - "items": { - "$ref": "#/definitions/ContainerAppProbe" - }, - "x-ms-identifiers": [ - "type" - ] - }, - "volumeMounts": { - "description": "Container volume mounts.", - "type": "array", - "items": { - "$ref": "#/definitions/VolumeMount" - }, - "x-ms-identifiers": [ - "volumeName" - ] - } - } - }, - "ContainerResources": { - "description": "Container App container resource requirements.", - "type": "object", - "properties": { - "cpu": { - "format": "double", - "description": "Required CPU in cores, e.g. 0.5", - "type": "number" - }, - "memory": { - "description": "Required memory, e.g. \"250Mb\"", - "type": "string" - }, - "ephemeralStorage": { - "description": "Ephemeral Storage, e.g. \"1Gi\"", - "type": "string", - "readOnly": true - } - } - }, - "ContainerAppProbe": { - "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", - "type": "object", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10.", - "type": "integer", - "format": "int32" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "type": "object", - "required": [ - "port" - ], - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "type": "array", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "description": "The header field name", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - } - }, - "x-ms-identifiers": [ - "name" - ] - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "type": "integer", - "format": "int32" - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "enum": [ - "HTTP", - "HTTPS" - ], - "type": "string", - "x-ms-enum": { - "name": "Scheme", - "modelAsString": true - } - } - } - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated. Minimum value is 1. Maximum value is 60.", - "type": "integer", - "format": "int32" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.", - "type": "integer", - "format": "int32" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.", - "type": "integer", - "format": "int32" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.", - "type": "object", - "required": [ - "port" - ], - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "type": "integer", - "format": "int32" - } - } - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 hour)", - "type": "integer", - "format": "int64" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 240.", - "type": "integer", - "format": "int32" - }, - "type": { - "description": "The type of probe.", - "enum": [ - "Liveness", - "Readiness", - "Startup" - ], - "type": "string", - "x-ms-enum": { - "name": "Type", - "modelAsString": true - } - } - } - }, - "CustomScaleRule": { - "description": "Container App container Custom scaling rule.", - "type": "object", - "properties": { - "type": { - "description": "Type of the custom scale rule\neg: azure-servicebus, redis etc.", - "type": "string" - }, - "metadata": { - "description": "Metadata properties to describe custom scale rule.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "auth": { - "description": "Authentication secrets for the custom scale rule.", - "type": "array", - "items": { - "$ref": "#/definitions/ScaleRuleAuth" - }, - "x-ms-identifiers": [ - "triggerParameter" - ] - } - } - }, - "DefaultErrorResponse": { - "description": "App Service error response.", - "type": "object", - "properties": { - "error": { - "description": "Error model.", - "type": "object", - "properties": { - "code": { - "description": "Standardized string to programmatically identify the error.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - }, - "details": { - "type": "array", - "description": "Details or the error", - "items": { - "description": "Detailed errors.", - "type": "object", - "properties": { - "code": { - "description": "Standardized string to programmatically identify the error.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - } - }, - "readOnly": true - }, - "x-ms-identifiers": [ - "code" - ] - }, - "innererror": { - "description": "More information to debug error.", - "type": "string", - "readOnly": true - } - }, - "readOnly": true - } - } - }, - "HttpScaleRule": { - "description": "Container App container Custom scaling rule.", - "type": "object", - "properties": { - "metadata": { - "description": "Metadata properties to describe http scale rule.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "auth": { - "description": "Authentication secrets for the custom scale rule.", - "type": "array", - "items": { - "$ref": "#/definitions/ScaleRuleAuth" - }, - "x-ms-identifiers": [ - "triggerParameter" - ] - } - } - }, - "QueueScaleRule": { - "description": "Container App container Azure Queue based scaling rule.", - "type": "object", - "properties": { - "queueName": { - "description": "Queue name.", - "type": "string" - }, - "queueLength": { - "format": "int32", - "description": "Queue length.", - "type": "integer" - }, - "auth": { - "description": "Authentication secrets for the queue scale rule.", - "type": "array", - "items": { - "$ref": "#/definitions/ScaleRuleAuth" - }, - "x-ms-identifiers": [ - "triggerParameter" - ] - } - } - }, - "Scale": { - "description": "Container App scaling configurations.", - "type": "object", - "properties": { - "minReplicas": { - "format": "int32", - "description": "Optional. Minimum number of container replicas.", - "type": "integer" - }, - "maxReplicas": { - "format": "int32", - "description": "Optional. Maximum number of container replicas. Defaults to 10 if not set.", - "type": "integer" - }, - "rules": { - "description": "Scaling rules.", - "type": "array", - "items": { - "$ref": "#/definitions/ScaleRule" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - }, - "ScaleRule": { - "description": "Container App container scaling rule.", - "type": "object", - "properties": { - "name": { - "description": "Scale Rule Name", - "type": "string" - }, - "azureQueue": { - "$ref": "#/definitions/QueueScaleRule", - "description": "Azure Queue based scaling." - }, - "custom": { - "$ref": "#/definitions/CustomScaleRule", - "description": "Custom scale rule." - }, - "http": { - "$ref": "#/definitions/HttpScaleRule", - "description": "HTTP requests based scaling." - } - } - }, - "ScaleRuleAuth": { - "description": "Auth Secrets for Container App Scale Rule", - "type": "object", - "properties": { - "secretRef": { - "description": "Name of the Container App secret from which to pull the auth params.", - "type": "string" - }, - "triggerParameter": { - "description": "Trigger Parameter that uses the secret", - "type": "string" - } - } - }, - "Secret": { - "description": "Secret definition.", - "type": "object", - "properties": { - "name": { - "description": "Secret Name.", - "type": "string" - }, - "value": { - "description": "Secret Value.", - "type": "string", - "x-ms-mutability": [ - "create", - "update" - ], - "x-ms-secret": true - } - } - }, - "Template": { - "description": "Container App versioned application definition.\nDefines the desired state of an immutable revision.\nAny changes to this section Will result in a new revision being created", - "type": "object", - "properties": { - "revisionSuffix": { - "description": "User friendly suffix that is appended to the revision name", - "type": "string" - }, - "containers": { - "description": "List of container definitions for the Container App.", - "type": "array", - "items": { - "$ref": "#/definitions/Container" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "scale": { - "$ref": "#/definitions/Scale", - "description": "Scaling properties for the Container App." - }, - "volumes": { - "description": "List of volume definitions for the Container App.", - "type": "array", - "items": { - "$ref": "#/definitions/Volume" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - }, - "Volume": { - "description": "Volume definitions for the Container App.", - "type": "object", - "properties": { - "name": { - "description": "Volume name.", - "type": "string" - }, - "storageType": { - "description": "Storage type for the volume. If not provided, use EmptyDir.", - "enum": [ - "AzureFile", - "EmptyDir" - ], - "type": "string", - "x-ms-enum": { - "name": "StorageType", - "modelAsString": true - } - }, - "storageName": { - "description": "Name of storage resource. No need to provide for EmptyDir.", - "type": "string" - } - } - }, - "VolumeMount": { - "description": "Volume mount for the Container App.", - "type": "object", - "properties": { - "volumeName": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "mountPath": { - "description": "Path within the container at which the volume should be mounted.Must not contain ':'.", - "type": "string" - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json deleted file mode 100644 index 4bc563f9b02e..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json +++ /dev/null @@ -1,905 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps": { - "get": { - "tags": [ - "ContainerApps" - ], - "summary": "Get the Container Apps in a given subscription.", - "operationId": "ContainerApps_ListBySubscription", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContainerAppCollection" - } - }, - "default": { - "description": "Error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Container Apps by subscription": { - "$ref": "./examples/ContainerApps_ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps": { - "get": { - "tags": [ - "ContainerApps" - ], - "summary": "Get the Container Apps in a given resource group.", - "operationId": "ContainerApps_ListByResourceGroup", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContainerAppCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Container Apps by resource group": { - "$ref": "./examples/ContainerApps_ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}": { - "get": { - "tags": [ - "ContainerApps" - ], - "summary": "Get the properties of a Container App.", - "operationId": "ContainerApps_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/ContainerApp" - } - }, - "404": { - "description": "Not found.", - "x-ms-error-response": true - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App": { - "$ref": "./examples/ContainerApps_Get.json" - } - } - }, - "put": { - "tags": [ - "ContainerApps" - ], - "summary": "Create or update a Container App.", - "description": "Create or update a Container App.", - "operationId": "ContainerApps_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "containerAppEnvelope", - "in": "body", - "description": "Properties used to create a container app", - "required": true, - "schema": { - "$ref": "#/definitions/ContainerApp" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "No change performed on the Container App.", - "schema": { - "$ref": "#/definitions/ContainerApp" - } - }, - "201": { - "description": "Container App create or update has been started.", - "schema": { - "$ref": "#/definitions/ContainerApp" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Create or Update Container App": { - "$ref": "./examples/ContainerApps_CreateOrUpdate.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "ContainerApps" - ], - "summary": "Delete a Container App.", - "description": "Delete a Container App.", - "operationId": "ContainerApps_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Container App deleted successfully." - }, - "202": { - "description": "Delete operation is in progress." - }, - "204": { - "description": "Container App does not exist." - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete Container App": { - "$ref": "./examples/ContainerApps_Delete.json" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "ContainerApps" - ], - "summary": "Update properties of a Container App", - "description": "Patches a Container App using JSON Merge Patch", - "operationId": "ContainerApps_Update", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "containerAppEnvelope", - "in": "body", - "required": true, - "description": "Properties of a Container App that need to be updated", - "schema": { - "$ref": "#/definitions/ContainerApp" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Patch operation is in progress." - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Patch Container App": { - "$ref": "./examples/ContainerApps_Patch.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis": { - "post": { - "tags": [ - "ContainerApps" - ], - "summary": "Analyzes a custom hostname for a Container App", - "operationId": "ContainerApps_ListCustomHostNameAnalysis", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "customHostname", - "in": "query", - "description": "Custom hostname.", - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CustomHostnameAnalysisResult" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Analyze Custom Hostname": { - "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysis.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets": { - "post": { - "tags": [ - "ContainerApps" - ], - "summary": "List secrets for a container app", - "operationId": "ContainerApps_ListSecrets", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecretsCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Container Apps Secrets": { - "$ref": "./examples/ContainerApps_ListSecrets.json" - } - } - } - } - }, - "definitions": { - "Configuration": { - "description": "Non versioned Container App configuration properties that define the mutable settings of a Container app", - "type": "object", - "properties": { - "secrets": { - "description": "Collection of secrets used by a Container app", - "type": "array", - "items": { - "$ref": "./CommonDefinitions.json#/definitions/Secret" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "activeRevisionsMode": { - "description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\nMultiple: multiple revisions can be active.Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.", - "enum": [ - "Multiple", - "Single" - ], - "type": "string", - "x-ms-enum": { - "name": "ActiveRevisionsMode", - "modelAsString": true - } - }, - "ingress": { - "$ref": "#/definitions/Ingress", - "description": "Ingress configurations." - }, - "registries": { - "description": "Collection of private container registry credentials for containers used by the Container app", - "type": "array", - "items": { - "$ref": "#/definitions/RegistryCredentials" - }, - "x-ms-identifiers": [ - "server" - ] - }, - "dapr": { - "$ref": "#/definitions/Dapr", - "description": "Dapr configuration for the Container App." - } - } - }, - "ContainerApp": { - "description": "Container App.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "identity": { - "description": "managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.", - "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" - }, - "properties": { - "description": "ContainerApp resource specific properties", - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the Container App.", - "enum": [ - "InProgress", - "Succeeded", - "Failed", - "Canceled" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "ContainerAppProvisioningState", - "modelAsString": true - } - }, - "managedEnvironmentId": { - "description": "Resource ID of the Container App's environment.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "latestRevisionName": { - "description": "Name of the latest revision of the Container App.", - "type": "string", - "readOnly": true - }, - "latestRevisionFqdn": { - "description": "Fully Qualified Domain Name of the latest revision of the Container App.", - "type": "string", - "readOnly": true - }, - "customDomainVerificationId": { - "description": "Id used to verify domain name ownership", - "type": "string", - "readOnly": true - }, - "configuration": { - "$ref": "#/definitions/Configuration", - "description": "Non versioned Container App configuration properties." - }, - "template": { - "$ref": "./CommonDefinitions.json#/definitions/Template", - "description": "Container App versioned application definition." - }, - "outboundIPAddresses": { - "description": "Outbound IP Addresses for container app.", - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - } - }, - "x-ms-client-flatten": true - } - } - }, - "ContainerAppCollection": { - "description": "Container App collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/ContainerApp" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "Dapr": { - "description": "Container App Dapr configuration.", - "type": "object", - "properties": { - "enabled": { - "description": "Boolean indicating if the Dapr side car is enabled", - "type": "boolean" - }, - "appId": { - "description": "Dapr application identifier", - "type": "string" - }, - "appProtocol": { - "description": "Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http", - "enum": [ - "http", - "grpc" - ], - "type": "string", - "x-ms-enum": { - "name": "appProtocol", - "modelAsString": true - } - }, - "appPort": { - "format": "int32", - "description": "Tells Dapr which port your application is listening on", - "type": "integer" - }, - "httpReadBufferSize": { - "type": "integer", - "format": "int32" - } - } - }, - "Ingress": { - "description": "Container App Ingress configuration.", - "type": "object", - "properties": { - "fqdn": { - "description": "Hostname.", - "type": "string", - "readOnly": true - }, - "external": { - "description": "Bool indicating if app exposes an external http endpoint", - "default": false, - "type": "boolean" - }, - "targetPort": { - "format": "int32", - "description": "Target Port in containers for traffic from ingress", - "type": "integer" - }, - "transport": { - "description": "Ingress transport protocol", - "enum": [ - "auto", - "http", - "http2" - ], - "type": "string", - "x-ms-enum": { - "name": "IngressTransportMethod", - "modelAsString": true - } - }, - "traffic": { - "description": "Traffic weights for app's revisions", - "type": "array", - "items": { - "$ref": "#/definitions/TrafficWeight" - }, - "x-ms-identifiers": [ - "revisionName" - ] - }, - "customDomains": { - "description": "custom domain bindings for Container Apps' hostnames.", - "type": "array", - "items": { - "$ref": "#/definitions/CustomDomain" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "allowInsecure": { - "description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections", - "type": "boolean" - } - } - }, - "RegistryCredentials": { - "description": "Container App Private Registry", - "type": "object", - "properties": { - "server": { - "description": "Container Registry Server", - "type": "string" - }, - "username": { - "description": "Container Registry Username", - "type": "string" - }, - "passwordSecretRef": { - "description": "The name of the Secret that contains the registry login password", - "type": "string" - }, - "identity": { - "description": "A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'", - "type": "string" - } - } - }, - "SecretsCollection": { - "description": "Container App Secrets Collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/ContainerAppSecret" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - }, - "ContainerAppSecret": { - "description": "Container App Secret.", - "type": "object", - "properties": { - "name": { - "description": "Secret Name.", - "type": "string", - "readOnly": true - }, - "value": { - "description": "Secret Value.", - "type": "string", - "x-ms-secret": true, - "readOnly": true - } - } - }, - "TrafficWeight": { - "description": "Traffic weight assigned to a revision", - "type": "object", - "properties": { - "revisionName": { - "description": "Name of a revision", - "type": "string" - }, - "weight": { - "format": "int32", - "description": "Traffic weight assigned to a revision", - "type": "integer" - }, - "latestRevision": { - "description": "Indicates that the traffic weight belongs to a latest stable revision", - "default": false, - "type": "boolean" - }, - "label": { - "description": "Associates a traffic label with a revision", - "type": "string" - } - } - }, - "CustomDomain": { - "description": "Custom Domain of a Container App", - "type": "object", - "required": [ - "name", - "certificateId" - ], - "properties": { - "name": { - "description": "Hostname.", - "type": "string" - }, - "bindingType": { - "description": "Custom Domain binding type.", - "enum": [ - "Disabled", - "SniEnabled" - ], - "type": "string", - "x-ms-enum": { - "name": "bindingType", - "modelAsString": true - } - }, - "certificateId": { - "description": "Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment.", - "type": "string" - } - } - }, - "CustomHostnameAnalysisResult": { - "description": "Custom domain analysis.", - "type": "object", - "properties": { - "hostName": { - "description": "Host name that was analyzed", - "type": "string", - "readOnly": true - }, - "isHostnameAlreadyVerified": { - "description": "true if hostname is already verified; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "customDomainVerificationTest": { - "description": "DNS verification test result.", - "enum": [ - "Passed", - "Failed", - "Skipped" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "DnsVerificationTestResult", - "modelAsString": false - } - }, - "customDomainVerificationFailureInfo": { - "description": "Raw failure information if DNS verification fails.", - "type": "object", - "properties": { - "code": { - "description": "Standardized string to programmatically identify the error.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - }, - "details": { - "type": "array", - "description": "Details or the error", - "items": { - "description": "Detailed errors.", - "type": "object", - "properties": { - "code": { - "description": "Standardized string to programmatically identify the error.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "Detailed error description and debugging information.", - "type": "string", - "readOnly": true - } - }, - "readOnly": true - }, - "x-ms-identifiers": [ - "code" - ] - } - }, - "readOnly": true - }, - "hasConflictOnManagedEnvironment": { - "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "conflictingContainerAppResourceId": { - "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", - "type": "string", - "readOnly": true - }, - "cNameRecords": { - "description": "CName records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "txtRecords": { - "description": "TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "aRecords": { - "description": "A records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateCNameRecords": { - "description": "Alternate CName records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateTxtRecords": { - "description": "Alternate TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "x-ms-client-flatten": true - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json deleted file mode 100644 index 455a262a00ee..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions": { - "get": { - "tags": [ - "ContainerAppsRevisions" - ], - "summary": "Get the Revisions for a given Container App.", - "operationId": "ContainerAppsRevisions_ListRevisions", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App for which Revisions are needed.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply on the operation.", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RevisionCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Container App's revisions": { - "$ref": "./examples/Revisions_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Revision" - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}": { - "get": { - "tags": [ - "ContainerAppsRevisions" - ], - "summary": "Get a revision of a Container App.", - "operationId": "ContainerAppsRevisions_GetRevision", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "revisionName", - "in": "path", - "description": "Name of the Container App Revision.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Revision" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App's revision": { - "$ref": "./examples/Revisions_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate": { - "post": { - "tags": [ - "ContainerAppsRevisions" - ], - "summary": "Activates a revision for a Container App", - "operationId": "ContainerAppsRevisions_ActivateRevision", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "revisionName", - "in": "path", - "description": "Name of the Container App Revision.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Container App revision was activated" - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Activate Container App's revision": { - "$ref": "./examples/Revisions_Activate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate": { - "post": { - "tags": [ - "ContainerAppsRevisions" - ], - "summary": "Deactivates a revision for a Container App", - "operationId": "ContainerAppsRevisions_DeactivateRevision", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "revisionName", - "in": "path", - "description": "Name of the Container App Revision.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Container App revision was deactivated" - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Deactivate Container App's revision": { - "$ref": "./examples/Revisions_Deactivate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}": { - "get": { - "tags": [ - "ContainerAppsRevisionReplicas" - ], - "summary": "Get a replica for a Container App Revision.", - "operationId": "ContainerAppsRevisionReplicas_GetReplica", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "revisionName", - "in": "path", - "description": "Name of the Container App Revision.", - "required": true, - "type": "string" - }, - { - "name": "replicaName", - "in": "path", - "description": "Name of the Container App Revision Replica.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Replica" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App's revision replica": { - "$ref": "./examples/Replicas_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas": { - "get": { - "tags": [ - "ContainerAppsRevisionReplicas" - ], - "summary": "List replicas for a Container App Revision.", - "operationId": "ContainerAppsRevisionReplicas_ListReplicas", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "revisionName", - "in": "path", - "description": "Name of the Container App Revision.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ReplicaCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Container App's replicas": { - "$ref": "./examples/Replicas_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart": { - "post": { - "tags": [ - "ContainerAppsRevisions" - ], - "summary": "Restarts a revision for a Container App", - "operationId": "ContainerAppsRevisions_RestartRevision", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "revisionName", - "in": "path", - "description": "Name of the Container App Revision.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Container App revision was restarted" - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Restart Container App's revision": { - "$ref": "./examples/Revisions_Restart.json" - } - } - } - } - }, - "definitions": { - "Revision": { - "description": "Container App Revision.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Revision resource specific properties", - "type": "object", - "properties": { - "createdTime": { - "format": "date-time", - "description": "Timestamp describing when the revision was created\nby controller", - "type": "string", - "readOnly": true - }, - "fqdn": { - "description": "Fully qualified domain name of the revision", - "type": "string", - "readOnly": true - }, - "template": { - "$ref": "./CommonDefinitions.json#/definitions/Template", - "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time", - "readOnly": true - }, - "active": { - "description": "Boolean describing if the Revision is Active", - "type": "boolean", - "readOnly": true - }, - "replicas": { - "format": "int32", - "description": "Number of pods currently running for this revision", - "type": "integer", - "readOnly": true - }, - "trafficWeight": { - "format": "int32", - "description": "Traffic weight assigned to this revision", - "type": "integer", - "readOnly": true - }, - "provisioningError": { - "description": "Optional Field - Platform Error Message", - "type": "string", - "readOnly": true - }, - "healthState": { - "description": "Current health State of the revision", - "enum": [ - "Healthy", - "Unhealthy", - "None" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "RevisionHealthState", - "modelAsString": true - } - }, - "provisioningState": { - "description": "Current provisioning State of the revision", - "enum": [ - "Provisioning", - "Provisioned", - "Failed", - "Deprovisioning", - "Deprovisioned" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "RevisionProvisioningState", - "modelAsString": true - } - } - }, - "x-ms-client-flatten": true - } - } - }, - "RevisionCollection": { - "description": "Container App Revisions collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/Revision" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "Replica": { - "description": "Container App Revision Replica.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Replica resource specific properties", - "type": "object", - "properties": { - "createdTime": { - "type": "string", - "description": "Timestamp describing when the pod was created by controller", - "format": "date-time", - "readOnly": true - }, - "containers": { - "description": "The containers collection under a replica.", - "type": "array", - "items": { - "$ref": "#/definitions/ReplicaContainer" - }, - "x-ms-identifiers": [ - "name" - ] - } - }, - "x-ms-client-flatten": true - } - } - }, - "ReplicaCollection": { - "description": "Container App Revision Replicas collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/Replica" - } - } - } - }, - "ReplicaContainer": { - "description": "Container object under Container App Revision Replica.", - "type": "object", - "properties": { - "name": { - "description": "The Name of the Container", - "type": "string" - }, - "containerId": { - "description": "The Id of the Container", - "type": "string" - }, - "ready": { - "description": "The container ready status", - "type": "boolean" - }, - "started": { - "description": "The container start status", - "type": "boolean" - }, - "restartCount": { - "format": "int32", - "description": "The container restart count", - "type": "integer" - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json deleted file mode 100644 index 139790aae081..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/DaprComponents.json +++ /dev/null @@ -1,428 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents": { - "get": { - "tags": [ - "DaprComponents" - ], - "summary": "Get the Dapr Components for a managed environment.", - "operationId": "DaprComponents_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DaprComponentsCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Dapr Components": { - "$ref": "./examples/DaprComponents_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}": { - "get": { - "tags": [ - "DaprComponents" - ], - "summary": "Get a dapr component.", - "operationId": "DaprComponents_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "componentName", - "in": "path", - "description": "Name of the Dapr Component.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DaprComponent" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Dapr Component": { - "$ref": "./examples/DaprComponents_Get.json" - } - } - }, - "put": { - "tags": [ - "DaprComponents" - ], - "summary": "Creates or updates a Dapr Component.", - "description": "Creates or updates a Dapr Component in a Managed Environment.", - "operationId": "DaprComponents_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "componentName", - "in": "path", - "description": "Name of the Dapr Component.", - "required": true, - "type": "string" - }, - { - "name": "daprComponentEnvelope", - "in": "body", - "description": "Configuration details of the Dapr Component.", - "required": true, - "schema": { - "$ref": "#/definitions/DaprComponent" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DaprComponent" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-long-running-operation": false, - "x-ms-examples": { - "Create or update dapr component": { - "$ref": "./examples/DaprComponents_CreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "DaprComponents" - ], - "summary": "Delete a Dapr Component.", - "description": "Delete a Dapr Component from a Managed Environment.", - "operationId": "DaprComponents_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "componentName", - "in": "path", - "description": "Name of the Dapr Component.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Delete operation completed" - }, - "204": { - "description": "Environment does not exist" - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete dapr component": { - "$ref": "./examples/DaprComponents_Delete.json" - } - }, - "x-ms-long-running-operation": false - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets": { - "post": { - "tags": [ - "DaprComponents" - ], - "summary": "List secrets for a dapr component", - "operationId": "DaprComponents_ListSecrets", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "componentName", - "in": "path", - "description": "Name of the Dapr Component.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DaprSecretsCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Container Apps Secrets": { - "$ref": "./examples/DaprComponents_ListSecrets.json" - } - } - } - } - }, - "definitions": { - "DaprComponentsCollection": { - "description": "Dapr Components ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/DaprComponent" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "DaprComponent": { - "description": "Dapr Component.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Dapr Component resource specific properties", - "type": "object", - "properties": { - "componentType": { - "description": "Component type", - "type": "string" - }, - "version": { - "description": "Component version", - "type": "string" - }, - "ignoreErrors": { - "description": "Boolean describing if the component errors are ignores", - "type": "boolean" - }, - "initTimeout": { - "description": "Initialization timeout", - "type": "string" - }, - "secrets": { - "description": "Collection of secrets used by a Dapr component", - "type": "array", - "items": { - "$ref": "./CommonDefinitions.json#/definitions/Secret" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "metadata": { - "description": "Component metadata", - "type": "array", - "items": { - "$ref": "#/definitions/DaprMetadata" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "scopes": { - "description": "Names of container apps that can use this Dapr component", - "type": "array", - "items": { - "type": "string" - } - } - }, - "x-ms-client-flatten": true - } - } - }, - "DaprMetadata": { - "description": "Dapr component metadata.", - "type": "object", - "properties": { - "name": { - "description": "Metadata property name.", - "type": "string" - }, - "value": { - "description": "Metadata property value.", - "type": "string" - }, - "secretRef": { - "description": "Name of the Dapr Component secret from which to pull the metadata property value.", - "type": "string" - } - } - }, - "DaprSecretsCollection": { - "description": "Dapr component Secrets Collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of secrets used by a Dapr component", - "type": "array", - "items": { - "$ref": "./CommonDefinitions.json#/definitions/Secret" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json deleted file mode 100644 index 97b8412aaeb2..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Diagnostics.json +++ /dev/null @@ -1,715 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors": { - "get": { - "tags": [ - "ContainerApps", - "Diagnostics" - ], - "summary": "Get the list of diagnostics for a given Container App.", - "operationId": "ContainerAppsDiagnostics_ListDetectors", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App for which detector info is needed.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DiagnosticsCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the list of available diagnostics for a given Container App": { - "$ref": "./examples/ContainerAppsDiagnostics_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{detectorName}": { - "get": { - "tags": [ - "ContainerApps", - "Diagnostics" - ], - "summary": "Get a diagnostics result of a Container App.", - "operationId": "ContainerAppsDiagnostics_GetDetector", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "detectorName", - "in": "path", - "description": "Name of the Container App Detector.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Diagnostics" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App's diagnostics info": { - "$ref": "./examples/ContainerAppsDiagnostics_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/": { - "get": { - "tags": [ - "ContainerApps", - "Diagnostics" - ], - "summary": "Get the Revisions for a given Container App.", - "operationId": "ContainerAppsDiagnostics_ListRevisions", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App for which Revisions are needed.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply on the operation.", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "./ContainerAppsRevisions.json#/definitions/RevisionCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Container App's revisions": { - "$ref": "./examples/Revisions_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Revision" - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/{revisionName}": { - "get": { - "tags": [ - "ContainerApps", - "Diagnostics" - ], - "summary": "Get a revision of a Container App.", - "operationId": "ContainerAppsDiagnostics_GetRevision", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "revisionName", - "in": "path", - "description": "Name of the Container App Revision.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "./ContainerAppsRevisions.json#/definitions/Revision" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App's revision": { - "$ref": "./examples/Revisions_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/rootApi/": { - "get": { - "tags": [ - "ContainerApps", - "Diagnostics" - ], - "summary": "Get the properties of a Container App.", - "operationId": "ContainerAppsDiagnostics_GetRoot", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "./ContainerApps.json#/definitions/ContainerApp" - } - }, - "404": { - "description": "Not found.", - "x-ms-error-response": true - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App": { - "$ref": "./examples/ContainerApps_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors": { - "get": { - "tags": [ - "ManagedEnvironments", - "Diagnostics" - ], - "summary": "Get the list of diagnostics for a given Managed Environment.", - "description": "Get the list of diagnostics for a Managed Environment used to host container apps.", - "operationId": "ManagedEnvironmentDiagnostics_ListDetectors", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DiagnosticsCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the list of available diagnostic data for a managed environments": { - "$ref": "./examples/ManagedEnvironmentDiagnostics_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}": { - "get": { - "tags": [ - "ManagedEnvironments", - "Diagnostics" - ], - "summary": "Get the diagnostics data for a given Managed Environment.", - "description": "Get the diagnostics data for a Managed Environment used to host container apps.", - "operationId": "ManagedEnvironmentDiagnostics_GetDetector", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "name": "detectorName", - "in": "path", - "description": "Name of the Managed Environment detector.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Diagnostics" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get diagnostic data for a managed environments": { - "$ref": "./examples/ManagedEnvironmentDiagnostics_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorProperties/rootApi/": { - "get": { - "tags": [ - "ManagedEnvironments", - "Diagnostics" - ], - "summary": "Get the properties of a Managed Environment.", - "description": "Get the properties of a Managed Environment used to host container apps.", - "operationId": "ManagedEnvironmentsDiagnostics_GetRoot", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "./ManagedEnvironments.json#/definitions/ManagedEnvironment" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get environments by name": { - "$ref": "./examples/ManagedEnvironments_Get.json" - } - } - } - } - }, - "definitions": { - "DiagnosticsCollection": { - "description": "Diagnostics data collection for a resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of diagnostic data.", - "type": "array", - "items": { - "$ref": "#/definitions/Diagnostics" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "Diagnostics": { - "description": "Diagnostics data for a resource.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Diagnostics resource specific properties", - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/DiagnosticsDefinition", - "description": "Metadata of the diagnostics response." - }, - "dataset": { - "description": "Set of data collections associated with the response.", - "type": "array", - "items": { - "$ref": "#/definitions/DiagnosticsDataApiResponse" - }, - "x-ms-identifiers": [] - }, - "status": { - "$ref": "#/definitions/DiagnosticsStatus", - "description": "Status of the diagnostics response." - }, - "dataProviderMetadata": { - "$ref": "#/definitions/DiagnosticDataProviderMetadata", - "description": "List of data providers' metadata." - } - } - } - } - }, - "DiagnosticsDefinition": { - "description": "Metadata of the diagnostics response", - "type": "object", - "properties": { - "id": { - "description": "Unique detector name", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Display Name of the detector", - "type": "string", - "readOnly": true - }, - "description": { - "description": "Details of the diagnostics info", - "type": "string", - "readOnly": true - }, - "author": { - "description": "Authors' names of the detector", - "type": "string", - "readOnly": true - }, - "category": { - "description": "Category of the detector", - "type": "string", - "readOnly": true - }, - "supportTopicList": { - "description": "List of support topics", - "type": "array", - "items": { - "$ref": "#/definitions/DiagnosticSupportTopic" - } - }, - "analysisTypes": { - "description": "List of analysis types", - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "description": "Authors' names of the detector", - "type": "string", - "readOnly": true - }, - "score": { - "description": "Authors' names of the detector", - "type": "number", - "readOnly": true - } - } - }, - "DiagnosticSupportTopic": { - "description": "Support topic information", - "type": "object", - "properties": { - "id": { - "description": "Unique topic identifier", - "type": "string", - "readOnly": true - }, - "pesId": { - "description": "PES identifier", - "type": "string", - "readOnly": true - } - } - }, - "DiagnosticsDataApiResponse": { - "description": "Diagnostics data returned from a detector", - "type": "object", - "properties": { - "table": { - "description": "Table response", - "$ref": "#/definitions/DiagnosticDataTableResponseObject" - }, - "renderingProperties": { - "description": "Details of the table response", - "$ref": "#/definitions/DiagnosticRendering" - } - } - }, - "DiagnosticDataTableResponseObject": { - "description": "Diagnostics data table", - "type": "object", - "properties": { - "tableName": { - "description": "Table name", - "type": "string" - }, - "columns": { - "description": "Columns in the table", - "type": "array", - "items": { - "$ref": "#/definitions/DiagnosticDataTableResponseColumn" - }, - "x-ms-identifiers": [ - "columnName" - ] - }, - "rows": { - "description": "Rows in the table", - "type": "array", - "items": { - "type": "object" - }, - "x-ms-identifiers": [] - } - } - }, - "DiagnosticDataTableResponseColumn": { - "description": "Diagnostics data column", - "type": "object", - "properties": { - "columnName": { - "description": "Column name", - "type": "string" - }, - "dataType": { - "description": "Data type of the column", - "type": "string" - }, - "columnType": { - "description": "Column type", - "type": "string" - } - } - }, - "DiagnosticRendering": { - "description": "Rendering details of a diagnostics table", - "type": "object", - "properties": { - "type": { - "format": "int32", - "description": "Rendering type", - "type": "integer" - }, - "title": { - "description": "Title of the table", - "type": "string" - }, - "description": { - "description": "Description of the table", - "type": "string" - }, - "isVisible": { - "description": "Flag if the table should be rendered", - "type": "boolean" - } - } - }, - "DiagnosticsStatus": { - "description": "Rendering details of a diagnostics table", - "type": "object", - "properties": { - "message": { - "description": "Diagnostic message", - "type": "string" - }, - "statusId": { - "format": "int32", - "description": "Status", - "type": "integer" - } - } - }, - "DiagnosticDataProviderMetadata": { - "description": "Details of a diagnostics data provider", - "type": "object", - "properties": { - "providerName": { - "description": "Name of data provider", - "type": "string" - }, - "propertyBag": { - "description": "Collection of properties", - "type": "array", - "items": { - "description": "Property details", - "type": "object", - "properties": { - "name": { - "description": "Property name", - "type": "string" - }, - "value": { - "description": "Property value", - "type": "string" - } - } - }, - "x-ms-identifiers": [ - "name" - ] - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json deleted file mode 100644 index 83c07d1b6943..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/Global.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/providers/Microsoft.App/operations": { - "get": { - "tags": [ - "Operations" - ], - "description": "Lists all of the available RP operations.", - "operationId": "Operations_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AvailableOperations" - } - }, - "default": { - "description": "Resource Provider error response describing why the operation failed.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List all operations": { - "$ref": "./examples/Operations_List.json" - } - } - } - } - }, - "definitions": { - "AvailableOperations": { - "description": "Available operations of the service", - "type": "object", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/OperationDetail" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "nextLink": { - "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", - "type": "string" - } - } - }, - "OperationDetail": { - "description": "Operation detail payload", - "type": "object", - "properties": { - "name": { - "description": "Name of the operation", - "type": "string" - }, - "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "boolean" - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "Display of the operation" - }, - "origin": { - "description": "Origin of the operation", - "type": "string" - } - } - }, - "OperationDisplay": { - "description": "Operation display payload", - "type": "object", - "properties": { - "provider": { - "description": "Resource provider of the operation", - "type": "string" - }, - "resource": { - "description": "Resource of the operation", - "type": "string" - }, - "operation": { - "description": "Localized friendly name for the operation", - "type": "string" - }, - "description": { - "description": "Localized friendly description for the operation", - "type": "string" - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json deleted file mode 100644 index f2a44ddef010..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironments.json +++ /dev/null @@ -1,986 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments": { - "get": { - "tags": [ - "ManagedEnvironments" - ], - "summary": "Get all Environments for a subscription.", - "description": "Get all Managed Environments for a subscription.", - "operationId": "ManagedEnvironments_ListBySubscription", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagedEnvironmentsCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List environments by subscription": { - "$ref": "./examples/ManagedEnvironments_ListBySubscription.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments": { - "get": { - "tags": [ - "ManagedEnvironments" - ], - "summary": "Get all the Environments in a resource group.", - "description": "Get all the Managed Environments in a resource group.", - "operationId": "ManagedEnvironments_ListByResourceGroup", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagedEnvironmentsCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List environments by resource group": { - "$ref": "./examples/ManagedEnvironments_ListByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}": { - "get": { - "tags": [ - "ManagedEnvironments" - ], - "summary": "Get the properties of a Managed Environment.", - "description": "Get the properties of a Managed Environment used to host container apps.", - "operationId": "ManagedEnvironments_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagedEnvironment" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get environments by name": { - "$ref": "./examples/ManagedEnvironments_Get.json" - } - } - }, - "put": { - "tags": [ - "ManagedEnvironments" - ], - "summary": "Creates or updates a Managed Environment.", - "description": "Creates or updates a Managed Environment used to host container apps.", - "operationId": "ManagedEnvironments_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "name": "environmentEnvelope", - "in": "body", - "description": "Configuration details of the Environment.", - "required": true, - "schema": { - "$ref": "#/definitions/ManagedEnvironment" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagedEnvironment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ManagedEnvironment" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create environments": { - "$ref": "./examples/ManagedEnvironments_CreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "ManagedEnvironments" - ], - "summary": "Delete a Managed Environment.", - "description": "Delete a Managed Environment if it does not have any container apps.", - "operationId": "ManagedEnvironments_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Delete operation completed" - }, - "202": { - "description": "Delete operation is in progress" - }, - "204": { - "description": "Environment does not exist" - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete environment by name": { - "$ref": "./examples/ManagedEnvironments_Delete.json" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "ManagedEnvironments" - ], - "summary": "Update Managed Environment's properties.", - "description": "Patches a Managed Environment using JSON Merge Patch", - "operationId": "ManagedEnvironments_Update", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "name": "environmentEnvelope", - "in": "body", - "description": "Configuration details of the Environment.", - "required": true, - "schema": { - "$ref": "#/definitions/ManagedEnvironment" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Patch operation is in progress." - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Patch Managed Environment": { - "$ref": "./examples/ManagedEnvironments_Patch.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates": { - "get": { - "tags": [ - "ManagedEnvironments", - "Certificates" - ], - "summary": "Get the Certificates in a given managed environment.", - "operationId": "Certificates_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CertificateCollection" - } - }, - "default": { - "description": "Error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List Certificates by Managed Environment": { - "$ref": "./examples/Certificates_ListByManagedEnvironment.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}": { - "get": { - "tags": [ - "ManagedEnvironments", - "Certificates" - ], - "summary": "Get the specified Certificate.", - "operationId": "Certificates_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "certificateName", - "in": "path", - "description": "Name of the Certificate.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Certificate" - } - }, - "default": { - "description": "Error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Certificate": { - "$ref": "./examples/Certificate_Get.json" - } - } - }, - "put": { - "tags": [ - "ManagedEnvironments", - "Certificates" - ], - "summary": "Create or Update a Certificate.", - "operationId": "Certificates_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "certificateName", - "in": "path", - "description": "Name of the Certificate.", - "required": true, - "type": "string" - }, - { - "name": "certificateEnvelope", - "in": "body", - "description": "Certificate to be created or updated", - "schema": { - "$ref": "#/definitions/Certificate" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Certificate" - } - }, - "default": { - "description": "Error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Create or Update Certificate": { - "$ref": "./examples/Certificate_CreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "ManagedEnvironments", - "Certificates" - ], - "summary": "Deletes the specified Certificate.", - "operationId": "Certificates_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "certificateName", - "in": "path", - "description": "Name of the Certificate.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Delete operation completed" - }, - "204": { - "description": "Certificate does not exist" - }, - "default": { - "description": "Error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete Certificate": { - "$ref": "./examples/Certificate_Delete.json" - } - } - }, - "patch": { - "tags": [ - "ManagedEnvironments", - "Certificates" - ], - "summary": "Update properties of a certificate", - "description": "Patches a certificate. Currently only patching of tags is supported", - "operationId": "Certificates_Update", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "certificateName", - "in": "path", - "description": "Name of the Certificate.", - "required": true, - "type": "string" - }, - { - "name": "certificateEnvelope", - "in": "body", - "required": true, - "description": "Properties of a certificate that need to be updated", - "schema": { - "$ref": "#/definitions/CertificatePatch" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Container App updated successfully.", - "schema": { - "$ref": "#/definitions/Certificate" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Patch Certificate": { - "$ref": "./examples/Certificates_Patch.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability": { - "post": { - "tags": [ - "ManagedEnvironments" - ], - "summary": "Checks the resource name availability.", - "description": "Checks if resource name is available.", - "operationId": "Namespaces_CheckNameAvailability", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Managed Environment.", - "required": true, - "type": "string" - }, - { - "name": "checkNameAvailabilityRequest", - "in": "body", - "description": "The check name availability request.", - "required": true, - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" - } - }, - "default": { - "description": "Error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "ContainerApps_CheckNameAvailability": { - "$ref": "./examples/ContainerApps_CheckNameAvailability.json" - }, - "Certificates_CheckNameAvailability": { - "$ref": "./examples/Certificates_CheckNameAvailability.json" - } - } - } - } - }, - "definitions": { - "AppLogsConfiguration": { - "description": "Configuration of application logs", - "type": "object", - "properties": { - "destination": { - "description": "Logs destination", - "type": "string" - }, - "logAnalyticsConfiguration": { - "description": "Log Analytics configuration", - "$ref": "#/definitions/LogAnalyticsConfiguration" - } - } - }, - "VnetConfiguration": { - "type": "object", - "description": "Configuration properties for apps environment to join a Virtual Network", - "properties": { - "internal": { - "type": "boolean", - "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide runtimeSubnetId and infrastructureSubnetId if enabling this property", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "infrastructureSubnetId": { - "type": "string", - "description": "Resource ID of a subnet for infrastructure components. This subnet must be in the same VNET as the subnet defined in runtimeSubnetId. Must not overlap with any other provided IP ranges.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "runtimeSubnetId": { - "type": "string", - "description": "Resource ID of a subnet that Container App containers are injected into. This subnet must be in the same VNET as the subnet defined in infrastructureSubnetId. Must not overlap with any other provided IP ranges.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "dockerBridgeCidr": { - "type": "string", - "description": "CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "platformReservedCidr": { - "type": "string", - "description": "IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other provided IP ranges.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "platformReservedDnsIP": { - "type": "string", - "description": " An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server.", - "x-ms-mutability": [ - "create", - "read" - ] - } - } - }, - "ManagedEnvironment": { - "description": "An environment for hosting container apps", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Managed environment resource specific properties", - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the Environment.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Waiting", - "InitializationInProgress", - "InfrastructureSetupInProgress", - "InfrastructureSetupComplete", - "ScheduledForDelete", - "UpgradeRequested", - "UpgradeFailed" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "EnvironmentProvisioningState", - "modelAsString": true - } - }, - "daprAIInstrumentationKey": { - "type": "string", - "description": "Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry", - "x-ms-mutability": [ - "create", - "read" - ], - "x-ms-secret": true - }, - "daprAIConnectionString": { - "type": "string", - "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", - "x-ms-mutability": [ - "create", - "read" - ], - "x-ms-secret": true - }, - "vnetConfiguration": { - "description": "Vnet configuration for the environment", - "$ref": "#/definitions/VnetConfiguration" - }, - "deploymentErrors": { - "description": "Any errors that occurred during deployment or deployment validation", - "type": "string", - "readOnly": true - }, - "defaultDomain": { - "description": "Default Domain Name for the cluster", - "type": "string", - "readOnly": true - }, - "staticIp": { - "description": "Static IP of the Environment", - "type": "string", - "readOnly": true - }, - "appLogsConfiguration": { - "$ref": "#/definitions/AppLogsConfiguration", - "description": "Cluster configuration which enables the log daemon to export\napp logs to a destination. Currently only \"log-analytics\" is\nsupported" - }, - "zoneRedundant": { - "description": "Whether or not this Managed Environment is zone-redundant.", - "type": "boolean", - "x-ms-mutability": [ - "create", - "read" - ] - } - }, - "x-ms-client-flatten": true - } - } - }, - "ManagedEnvironmentsCollection": { - "description": "Collection of Environments", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagedEnvironment" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "LogAnalyticsConfiguration": { - "description": "Log analytics configuration", - "type": "object", - "properties": { - "customerId": { - "description": "Log analytics customer id", - "type": "string" - }, - "sharedKey": { - "description": "Log analytics customer key", - "type": "string", - "x-ms-mutability": [ - "create", - "update" - ], - "x-ms-secret": true - } - } - }, - "Certificate": { - "description": "Certificate used for Custom Domain bindings of Container Apps in a Managed Environment", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Certificate resource specific properties", - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the certificate.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "DeleteFailed", - "Pending" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "CertificateProvisioningState", - "modelAsString": true - } - }, - "password": { - "description": "Certificate password.", - "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true - }, - "subjectName": { - "description": "Subject name of the certificate.", - "type": "string", - "readOnly": true - }, - "value": { - "format": "byte", - "description": "PFX or PEM blob", - "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true - }, - "issuer": { - "description": "Certificate issuer.", - "type": "string", - "readOnly": true - }, - "issueDate": { - "format": "date-time", - "description": "Certificate issue Date.", - "type": "string", - "readOnly": true - }, - "expirationDate": { - "format": "date-time", - "description": "Certificate expiration date.", - "type": "string", - "readOnly": true - }, - "thumbprint": { - "description": "Certificate thumbprint.", - "type": "string", - "readOnly": true - }, - "valid": { - "description": "Is the certificate valid?.", - "type": "boolean", - "readOnly": true - }, - "publicKeyHash": { - "description": "Public key hash.", - "type": "string", - "readOnly": true - } - } - } - }, - "x-ms-client-flatten": true - }, - "CertificateCollection": { - "description": "Collection of Certificates.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - }, - "CertificatePatch": { - "description": "A certificate to update", - "type": "object", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json deleted file mode 100644 index 5352b8bc5330..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json +++ /dev/null @@ -1,321 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages": { - "get": { - "tags": [ - "ManagedEnvironmentsStorages" - ], - "summary": "Get all storages for a managedEnvironment.", - "description": "Get all storages for a managedEnvironment.", - "operationId": "ManagedEnvironmentsStorages_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagedEnvironmentStoragesCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List environments storages by subscription": { - "$ref": "./examples/ManagedEnvironmentsStorages_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}": { - "get": { - "tags": [ - "ManagedEnvironmentsStorages" - ], - "summary": "Get storage for a managedEnvironment.", - "description": "Get storage for a managedEnvironment.", - "operationId": "ManagedEnvironmentsStorages_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "name": "storageName", - "in": "path", - "description": "Name of the storage.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagedEnvironmentStorage" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "get a environments storage properties by subscription": { - "$ref": "./examples/ManagedEnvironmentsStorages_Get.json" - } - } - }, - "put": { - "tags": [ - "ManagedEnvironmentsStorages" - ], - "summary": "Create or update storage for a managedEnvironment.", - "description": "Create or update storage for a managedEnvironment.", - "operationId": "ManagedEnvironmentsStorages_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "name": "storageName", - "in": "path", - "description": "Name of the storage.", - "required": true, - "type": "string" - }, - { - "name": "storageEnvelope", - "in": "body", - "description": "Configuration details of storage.", - "required": true, - "schema": { - "$ref": "#/definitions/ManagedEnvironmentStorage" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagedEnvironmentStorage" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Create or update environments storage": { - "$ref": "./examples/ManagedEnvironmentsStorages_CreateOrUpdate.json" - } - } - }, - "delete": { - "tags": [ - "ManagedEnvironmentsStorages" - ], - "summary": "Delete storage for a managedEnvironment.", - "description": "Delete storage for a managedEnvironment.", - "operationId": "ManagedEnvironmentsStorages_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "environmentName", - "in": "path", - "description": "Name of the Environment.", - "required": true, - "type": "string" - }, - { - "name": "storageName", - "in": "path", - "description": "Name of the storage.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "Storage does not exist" - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List environments storages by subscription": { - "$ref": "./examples/ManagedEnvironmentsStorages_Delete.json" - } - } - } - } - }, - "definitions": { - "AzureFileProperties": { - "description": "Azure File Properties.", - "type": "object", - "properties": { - "accountName": { - "description": "Storage account name for azure file.", - "type": "string" - }, - "accountKey": { - "description": "Storage account key for azure file.", - "type": "string", - "x-ms-secret": true - }, - "accessMode": { - "description": "Access mode for storage", - "enum": [ - "ReadOnly", - "ReadWrite" - ], - "type": "string", - "x-ms-enum": { - "name": "AccessMode", - "modelAsString": true - } - }, - "shareName": { - "description": "Azure file share name.", - "type": "string" - } - } - }, - "ManagedEnvironmentStoragesCollection": { - "description": "Collection of Storage for Environments", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of storage resources.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagedEnvironmentStorage" - } - } - } - }, - "ManagedEnvironmentStorage": { - "description": "Storage resource for managedEnvironment.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Storage properties", - "type": "object", - "properties": { - "azureFile": { - "$ref": "#/definitions/AzureFileProperties", - "description": "Azure file properties" - } - } - } - } - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json deleted file mode 100644 index 66362f5b177f..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/SourceControls.json +++ /dev/null @@ -1,429 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ContainerApps API Client" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols": { - "get": { - "tags": [ - "ContainerAppsSourceControls" - ], - "summary": "Get the Container App SourceControls in a given resource group.", - "operationId": "ContainerAppsSourceControls_ListByContainerApp", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SourceControlCollection" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "List App's Source Controls": { - "$ref": "./examples/SourceControls_ListByContainer.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}": { - "get": { - "tags": [ - "ContainerAppsSourceControls" - ], - "summary": "Get a SourceControl of a Container App.", - "operationId": "ContainerAppsSourceControls_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "sourceControlName", - "in": "path", - "description": "Name of the Container App SourceControl.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SourceControl" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Container App's SourceControl": { - "$ref": "./examples/SourceControls_Get.json" - } - } - }, - "put": { - "tags": [ - "ContainerAppsSourceControls" - ], - "summary": "Create or update the SourceControl for a Container App.", - "description": "Create or update the SourceControl for a Container App.", - "operationId": "ContainerAppsSourceControls_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "sourceControlName", - "in": "path", - "description": "Name of the Container App SourceControl.", - "required": true, - "type": "string" - }, - { - "name": "sourceControlEnvelope", - "in": "body", - "description": "Properties used to create a Container App SourceControl", - "required": true, - "schema": { - "$ref": "#/definitions/SourceControl" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SourceControl" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/SourceControl" - } - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Create or Update Container App SourceControl": { - "$ref": "./examples/SourceControls_CreateOrUpdate.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "ContainerAppsSourceControls" - ], - "summary": "Delete a Container App SourceControl.", - "description": "Delete a Container App SourceControl.", - "operationId": "ContainerAppsSourceControls_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "containerAppName", - "in": "path", - "description": "Name of the Container App.", - "required": true, - "type": "string" - }, - { - "name": "sourceControlName", - "in": "path", - "description": "Name of the Container App SourceControl.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Container App SourceControl deleted successfully." - }, - "202": { - "description": "Delete operation is in progress." - }, - "204": { - "description": "Container App SourceControl does not exist." - }, - "default": { - "description": "Common error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete Container App SourceControl": { - "$ref": "./examples/SourceControls_Delete.json" - } - }, - "x-ms-long-running-operation": true - } - } - }, - "definitions": { - "SourceControl": { - "description": "Container App SourceControl.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "SourceControl resource specific properties", - "type": "object", - "properties": { - "operationState": { - "description": "Current provisioning State of the operation", - "enum": [ - "InProgress", - "Succeeded", - "Failed", - "Canceled" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "SourceControlOperationState", - "modelAsString": true - } - }, - "repoUrl": { - "description": "The repo url which will be integrated to ContainerApp.", - "type": "string" - }, - "branch": { - "description": "The branch which will trigger the auto deployment", - "type": "string" - }, - "githubActionConfiguration": { - "$ref": "#/definitions/GithubActionConfiguration", - "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time" - } - }, - "x-ms-client-flatten": true - } - } - }, - "GithubActionConfiguration": { - "description": "Configuration properties that define the mutable settings of a Container App SourceControl", - "type": "object", - "properties": { - "registryInfo": { - "$ref": "#/definitions/RegistryInfo", - "description": "Registry configurations." - }, - "azureCredentials": { - "$ref": "#/definitions/AzureCredentials", - "description": "AzureCredentials configurations." - }, - "contextPath": { - "description": "Context path", - "type": "string" - }, - "image": { - "description": "Image name", - "type": "string" - }, - "publishType": { - "description": "Code or Image", - "type": "string" - }, - "os": { - "description": "Operation system", - "type": "string" - }, - "runtimeStack": { - "description": "Runtime stack", - "type": "string" - }, - "runtimeVersion": { - "description": "Runtime version", - "type": "string" - } - } - }, - "RegistryInfo": { - "description": "Container App registry information.", - "type": "object", - "properties": { - "registryUrl": { - "description": "registry server Url.", - "type": "string" - }, - "registryUserName": { - "description": "registry username.", - "type": "string" - }, - "registryPassword": { - "description": "registry secret.", - "type": "string", - "x-ms-mutability": [ - "create", - "update" - ], - "x-ms-secret": true - } - } - }, - "AzureCredentials": { - "description": "Container App credentials.", - "type": "object", - "properties": { - "clientId": { - "description": "Client Id.", - "type": "string", - "x-ms-mutability": [ - "create", - "update" - ], - "x-ms-secret": true - }, - "clientSecret": { - "description": "Client Secret.", - "type": "string", - "x-ms-mutability": [ - "create", - "update" - ], - "x-ms-secret": true - }, - "tenantId": { - "description": "Tenant Id.", - "type": "string", - "x-ms-mutability": [ - "create", - "update" - ], - "x-ms-secret": true - }, - "subscriptionId": { - "description": "Subscription Id.", - "type": "string" - } - } - }, - "SourceControlCollection": { - "description": "SourceControl collection ARM resource.", - "required": [ - "value" - ], - "type": "object", - "properties": { - "value": { - "description": "Collection of resources.", - "type": "array", - "items": { - "$ref": "#/definitions/SourceControl" - } - }, - "nextLink": { - "description": "Link to next page of resources.", - "type": "string", - "readOnly": true - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json deleted file mode 100644 index 2b3dcbd5955e..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "authConfigName": "current", - "api-version": "2022-05-01", - "authConfigEnvelope": { - "properties": { - "platform": { - "enabled": true - }, - "globalValidation": { - "unauthenticatedClientAction": "AllowAnonymous" - }, - "identityProviders": { - "facebook": { - "registration": { - "appId": "123", - "appSecretSettingName": "facebook-secret" - } - } - } - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/authconfigs/current", - "name": "current", - "type": "Microsoft.App/containerapps/authconfigs", - "properties": { - "platform": { - "enabled": true - }, - "globalValidation": { - "unauthenticatedClientAction": "AllowAnonymous" - }, - "identityProviders": { - "facebook": { - "registration": { - "appId": "123", - "appSecretSettingName": "facebook-secret" - } - } - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json deleted file mode 100644 index 411e4e7913ec..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "authConfigName": "current", - "api-version": "2022-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json deleted file mode 100644 index dd087a03cc0e..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_Get.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "authConfigName": "current", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current", - "name": "current", - "type": "Microsoft.App/containerapps/authconfigs", - "properties": { - "platform": { - "enabled": true - }, - "globalValidation": { - "unauthenticatedClientAction": "AllowAnonymous" - }, - "identityProviders": { - "facebook": { - "registration": { - "appId": "123", - "appSecretSettingName": "facebook-secret" - } - } - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json deleted file mode 100644 index a80fc263204a..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current", - "name": "current", - "type": "Microsoft.App/containerapps/authconfigs", - "properties": { - "platform": { - "enabled": true - }, - "globalValidation": { - "unauthenticatedClientAction": "AllowAnonymous" - }, - "identityProviders": { - "facebook": { - "registration": { - "appId": "123", - "appSecretSettingName": "facebook-secret" - } - } - } - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json deleted file mode 100644 index 6a5f76bd8496..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01", - "certificateEnvelope": { - "location": "East US", - "properties": { - "password": "private key password", - "value": "PFX-or-PEM-blob" - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", - "type": "Microsoft.App/ManagedEnvironments/Certificates", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", - "issuer": "Issuer Name", - "issueDate": "2021-11-06T04:00:00Z", - "expirationDate": "2022-11-06T04:00:00Z", - "thumbprint": "CERTIFICATE_THUMBPRINT", - "valid": true - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json deleted file mode 100644 index d8cc7318fa1a..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json deleted file mode 100644 index bf55c41de27d..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", - "name": "certificate-firendly-name", - "type": "Microsoft.App/ManagedEnvironments/Certificates", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", - "issuer": "Issuer Name", - "issueDate": "2021-11-06T04:00:00Z", - "expirationDate": "2022-11-06T04:00:00Z", - "thumbprint": "CERTIFICATE_THUMBPRINT", - "valid": true - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json deleted file mode 100644 index c3e89eb6c81a..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "checkNameAvailabilityRequest": { - "name": "testcertificatename", - "type": "Microsoft.App/managedEnvironments/certificates" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json deleted file mode 100644 index 47b74a695346..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", - "name": "certificate-firendly-name", - "type": "Microsoft.App/ManagedEnvironments/Certificates", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", - "issuer": "Issuer Name", - "issueDate": "2021-11-06T04:00:00Z", - "expirationDate": "2022-11-06T04:00:00Z", - "thumbprint": "CERTIFICATE_THUMBPRINT", - "valid": true - } - }, - { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", - "name": "certificate-firendly-name", - "type": "Microsoft.App/ManagedEnvironments/Certificates", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", - "issuer": "Issuer Name", - "issueDate": "2021-11-06T04:00:00Z", - "expirationDate": "2022-11-06T04:00:00Z", - "thumbprint": "CERTIFICATE_THUMBPRINT", - "valid": true - } - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json deleted file mode 100644 index d73cfe7758e6..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_Patch.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "certificateName": "certificate-firendly-name", - "api-version": "2022-05-01", - "certificateEnvelope": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", - "type": "Microsoft.App/ManagedEnvironments/Certificates", - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", - "issuer": "Issuer Name", - "issueDate": "2021-11-06T04:00:00Z", - "expirationDate": "2022-11-06T04:00:00Z", - "thumbprint": "CERTIFICATE_THUMBPRINT", - "valid": true - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json deleted file mode 100644 index 525efc8304ef..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_Get.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", - "resourceGroupName": "mikono-workerapp-test-rg", - "containerAppName": "mikono-capp-stage1", - "detectorName": "cappcontainerappnetworkIO", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappcontainerappnetworkIO", - "name": "cappcontainerappnetworkIO", - "type": "Microsoft.App/containerapps/detectors", - "properties": { - "metadata": { - "id": "cappcontainerappnetworkIO", - "name": "Container App Network Inbound and Outbound", - "description": "This detector shows the Container App Network Inbound and Outbound.", - "author": "", - "category": "Availability and Performance", - "supportTopicList": [], - "type": "Detector", - "score": 0 - }, - "dataset": [ - { - "table": { - "tableName": "", - "columns": [ - { - "columnName": "TimeStamp", - "dataType": "DateTime" - }, - { - "columnName": "Metric", - "dataType": "String" - }, - { - "columnName": "Average", - "dataType": "Double" - } - ], - "rows": [ - [ - "2022-03-15T21:35:00", - "RxBytes", - 0 - ] - ] - }, - "renderingProperties": { - "type": 8, - "title": "Container Apps Network Inbound ", - "description": "", - "isVisible": true - } - } - ], - "status": { - "statusId": 3 - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json deleted file mode 100644 index 6562c8073c32..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerAppsDiagnostics_List.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", - "resourceGroupName": "mikono-workerapp-test-rg", - "containerAppName": "mikono-capp-stage1", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappContainerAppAvailabilityMetrics", - "name": "cappContainerAppAvailabilityMetrics", - "type": "Microsoft.App/containerapps/detectors", - "properties": { - "metadata": { - "id": "cappContainerAppAvailabilityMetrics", - "name": "Availability Metrics for Container Apps", - "author": "", - "category": "Availability and Performance", - "supportTopicList": [], - "type": "Analysis", - "score": 0 - }, - "dataset": [], - "status": { - "statusId": 4 - } - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json deleted file mode 100644 index 7fa1391abab0..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "checkNameAvailabilityRequest": { - "name": "testcappname", - "type": "Microsoft.App/containerApps" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json deleted file mode 100644 index b6370daf190c..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01", - "containerAppEnvelope": { - "location": "East US", - "properties": { - "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", - "configuration": { - "ingress": { - "external": true, - "targetPort": 3000, - "customDomains": [ - { - "name": "www.my-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" - }, - { - "name": "www.my-other-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" - } - ], - "traffic": [ - { - "weight": 100, - "revisionName": "testcontainerApp0-ab1234", - "label": "production" - } - ] - }, - "dapr": { - "enabled": true, - "appPort": 3000, - "appProtocol": "http", - "httpReadBufferSize": 30 - } - }, - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v1", - "name": "testcontainerApp0", - "probes": [ - { - "type": "Liveness", - "httpGet": { - "path": "/health", - "port": 8080, - "httpHeaders": [ - { - "name": "Custom-Header", - "value": "Awesome" - } - ] - }, - "initialDelaySeconds": 3, - "periodSeconds": 3 - } - ] - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "custom": { - "type": "http", - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - } - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "name": "testcontainerApp0", - "type": "Microsoft.App/containerApps", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", - "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "configuration": { - "ingress": { - "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "external": true, - "targetPort": 3000, - "transport": "auto", - "customDomains": [ - { - "name": "www.my-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" - }, - { - "name": "www.my-other-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" - } - ], - "traffic": [ - { - "weight": 80, - "revisionName": "testcontainerApp0-ab1234" - }, - { - "weight": 20, - "revisionName": "testcontainerApp0-ab4321", - "label": "staging" - } - ] - }, - "dapr": { - "enabled": true, - "appPort": 3000, - "appProtocol": "http", - "httpReadBufferSize": 30 - } - }, - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v4", - "name": "testcontainerApp0", - "resources": { - "cpu": 0.2, - "memory": "100Mi" - }, - "probes": [ - { - "type": "Liveness", - "httpGet": { - "path": "/health", - "port": 8080, - "httpHeaders": [ - { - "name": "Custom-Header", - "value": "Awesome" - } - ] - }, - "initialDelaySeconds": 3, - "periodSeconds": 3 - } - ] - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "http": { - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - } - } - } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "name": "testcontainerApp0", - "type": "Microsoft.App/containerApps", - "location": "East US", - "properties": { - "provisioningState": "InProgress", - "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", - "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "configuration": { - "ingress": { - "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "external": true, - "targetPort": 3000, - "transport": "auto", - "traffic": [ - { - "weight": 80, - "revisionName": "testcontainerApp0-ab1234" - }, - { - "weight": 20, - "revisionName": "testcontainerApp0-ab4321", - "label": "staging" - } - ] - }, - "dapr": { - "enabled": true, - "appPort": 3000, - "appProtocol": "http", - "httpReadBufferSize": 30 - } - }, - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v4", - "name": "testcontainerApp0", - "resources": { - "cpu": 0.2, - "memory": "100Mi" - }, - "probes": [ - { - "type": "Liveness", - "httpGet": { - "path": "/health", - "port": 8080, - "httpHeaders": [ - { - "name": "Custom-Header", - "value": "Awesome" - } - ] - }, - "initialDelaySeconds": 3, - "periodSeconds": 3 - } - ] - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "http": { - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json deleted file mode 100644 index 4417d1f9877c..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Delete.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testWorkerApp0", - "api-version": "2022-05-01" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" - } - }, - "204": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json deleted file mode 100644 index ff636346961f..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Get.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "name": "testcontainerApp0", - "type": "Microsoft.App/containerApps", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", - "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "configuration": { - "ingress": { - "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "external": true, - "targetPort": 3000, - "transport": "auto", - "customDomains": [ - { - "name": "www.my-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" - }, - { - "name": "www.my--other-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" - } - ], - "traffic": [ - { - "weight": 80, - "revisionName": "testcontainerApp0-ab1234" - }, - { - "weight": 20, - "revisionName": "testcontainerApp0-ab4321", - "label": "staging" - } - ] - }, - "dapr": { - "enabled": true, - "appPort": 3000, - "appProtocol": "http", - "httpReadBufferSize": 30 - } - }, - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v4", - "name": "testcontainerApp0", - "resources": { - "cpu": 0.2, - "memory": "100Mi" - } - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "http": { - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - } - } - } - }, - "404": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json deleted file mode 100644 index a0e7e667dbde..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "name": "testcontainerApp0", - "type": "Microsoft.App/containerApps", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", - "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "configuration": { - "ingress": { - "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "external": true, - "targetPort": 3000, - "transport": "auto", - "customDomains": [ - { - "name": "www.my-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" - }, - { - "name": "www.my--other-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" - } - ], - "traffic": [ - { - "weight": 80, - "revisionName": "testcontainerApp0-ab1234" - }, - { - "weight": 20, - "revisionName": "testcontainerApp0-ab4321", - "label": "staging" - } - ] - }, - "dapr": { - "enabled": true, - "appPort": 3000, - "appProtocol": "http", - "httpReadBufferSize": 30 - } - }, - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v4", - "name": "testcontainerApp0", - "resources": { - "cpu": 0.2, - "memory": "100Mi" - } - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "http": { - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - } - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json deleted file mode 100644 index f79966eba9d6..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "name": "testcontainerApp0", - "type": "Microsoft.App/containerApps", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", - "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "configuration": { - "ingress": { - "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io", - "external": true, - "targetPort": 3000, - "transport": "auto", - "customDomains": [ - { - "name": "www.my-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" - }, - { - "name": "www.my--other-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" - } - ], - "traffic": [ - { - "weight": 80, - "revisionName": "testcontainerApp0-ab1234" - }, - { - "weight": 20, - "revisionName": "testcontainerApp0-ab4321", - "label": "staging" - } - ] - }, - "dapr": { - "enabled": true, - "appPort": 3000, - "appProtocol": "http", - "httpReadBufferSize": 30 - } - }, - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v4", - "name": "testcontainerApp0", - "resources": { - "cpu": 0.2, - "memory": "100Mi" - } - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "http": { - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - } - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json deleted file mode 100644 index a5bfe5a7dea9..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "customHostname": "my.name.corp", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "hostName": "my.name.corp", - "isHostnameAlreadyVerified": true, - "customDomainVerificationTest": "Passed", - "customDomainVerificationFailureInfo": {}, - "hasConflictOnManagedEnvironment": false, - "conflictingContainerAppResourceId": "", - "cNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "txtRecords": [ - "txtRecord1", - "txtRecord2" - ], - "aRecords": [ - "aRecord1", - "aRecord2" - ], - "alternateCNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "alternateTxtRecords": [ - "txtRecord1", - "txtRecord2" - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json deleted file mode 100644 index 15a7ba9bb496..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListSecrets.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "name": "secret1" - }, - { - "name": "secret2" - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json deleted file mode 100644 index 7688739a729b..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_Patch.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "api-version": "2022-05-01", - "containerAppEnvelope": { - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "configuration": { - "ingress": { - "external": true, - "targetPort": 3000, - "customDomains": [ - { - "name": "www.my-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com" - }, - { - "name": "www.my-other-name.com", - "bindingType": "SniEnabled", - "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com" - } - ], - "traffic": [ - { - "weight": 100, - "revisionName": "testcontainerApp0-ab1234", - "label": "production" - } - ] - }, - "dapr": { - "enabled": true, - "appPort": 3000, - "appProtocol": "http", - "httpReadBufferSize": 30 - } - }, - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v1", - "name": "testcontainerApp0", - "probes": [ - { - "type": "Liveness", - "httpGet": { - "path": "/health", - "port": 8080, - "httpHeaders": [ - { - "name": "Custom-Header", - "value": "Awesome" - } - ] - }, - "initialDelaySeconds": 3, - "periodSeconds": 3 - } - ] - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "custom": { - "type": "http", - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json deleted file mode 100644 index 0ffa47695813..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "myenvironment", - "componentName": "reddog", - "api-version": "2022-05-01", - "daprComponentEnvelope": { - "properties": { - "componentType": "state.azure.cosmosdb", - "version": "v1", - "ignoreErrors": false, - "initTimeout": "50s", - "secrets": [ - { - "name": "masterkey", - "value": "keyvalue" - } - ], - "metadata": [ - { - "name": "url", - "value": "" - }, - { - "name": "database", - "value": "itemsDB" - }, - { - "name": "collection", - "value": "items" - }, - { - "name": "masterkey", - "secretRef": "masterkey" - } - ], - "scopes": [ - "container-app-1", - "container-app-2" - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", - "name": "reddog", - "type": "Microsoft.App/managedEnvironments/daprcomponents", - "properties": { - "componentType": "state.azure.cosmosdb", - "version": "v1", - "ignoreErrors": false, - "initTimeout": "50s", - "secrets": [ - { - "name": "masterkey" - } - ], - "metadata": [ - { - "name": "url", - "value": "" - }, - { - "name": "database", - "value": "itemsDB" - }, - { - "name": "collection", - "value": "items" - }, - { - "name": "masterkey", - "secretRef": "masterkey" - } - ], - "scopes": [ - "container-app-1", - "container-app-2" - ] - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json deleted file mode 100644 index 989ade111699..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "myenvironment", - "componentName": "reddog", - "api-version": "2022-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json deleted file mode 100644 index b11cf2632a31..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_Get.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "myenvironment", - "componentName": "reddog", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog", - "name": "reddog", - "type": "Microsoft.App/managedEnvironments/daprcomponents", - "properties": { - "componentType": "state.azure.cosmosdb", - "version": "v1", - "ignoreErrors": false, - "initTimeout": "50s", - "secrets": [ - { - "name": "masterkey" - } - ], - "metadata": [ - { - "name": "url", - "value": "" - }, - { - "name": "database", - "value": "itemsDB" - }, - { - "name": "collection", - "value": "items" - }, - { - "name": "masterkey", - "secretRef": "masterkey" - } - ], - "scopes": [ - "container-app-1", - "container-app-2" - ] - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json deleted file mode 100644 index 729dcf81a6ae..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_List.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "myenvironment", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/reddog", - "name": "reddog", - "type": "Microsoft.App/managedEnvironments/daprcomponents", - "properties": { - "componentType": "state.azure.cosmosdb", - "version": "v1", - "ignoreErrors": false, - "initTimeout": "50s", - "secrets": [ - { - "name": "masterkey" - } - ], - "metadata": [ - { - "name": "url", - "value": "" - }, - { - "name": "database", - "value": "itemsDB" - }, - { - "name": "collection", - "value": "items" - }, - { - "name": "masterkey", - "secretRef": "masterkey" - } - ], - "scopes": [ - "container-app-1", - "container-app-2" - ] - } - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json deleted file mode 100644 index c483a92bfa51..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/DaprComponents_ListSecrets.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "myenvironment", - "componentName": "reddog", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "name": "secret1" - }, - { - "name": "secret2" - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json deleted file mode 100644 index 3369ab0b5fc8..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_Get.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", - "resourceGroupName": "mikono-workerapp-test-rg", - "environmentName": "mikonokubeenv", - "detectorName": "ManagedEnvAvailabilityMetrics", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics", - "name": "ManagedEnvAvailabilityMetrics", - "type": "Microsoft.App/managedEnvironments/detectors", - "properties": { - "metadata": { - "id": "ManagedEnvAvailabilityMetrics", - "name": "Managed Env Netowrk Inbound and Outbound", - "description": "This detector shows the Managed Environment Network Inbound and Outbound.", - "author": "", - "category": "Availability and Performance", - "supportTopicList": [], - "type": "Detector", - "score": 0 - }, - "dataset": [ - { - "table": { - "tableName": "", - "columns": [ - { - "columnName": "TimeStamp", - "dataType": "DateTime" - }, - { - "columnName": "Metric", - "dataType": "String" - }, - { - "columnName": "Average", - "dataType": "Double" - } - ], - "rows": [ - [ - "2022-03-15T21:35:00", - "RxBytes", - 0 - ] - ] - }, - "renderingProperties": { - "type": 8, - "title": "Managed Environment Network Inbound ", - "description": "", - "isVisible": true - } - } - ], - "status": { - "statusId": 3 - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json deleted file mode 100644 index 81a4ca210f32..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentDiagnostics_List.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6", - "resourceGroupName": "mikono-workerapp-test-rg", - "environmentName": "mikonokubeenv", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics", - "name": "ManagedEnvAvailabilityMetrics", - "type": "Microsoft.App/managedEnvironments/detectors", - "properties": { - "metadata": { - "id": "ManagedEnvAvailabilityMetrics", - "name": "Availability Metrics for Managed Environments", - "author": "", - "category": "Availability and Performance", - "supportTopicList": [], - "type": "Analysis", - "score": 0 - }, - "dataset": [], - "status": { - "statusId": 4 - } - } - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json deleted file mode 100644 index b3befe244f10..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "managedEnv", - "storageName": "jlaw-demo1", - "api-version": "2022-05-01", - "storageEnvelope": { - "properties": { - "azureFile": { - "accountName": "account1", - "accountKey": "key", - "shareName": "share1", - "accessMode": "ReadOnly" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", - "name": "jlaw-demo1", - "type": "Microsoft.App/managedEnvironments/storages", - "properties": { - "azureFile": { - "accountName": "account1", - "shareName": "share1", - "accessMode": "ReadOnly" - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json deleted file mode 100644 index b5a68b628196..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "managedEnv", - "storageName": "jlaw-demo1", - "api-version": "2022-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json deleted file mode 100644 index 46200ff70421..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "managedEnv", - "storageName": "jlaw-demo1", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", - "name": "jlaw-demo1", - "type": "Microsoft.App/managedEnvironments/storages", - "properties": { - "azureFile": { - "accountName": "account1", - "shareName": "share1", - "accessMode": "ReadOnly" - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json deleted file mode 100644 index e229d4b6463a..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "managedEnv", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1", - "name": "jlaw-demo1", - "type": "Microsoft.App/managedEnvironments/storages", - "properties": { - "azureFile": { - "accountName": "account1", - "shareName": "share1", - "accessMode": "ReadOnly" - } - } - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json deleted file mode 100644 index 1569c23ef8d0..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "api-version": "2022-05-01", - "environmentEnvelope": { - "location": "East US", - "properties": { - "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/", - "appLogsConfiguration": { - "logAnalyticsConfiguration": { - "customerId": "string", - "sharedKey": "string" - } - }, - "zoneRedundant": true - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv", - "name": "testcontainerenv", - "type": "Microsoft.App/managedEnvironments", - "location": "East US", - "properties": { - "provisioningState": "Succeeded", - "deploymentErrors": null, - "defaultDomain": "testcontainerenv.k4apps.io", - "staticIp": "1.2.3.4", - "appLogsConfiguration": { - "logAnalyticsConfiguration": { - "customerId": "string" - } - }, - "zoneRedundant": true - } - } - }, - "201": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv", - "name": "testcontainerenv", - "type": "Microsoft.App/managedEnvironments", - "location": "East US", - "properties": { - "provisioningState": "InitializationInProgress", - "deploymentErrors": null, - "defaultDomain": "testcontainerenv.k4apps.io", - "staticIp": "1.2.3.4", - "appLogsConfiguration": { - "logAnalyticsConfiguration": { - "customerId": "string" - } - }, - "zoneRedundant": true - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json deleted file mode 100644 index d030a202a2fa..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "examplekenv", - "api-version": "2022-05-01", - "location": "East US" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json deleted file mode 100644 index 2fb09492d557..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Get.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "environmentName": "jlaw-demo1", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", - "name": "jlaw-demo1", - "type": "Microsoft.App/managedEnvironments", - "location": "North Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "deploymentErrors": null, - "defaultDomain": "jlaw-demo1.k4apps.io", - "staticIp": "20.42.33.145", - "zoneRedundant": true - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json deleted file mode 100644 index f557fd84de13..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "resourceGroupName": "examplerg", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", - "name": "jlaw-demo1", - "type": "Microsoft.App/managedEnvironments", - "location": "North Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "deploymentErrors": null, - "defaultDomain": "jlaw-demo1.k4apps.io", - "staticIp": "20.42.33.145", - "appLogsConfiguration": null, - "zoneRedundant": true - } - }, - { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/demo1", - "name": "demo1", - "type": "Microsoft.App/managedEnvironments", - "location": "North Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "deploymentErrors": null, - "defaultDomain": "demo1.k4apps.io", - "staticIp": "52.142.21.61", - "appLogsConfiguration": null, - "zoneRedundant": true - } - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json deleted file mode 100644 index 561fdaef2573..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1", - "name": "jlaw-demo1", - "type": "Microsoft.App/managedEnvironments", - "location": "North Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "deploymentErrors": null, - "defaultDomain": "jlaw-demo1.k4apps.io", - "staticIp": "20.42.33.145", - "appLogsConfiguration": null, - "zoneRedundant": true - } - }, - { - "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.App/managedEnvironments/demo1", - "name": "demo1", - "type": "Microsoft.App/managedEnvironments", - "location": "North Central US", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "deploymentErrors": null, - "defaultDomain": "demo1.k4apps.io", - "staticIp": "52.142.21.61", - "appLogsConfiguration": null, - "zoneRedundant": true - } - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json deleted file mode 100644 index 7de7df4d9533..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ManagedEnvironments_Patch.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "examplerg", - "environmentName": "testcontainerenv", - "api-version": "2022-05-01", - "environmentEnvelope": { - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-05-01" - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json deleted file mode 100644 index 836f2b6e1d7b..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Operations_List.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "name": "Microsoft.App/containerApps/Read", - "display": { - "provider": "Microsoft Apps", - "resource": "Container App", - "operation": "Get Container App", - "description": "Get the properties of a Container App" - }, - "origin": "user,system" - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json deleted file mode 100644 index 6934d1c65350..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_Get.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "myapp", - "revisionName": "myapp--0wlqy09", - "replicaName": "myapp--0wlqy09-5d9774cff-5wnd8", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8", - "name": "myapp--0wlqy09-5d9774cff-5wnd8", - "type": "Microsoft.Web/containerapps/revisions/replicas", - "properties": { - "createdTime": "2022-01-25T19:42:45Z", - "containers": [ - { - "name": "hello92", - "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", - "ready": true, - "started": true, - "restartCount": 0 - } - ] - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json deleted file mode 100644 index bb35abdefe3d..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Replicas_List.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "myapp", - "revisionName": "myapp--0wlqy09", - "api-version": "2021-02-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8", - "name": "myapp--0wlqy09-5d9774cff-5wnd8", - "type": "Microsoft.Web/containerapps/revisions/replicas", - "properties": { - "createdTime": "2022-01-25T19:42:45Z", - "containers": [ - { - "name": "hello92", - "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", - "ready": true, - "started": true, - "restartCount": 0 - } - ] - } - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json deleted file mode 100644 index 61da5f005894..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Activate.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "revisionName": "testcontainerApp0-pjxhsye", - "api-version": "2022-05-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json deleted file mode 100644 index 61da5f005894..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Deactivate.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "revisionName": "testcontainerApp0-pjxhsye", - "api-version": "2022-05-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json deleted file mode 100644 index e971a77c619d..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "revisionName": "testcontainerApp0-pjxhsye", - "api-version": "2021-02-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppcontainerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye", - "name": "testcontainerApp0-pjxhsye", - "type": "Microsoft.App/containerApps/revisions", - "properties": { - "createdTime": "2021-05-24T21:24:22+00:00", - "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v2", - "name": "testcontainerApp0", - "resources": { - "cpu": 0.2, - "memory": "100Mi" - } - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "http": { - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - }, - "active": true, - "replicas": 1 - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json deleted file mode 100644 index 5a8c98a7bfb3..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testcontainerApp0", - "api-version": "2021-02-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye", - "name": "testcontainerApp0-pjxhsye", - "type": "Microsoft.App/containerApps/revisions", - "properties": { - "createdTime": "2021-05-24T21:24:22+00:00", - "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", - "template": { - "containers": [ - { - "image": "repo/testcontainerApp0:v2", - "name": "testcontainerApp0", - "resources": { - "cpu": 0.2, - "memory": "100Mi" - } - } - ], - "scale": { - "minReplicas": 1, - "maxReplicas": 5, - "rules": [ - { - "name": "httpscalingrule", - "http": { - "metadata": { - "concurrentRequests": "50" - } - } - } - ] - } - }, - "active": true, - "replicas": 1 - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json deleted file mode 100644 index 3336c0109c26..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Restart.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "containerAppName": "testStaticSite0", - "revisionName": "testcontainerApp0-pjxhsye", - "api-version": "2021-02-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json deleted file mode 100644 index 9f0b2606b0a7..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "sourceControlName": "current", - "api-version": "2022-05-01", - "sourceControlEnvelope": { - "properties": { - "repoUrl": "https://github.com/xwang971/ghatest", - "branch": "master", - "githubActionConfiguration": { - "registryInfo": { - "registryUrl": "xwang971reg.azurecr.io", - "registryUserName": "xwang971reg", - "registryPassword": "" - }, - "azureCredentials": { - "clientId": "", - "clientSecret": "", - "tenantId": "" - }, - "contextPath": "./", - "image": "image/tag" - } - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current", - "name": "current", - "type": "Microsoft.App/containerapps/sourcecontrols", - "properties": { - "operationState": "InProgress", - "repoUrl": "https://github.com/xwang971/ghatest", - "branch": "master", - "githubActionConfiguration": { - "registryInfo": { - "registryUrl": "xwang971reg.azurecr.io", - "registryUserName": "xwang971reg" - }, - "contextPath": "./", - "image": "image/tag" - } - } - } - }, - "201": { - "headers": { - "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" - }, - "body": { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current", - "name": "current", - "type": "Microsoft.App/containerapps/sourcecontrols", - "properties": { - "operationState": "InProgress", - "repoUrl": "https://github.com/xwang971/ghatest", - "branch": "master", - "githubActionConfiguration": { - "registryInfo": { - "registryUrl": "xwang971reg.azurecr.io", - "registryUserName": "xwang971reg" - }, - "contextPath": "./", - "image": "image/tag" - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json deleted file mode 100644 index 27ca9b9e7cca..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Delete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "sourceControlName": "current", - "api-version": "2022-05-01" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/14a787ee-c65f-462d-8a8b-897f69a2ab4f?api-version=2021-03-01" - } - }, - "204": {} - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json deleted file mode 100644 index cb7e227aabbf..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_Get.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "sourceControlName": "current", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current", - "name": "current", - "type": "Microsoft.App/containerapps/sourcecontrols", - "properties": { - "repoUrl": "https://github.com/xwang971/ghatest", - "branch": "master", - "githubActionConfiguration": { - "registryInfo": { - "registryUrl": "xwang971reg.azurecr.io", - "registryUserName": "xwang971reg" - }, - "contextPath": "./", - "image": "image/tag" - } - } - } - } - } -} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json deleted file mode 100644 index d738e6eaa5ce..000000000000 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/SourceControls_ListByContainer.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", - "resourceGroupName": "workerapps-rg-xj", - "containerAppName": "testcanadacentral", - "api-version": "2022-05-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current", - "name": "current", - "type": "Microsoft.App/containerapps/sourcecontrols", - "properties": { - "repoUrl": "https://github.com/xwang971/ghatest", - "branch": "master", - "githubActionConfiguration": { - "registryInfo": { - "registryUrl": "xwang971reg.azurecr.io", - "registryUserName": "xwang971reg" - }, - "contextPath": "./", - "image": "image/tag" - } - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index a709225896f8..aab276f87ac5 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -51,23 +51,6 @@ input-file: - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json ``` -### Tag: package-2022-05 - -These settings apply only when `--tag=package-2022-05` is specified on the command line. - -``` yaml $(tag) == 'package-2022-05' -input-file: - - Microsoft.App/stable/2022-05-01/AuthConfigs.json - - Microsoft.App/stable/2022-05-01/CommonDefinitions.json - - Microsoft.App/stable/2022-05-01/ContainerApps.json - - Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json - - Microsoft.App/stable/2022-05-01/DaprComponents.json - - Microsoft.App/stable/2022-05-01/Diagnostics.json - - Microsoft.App/stable/2022-05-01/Global.json - - Microsoft.App/stable/2022-05-01/ManagedEnvironments.json - - Microsoft.App/stable/2022-05-01/ManagedEnvironmentsStorages.json - - Microsoft.App/stable/2022-05-01/SourceControls.json -``` ### Tag: package-2022-03 From 10ea6b00260939bcd8c66f712467becf3df28cca Mon Sep 17 00:00:00 2001 From: trajkobal Date: Wed, 7 Sep 2022 14:31:42 -0400 Subject: [PATCH 33/50] add proxy resource properties --- .../2022-06-01-preview/BillingMeters.json | 87 +++++++++---------- 1 file changed, 41 insertions(+), 46 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json index 61e5977de0ba..c04909ec07c6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json @@ -51,47 +51,42 @@ "BillingMeter": { "description": "A premium billing meter.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id":{ - "type": "string", - "description": "Billing meter id." - }, - "category":{ - "description": "Used to map workload profile types to billing meter.", - "type": "string", - "enum": [ - "PremiumSkuGeneralCompute", - "PremiumSkuMemoryOptimized", - "PremiumSkuComputeOptimized" - ], - "x-ms-enum": { - "name": "Category", - "modelAsString": true - } - }, - "type":{ - "description": "Compute type.", - "type": "string", - "enum": [ - "Memory", - "CPU" - ], - "x-ms-enum": { - "name": "ComputeType", - "modelAsString": true + "properties": { + "description": "Revision resource specific properties", + "type": "object", + "properties": { + "category": { + "description": "Used to map workload profile types to billing meter.", + "type": "string", + "enum": [ + "PremiumSkuGeneralCompute", + "PremiumSkuMemoryOptimized", + "PremiumSkuComputeOptimized" + ], + "x-ms-enum": { + "name": "Category", + "modelAsString": true + } + }, + "shortName": { + "type": "string", + "description": "Unique short name for the meter." + }, + "friendlyName": { + "type": "string", + "description": "The everyday name of the billing meter." + }, + "billingLocation": { + "type": "string", + "description": "Region for the billing meter." + } } - }, - "shortName":{ - "type": "string", - "description": "Unique short name for the meter." - }, - "friendlyName":{ - "type": "string", - "description": "The everyday name of the billing meter." - }, - "billingLocation":{ - "type": "string", - "description": "Region for the billing meter." } } }, @@ -114,13 +109,13 @@ }, "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } } } } From df7c4b8c36461d3a93c1807fc27cf3964b277c1c Mon Sep 17 00:00:00 2001 From: trajkobal Date: Wed, 7 Sep 2022 17:09:07 -0400 Subject: [PATCH 34/50] Response formatting --- .../2022-06-01-preview/BillingMeters.json | 14 ++-- .../examples/BillingMeters_Get.json | 74 ++++++++++++++++--- 2 files changed, 69 insertions(+), 19 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json index c04909ec07c6..89defea0af21 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json @@ -40,7 +40,7 @@ } }, "x-ms-examples": { - "List billing meters by location": { + "BillingMeters_Get": { "$ref": "./examples/BillingMeters_Get.json" } } @@ -57,6 +57,10 @@ } ], "properties": { + "location": { + "type": "string", + "description": "Region for the billing meter." + }, "properties": { "description": "Revision resource specific properties", "type": "object", @@ -74,17 +78,13 @@ "modelAsString": true } }, - "shortName": { + "meterType": { "type": "string", - "description": "Unique short name for the meter." + "description": "Billing meter type." }, "friendlyName": { "type": "string", "description": "The everyday name of the billing meter." - }, - "billingLocation": { - "type": "string", - "description": "Region for the billing meter." } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json index bd2fcd5a265c..12417fdbe7ae 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json @@ -9,20 +9,70 @@ "body": { "value": [ { - "id": "7a3b96e3-1c68-4506-86d8-224b89b3347f", - "category": "PremiumSkuGeneralCompute", - "type": "CPU", - "shortName": "PremiumSKUGeneralComputeCPU", - "friendlyName": "Premium SKU General Compute Cores per Second", - "billingLocation": "East US" + "location": "East US", + "properties": { + "category": "PremiumSkuGeneralCompute", + "meterType": "CPU", + "friendlyName": "Premium SKU General Compute Cores per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeCPU", + "name": "PremiumSKUGeneralComputeCPU", + "type": "Microsoft.App/billingMeters" }, { - "id": "2343b96e3-1c68-4506-86d8-224b8ass347f", - "category": "PremiumSkuGeneralCompute", - "type": "Memory", - "shortName": "PremiumSKUGeneralComputeMemory", - "friendlyName": "Premium SKU General Compute Memory GB per Second", - "billingLocation": "East US" + "location": "East US", + "properties": { + "category": "PremiumSkuGeneralCompute", + "meterType": "Memory", + "friendlyName": "Premium SKU General Compute Memory GB per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeMemory", + "name": "PremiumSKUGeneralComputeMemory", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuMemoryOptimized", + "meterType": "CPU", + "friendlyName": "Premium SKU Memory Optimized Cores per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUMemoryOptimizedCPU", + "name": "PremiumSKUMemoryOptimizedCPU", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuMemoryOptimized", + "meterType": "Memory", + "friendlyName": "Premium SKU Memory Optimized Memory GB per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSkuMemoryOptimizedMemory", + "name": "PremiumSkuMemoryOptimizedMemory", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuComputeOptimized", + "meterType": "CPU", + "friendlyName": "Premium SKU Compute Optimized Cores per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUComputeOptimizedCPU", + "name": "PremiumSKUComputeOptimizedCPU", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuComputeOptimized", + "meterType": "Memory", + "friendlyName": "Premium SKU Compute Optimized Memory GB per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeMemory", + "name": "PremiumSKUGeneralComputeMemory", + "type": "Microsoft.App/billingMeters" } ] } From b1aab39ec617152f2fed8714028edb824bc33ce5 Mon Sep 17 00:00:00 2001 From: Mahmoud Desokey Date: Wed, 7 Sep 2022 22:15:32 -0500 Subject: [PATCH 35/50] Added support for user defined routing (#20464) * Added support for user defined routing * Added examples * fixed JSON syntax * syntax fix * fixed vnetenvironment syntax * fixed camel case * case fix * enum syntax * fixed comma cases ManagedEnvironmentOutBoundType * fixing casing --- .../ManagedEnvironments.json | 29 +++++++++++++++++++ .../ManagedEnvironments_CreateOrUpdate.json | 18 ++++++++++++ .../examples/ManagedEnvironments_Get.json | 6 ++++ ...nagedEnvironments_ListByResourceGroup.json | 12 ++++++++ ...anagedEnvironments_ListBySubscription.json | 12 ++++++++ 5 files changed, 77 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index ea727556e144..a835866cf0a3 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -646,6 +646,31 @@ } }, "definitions": { + "ManagedEnvironmentOutboundSettings": { + "type": "object", + "description": "Configuration used to control the Environment Egress outbound traffic", + "properties": { + "outBoundType": { + "$ref": "#/definitions/ManagedEnvironmentOutBoundType" + }, + "virtualNetworkApplianceIp": { + "description": "Virtual Appliance IP used as the Egress controller for the Environment", + "type": "string" + } + } + }, + "ManagedEnvironmentOutBoundType": { + "enum": [ + "LoadBalancer", + "UserDefinedRouting" + ], + "description": "Outbound type for the cluster", + "type": "string", + "x-ms-enum": { + "name": "ManagedEnvironmentOutBoundType", + "modelAsString": true + } + }, "AppLogsConfiguration": { "description": "Configuration of application logs", "type": "object", @@ -711,6 +736,10 @@ "create", "read" ] + }, + "outboundSettings": { + "$ref": "#/definitions/ManagedEnvironmentOutboundSettings", + "description": "Configuration used to control the Environment Egress outbound traffic" } } }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json index bc6499cf010e..8eea40d0438b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json @@ -18,6 +18,12 @@ } }, "zoneRedundant": true, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } + }, "customDomainConfiguration": { "dnsSuffix": "www.my-name.com", "certificateValue": "PFX-or-PEM-blob", @@ -64,6 +70,12 @@ } }, "zoneRedundant": true, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } + }, "customDomainConfiguration": { "customDomainVerificationId": "custom domain verification id", "dnsSuffix": "www.my-name.com", @@ -111,6 +123,12 @@ } }, "zoneRedundant": true, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } + }, "customDomainConfiguration": { "customDomainVerificationId": "custom domain verification id", "dnsSuffix": "www.my-name.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json index 6c69a7b8ab1a..d9dd84cc9a49 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json @@ -22,6 +22,12 @@ "defaultDomain": "jlaw-demo1.k4apps.io", "staticIp": "20.42.33.145", "zoneRedundant": true, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } + }, "customDomainConfiguration": { "customDomainVerificationId": "custom domain verification id", "dnsSuffix": "www.my-name.com", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json index 5b7bcca51438..37e1dd8a3344 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json @@ -24,6 +24,12 @@ "staticIp": "20.42.33.145", "appLogsConfiguration": null, "zoneRedundant": true, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } + }, "customDomainConfiguration": { "customDomainVerificationId": "custom domain verification id", "dnsSuffix": "www.my-name.com", @@ -72,6 +78,12 @@ "subjectName": "CN=www.my-name2.com", "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" + }, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json index f0bfc7f8292b..24ed636d2170 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json @@ -23,6 +23,12 @@ "staticIp": "20.42.33.145", "appLogsConfiguration": null, "zoneRedundant": true, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } + }, "customDomainConfiguration": { "customDomainVerificationId": "custom domain verification id", "dnsSuffix": "www.my-name.com", @@ -65,6 +71,12 @@ "staticIp": "52.142.21.61", "appLogsConfiguration": null, "zoneRedundant": true, + "vnetConfiguration": { + "outboundSettings": { + "outBoundType": "UserDefinedRouting", + "virtualNetworkApplianceIp": "192.168.1.20" + } + }, "customDomainConfiguration": { "customDomainVerificationId": "custom domain verification id", "dnsSuffix": "www.my-name2.com", From cebac9473393d0306ebb90630041a1c77fb60375 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Thu, 8 Sep 2022 13:00:25 -0400 Subject: [PATCH 36/50] add default error response --- .../preview/2022-06-01-preview/BillingMeters.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json index 89defea0af21..e409a865ead0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json @@ -37,6 +37,12 @@ "schema": { "$ref": "#/definitions/BillingMeterCollection" } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { From 5faf48bec356146a3848a8e13bfc739a0ab193a0 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Thu, 8 Sep 2022 14:07:56 -0400 Subject: [PATCH 37/50] Add available workprofiles -GET endpoint --- ...llingMeters.json => WorkloadProfiles.json} | 44 ++++--- .../AvailableWorkloadProfiles_Get.json | 123 ++++++++++++++++++ .../examples/BillingMeters_Get.json | 81 ------------ specification/app/resource-manager/readme.md | 2 +- 4 files changed, 149 insertions(+), 101 deletions(-) rename specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/{BillingMeters.json => WorkloadProfiles.json} (69%) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json similarity index 69% rename from specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json rename to specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json index e409a865ead0..ce36a079226a 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json @@ -12,14 +12,14 @@ "application/json" ], "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes": { "get": { "tags": [ - "BillingMeters" + "WorkloadProfiles" ], - "summary": "Get billing meters by location.", - "description": "Get all billingMeters for a location.", - "operationId": "BillingMeters_Get", + "summary": "Get available workload profiles by location.", + "description": "Get all available workload profiles for a location.", + "operationId": "AvailableWorkloadProfiles_Get", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" @@ -35,7 +35,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/BillingMeterCollection" + "$ref": "#/definitions/WorkloadProfilesCollection" } }, "default": { @@ -47,15 +47,15 @@ }, "x-ms-examples": { "BillingMeters_Get": { - "$ref": "./examples/BillingMeters_Get.json" + "$ref": "./examples/AvailableWorkloadProfiles_Get.json" } } } } }, "definitions": { - "BillingMeter": { - "description": "A premium billing meter.", + "WorkloadProfile": { + "description": "A premium workload profile.", "type": "object", "allOf": [ { @@ -65,13 +65,13 @@ "properties": { "location": { "type": "string", - "description": "Region for the billing meter." + "description": "Region of the workload profile." }, "properties": { "description": "Revision resource specific properties", "type": "object", "properties": { - "category": { + "billingMeterCategory": { "description": "Used to map workload profile types to billing meter.", "type": "string", "enum": [ @@ -84,30 +84,36 @@ "modelAsString": true } }, - "meterType": { - "type": "string", - "description": "Billing meter type." + "cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores in CPU." + }, + "memoryGiB": { + "type": "integer", + "format": "int32", + "description": "Memory in GB." }, "friendlyName": { "type": "string", - "description": "The everyday name of the billing meter." + "description": "The everyday name of the workload profile." } } } } }, - "BillingMeterCollection": { - "description": "Collection of premium workload billing meters.", + "WorkloadProfilesCollection": { + "description": "Collection of available workload profiles in the location.", "required": [ "value" ], "type": "object", "properties": { "value": { - "description": "Collection of billing meters.", + "description": "Collection of workload profiles.", "type": "array", "items": { - "$ref": "#/definitions/BillingMeter" + "$ref": "#/definitions/WorkloadProfile" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json new file mode 100644 index 000000000000..f2b6f2148e56 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "location": "East US", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "adf", + "properties": { + "friendlyName": "General Compute 1", + "billingMeterCategory": "PremiumSkuGeneralCompute", + "cores": 4, + "memoryGiB": 16 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-1", + "name": "GeneralCompute-1", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "General Compute 2", + "billingMeterCategory": "PremiumSkuGeneralCompute", + "cores": 8, + "memoryGiB": 32 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-2", + "name": "GeneralCompute-2", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "General Compute 3", + "billingMeterCategory": "PremiumSkuGeneralCompute", + "cores": 16, + "memoryGiB": 64 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-3", + "name": "GeneralCompute-3", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "Memory Optimized 1", + "billingMeterCategory": "PremiumSkuMemoryOptimized", + "cores": 4, + "memoryGiB": 32 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", + "name": "MemoryOptimized-1", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "Memory Optimized 2", + "billingMeterCategory": "PremiumSkuMemoryOptimized", + "cores": 8, + "memoryGiB": 64 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", + "name": "MemoryOptimized-1", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "Memory Optimized 3", + "billingMeterCategory": "PremiumSkuMemoryOptimized", + "cores": 16, + "memoryGiB": 128 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", + "name": "MemoryOptimized-1", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "CPU Optimized 1", + "billingMeterCategory": "PremiumSkuComputeOptimized", + "cores": 4, + "memoryGiB": 8 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-1", + "name": "CPUOptimized-1", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "CPU Optimized 2", + "billingMeterCategory": "PremiumSkuComputeOptimized", + "cores": 8, + "memoryGiB": 16 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-2", + "name": "CPUOptimized-2", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + }, + { + "location": "adf", + "properties": { + "friendlyName": "CPU Optimized 3", + "billingMeterCategory": "PremiumSkuComputeOptimized", + "cores": 16, + "memoryGiB": 32 + }, + "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-3", + "name": "CPUOptimized-3", + "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json deleted file mode 100644 index 12417fdbe7ae..000000000000 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "location": "East US", - "api-version": "2022-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "East US", - "properties": { - "category": "PremiumSkuGeneralCompute", - "meterType": "CPU", - "friendlyName": "Premium SKU General Compute Cores per Second" - }, - "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeCPU", - "name": "PremiumSKUGeneralComputeCPU", - "type": "Microsoft.App/billingMeters" - }, - { - "location": "East US", - "properties": { - "category": "PremiumSkuGeneralCompute", - "meterType": "Memory", - "friendlyName": "Premium SKU General Compute Memory GB per Second" - }, - "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeMemory", - "name": "PremiumSKUGeneralComputeMemory", - "type": "Microsoft.App/billingMeters" - }, - { - "location": "East US", - "properties": { - "category": "PremiumSkuMemoryOptimized", - "meterType": "CPU", - "friendlyName": "Premium SKU Memory Optimized Cores per Second" - }, - "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUMemoryOptimizedCPU", - "name": "PremiumSKUMemoryOptimizedCPU", - "type": "Microsoft.App/billingMeters" - }, - { - "location": "East US", - "properties": { - "category": "PremiumSkuMemoryOptimized", - "meterType": "Memory", - "friendlyName": "Premium SKU Memory Optimized Memory GB per Second" - }, - "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSkuMemoryOptimizedMemory", - "name": "PremiumSkuMemoryOptimizedMemory", - "type": "Microsoft.App/billingMeters" - }, - { - "location": "East US", - "properties": { - "category": "PremiumSkuComputeOptimized", - "meterType": "CPU", - "friendlyName": "Premium SKU Compute Optimized Cores per Second" - }, - "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUComputeOptimizedCPU", - "name": "PremiumSKUComputeOptimizedCPU", - "type": "Microsoft.App/billingMeters" - }, - { - "location": "East US", - "properties": { - "category": "PremiumSkuComputeOptimized", - "meterType": "Memory", - "friendlyName": "Premium SKU Compute Optimized Memory GB per Second" - }, - "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeMemory", - "name": "PremiumSKUGeneralComputeMemory", - "type": "Microsoft.App/billingMeters" - } - ] - } - } - } -} diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 4bae9429efa6..86c8afc84f33 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -50,7 +50,7 @@ input-file: - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json - - Microsoft.App/preview/2022-06-01-preview/BillingMeters.json + - Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json ``` ### Tag: package-2022-05 From 04a072c6af6e49aee2fe3739e93fef09c99d2e7a Mon Sep 17 00:00:00 2001 From: trajkobal Date: Thu, 8 Sep 2022 15:28:38 -0400 Subject: [PATCH 38/50] Remove duplicate schema name WorkloadProfile --- ...oadProfiles.json => AvailableWorkloadProfiles.json} | 10 +++++----- specification/app/resource-manager/readme.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/{WorkloadProfiles.json => AvailableWorkloadProfiles.json} (93%) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json similarity index 93% rename from specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json rename to specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index ce36a079226a..2cda46f9ab67 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -15,7 +15,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes": { "get": { "tags": [ - "WorkloadProfiles" + "AvailableWorkloadProfiles" ], "summary": "Get available workload profiles by location.", "description": "Get all available workload profiles for a location.", @@ -35,7 +35,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/WorkloadProfilesCollection" + "$ref": "#/definitions/AvailableWorkloadProfilesCollection" } }, "default": { @@ -54,7 +54,7 @@ } }, "definitions": { - "WorkloadProfile": { + "AvailableWorkloadProfile": { "description": "A premium workload profile.", "type": "object", "allOf": [ @@ -102,7 +102,7 @@ } } }, - "WorkloadProfilesCollection": { + "AvailableWorkloadProfilesCollection": { "description": "Collection of available workload profiles in the location.", "required": [ "value" @@ -113,7 +113,7 @@ "description": "Collection of workload profiles.", "type": "array", "items": { - "$ref": "#/definitions/WorkloadProfile" + "$ref": "#/definitions/AvailableWorkloadProfile" } } } diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index 86c8afc84f33..72645fc9ce98 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -50,7 +50,7 @@ input-file: - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json - - Microsoft.App/preview/2022-06-01-preview/WorkloadProfiles.json + - Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json ``` ### Tag: package-2022-05 From 1fe7a2a6f361dd49ee2f9e84df9db221b492b2ce Mon Sep 17 00:00:00 2001 From: trajkobal Date: Mon, 12 Sep 2022 13:33:26 -0400 Subject: [PATCH 39/50] Change memoryGiB to memoryGB as suggested in code review --- .../AvailableWorkloadProfiles.json | 2 +- .../AvailableWorkloadProfiles_Get.json | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index 2cda46f9ab67..529c79306a41 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -89,7 +89,7 @@ "format": "int32", "description": "Number of cores in CPU." }, - "memoryGiB": { + "memoryGB": { "type": "integer", "format": "int32", "description": "Memory in GB." diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json index f2b6f2148e56..6c2f19f789d1 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json @@ -9,110 +9,110 @@ "body": { "value": [ { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "General Compute 1", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 4, - "memoryGiB": 16 + "memoryGB": 16 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-1", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-1", "name": "GeneralCompute-1", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "General Compute 2", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 8, - "memoryGiB": 32 + "memoryGB": 32 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-2", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-2", "name": "GeneralCompute-2", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "General Compute 3", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 16, - "memoryGiB": 64 + "memoryGB": 64 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-3", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-3", "name": "GeneralCompute-3", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "Memory Optimized 1", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 4, - "memoryGiB": 32 + "memoryGB": 32 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", "name": "MemoryOptimized-1", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "Memory Optimized 2", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 8, - "memoryGiB": 64 + "memoryGB": 64 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", "name": "MemoryOptimized-1", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "Memory Optimized 3", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 16, - "memoryGiB": 128 + "memoryGB": 128 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", "name": "MemoryOptimized-1", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "CPU Optimized 1", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 4, - "memoryGiB": 8 + "memoryGB": 8 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-1", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-1", "name": "CPUOptimized-1", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "CPU Optimized 2", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 8, - "memoryGiB": 16 + "memoryGB": 16 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-2", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-2", "name": "CPUOptimized-2", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" }, { - "location": "adf", + "location": "East US", "properties": { "friendlyName": "CPU Optimized 3", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 16, - "memoryGiB": 32 + "memoryGB": 32 }, - "id": "/subscriptions/dafd/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-3", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-3", "name": "CPUOptimized-3", "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes" } From cd99a4bae9e2fd0a20582fefc73b99707231c564 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Mon, 12 Sep 2022 13:40:18 -0400 Subject: [PATCH 40/50] Add x-ms-pageable - nextLink support to not introduce breaking changes in the future --- .../preview/2022-06-01-preview/AvailableWorkloadProfiles.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index 529c79306a41..de66fc1ef56d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -45,6 +45,9 @@ } } }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "x-ms-examples": { "BillingMeters_Get": { "$ref": "./examples/AvailableWorkloadProfiles_Get.json" From e4b6e9d809daa045b047c755e79bbcfa90d95076 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Mon, 12 Sep 2022 14:57:58 -0400 Subject: [PATCH 41/50] rename to memory in GiB because our case is Gibibytes base 1024 --- .../AvailableWorkloadProfiles.json | 4 ++-- .../AvailableWorkloadProfiles_Get.json | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index de66fc1ef56d..85af6fcefcc0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -92,10 +92,10 @@ "format": "int32", "description": "Number of cores in CPU." }, - "memoryGB": { + "memoryGiB": { "type": "integer", "format": "int32", - "description": "Memory in GB." + "description": "Memory in GiB." }, "friendlyName": { "type": "string", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json index 6c2f19f789d1..fe49d98497b6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json @@ -14,7 +14,7 @@ "friendlyName": "General Compute 1", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 4, - "memoryGB": 16 + "memoryGiB": 16 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-1", "name": "GeneralCompute-1", @@ -26,7 +26,7 @@ "friendlyName": "General Compute 2", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 8, - "memoryGB": 32 + "memoryGiB": 32 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-2", "name": "GeneralCompute-2", @@ -38,7 +38,7 @@ "friendlyName": "General Compute 3", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 16, - "memoryGB": 64 + "memoryGiB": 64 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/GeneralCompute-3", "name": "GeneralCompute-3", @@ -50,7 +50,7 @@ "friendlyName": "Memory Optimized 1", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 4, - "memoryGB": 32 + "memoryGiB": 32 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", "name": "MemoryOptimized-1", @@ -62,7 +62,7 @@ "friendlyName": "Memory Optimized 2", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 8, - "memoryGB": 64 + "memoryGiB": 64 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", "name": "MemoryOptimized-1", @@ -74,7 +74,7 @@ "friendlyName": "Memory Optimized 3", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 16, - "memoryGB": 128 + "memoryGiB": 128 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/MemoryOptimized-1", "name": "MemoryOptimized-1", @@ -86,7 +86,7 @@ "friendlyName": "CPU Optimized 1", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 4, - "memoryGB": 8 + "memoryGiB": 8 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-1", "name": "CPUOptimized-1", @@ -98,7 +98,7 @@ "friendlyName": "CPU Optimized 2", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 8, - "memoryGB": 16 + "memoryGiB": 16 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-2", "name": "CPUOptimized-2", @@ -110,7 +110,7 @@ "friendlyName": "CPU Optimized 3", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 16, - "memoryGB": 32 + "memoryGiB": 32 }, "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/CPUOptimized-3", "name": "CPUOptimized-3", From 6712d92ae0b86ff5c81abafff7a7a474856bbb1d Mon Sep 17 00:00:00 2001 From: trajkobal Date: Mon, 12 Sep 2022 16:02:11 -0400 Subject: [PATCH 42/50] change friendlyName to displayName --- .../AvailableWorkloadProfiles.json | 7 ++++++- .../AvailableWorkloadProfiles_Get.json | 18 +++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index 85af6fcefcc0..5ca53e7f97e8 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -97,7 +97,7 @@ "format": "int32", "description": "Memory in GiB." }, - "friendlyName": { + "displayName": { "type": "string", "description": "The everyday name of the workload profile." } @@ -118,6 +118,11 @@ "items": { "$ref": "#/definitions/AvailableWorkloadProfile" } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json index fe49d98497b6..8cfabc6717e2 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json @@ -11,7 +11,7 @@ { "location": "East US", "properties": { - "friendlyName": "General Compute 1", + "displayName": "General Compute 1", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 4, "memoryGiB": 16 @@ -23,7 +23,7 @@ { "location": "East US", "properties": { - "friendlyName": "General Compute 2", + "displayName": "General Compute 2", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 8, "memoryGiB": 32 @@ -35,7 +35,7 @@ { "location": "East US", "properties": { - "friendlyName": "General Compute 3", + "displayName": "General Compute 3", "billingMeterCategory": "PremiumSkuGeneralCompute", "cores": 16, "memoryGiB": 64 @@ -47,7 +47,7 @@ { "location": "East US", "properties": { - "friendlyName": "Memory Optimized 1", + "displayName": "Memory Optimized 1", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 4, "memoryGiB": 32 @@ -59,7 +59,7 @@ { "location": "East US", "properties": { - "friendlyName": "Memory Optimized 2", + "displayName": "Memory Optimized 2", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 8, "memoryGiB": 64 @@ -71,7 +71,7 @@ { "location": "East US", "properties": { - "friendlyName": "Memory Optimized 3", + "displayName": "Memory Optimized 3", "billingMeterCategory": "PremiumSkuMemoryOptimized", "cores": 16, "memoryGiB": 128 @@ -83,7 +83,7 @@ { "location": "East US", "properties": { - "friendlyName": "CPU Optimized 1", + "displayName": "CPU Optimized 1", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 4, "memoryGiB": 8 @@ -95,7 +95,7 @@ { "location": "East US", "properties": { - "friendlyName": "CPU Optimized 2", + "displayName": "CPU Optimized 2", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 8, "memoryGiB": 16 @@ -107,7 +107,7 @@ { "location": "East US", "properties": { - "friendlyName": "CPU Optimized 3", + "displayName": "CPU Optimized 3", "billingMeterCategory": "PremiumSkuComputeOptimized", "cores": 16, "memoryGiB": 32 From 0cce38c2358dd2391fe8d57812afae085db15b2d Mon Sep 17 00:00:00 2001 From: Xingjian Wang <79332479+xwang971@users.noreply.github.com> Date: Mon, 12 Sep 2022 18:18:48 -0700 Subject: [PATCH 43/50] Some more APIs (#20448) * new APIs to 06-01 * test fix * more fixes --- custom-words.txt | 4 +- .../2022-06-01-preview/ContainerApps.json | 84 ++++++++++++++++++ .../ContainerAppsRevisions.json | 10 +++ .../ManagedEnvironments.json | 85 +++++++++++++++++++ .../ContainerApps_CreateOrUpdate.json | 6 +- .../examples/ContainerApps_Get.json | 3 +- .../examples/ContainerApps_GetAuthToken.json | 24 ++++++ .../ContainerApps_ListByResourceGroup.json | 3 +- .../ContainerApps_ListBySubscription.json | 3 +- .../ManagedEnvironments_CreateOrUpdate.json | 2 + .../examples/ManagedEnvironments_Get.json | 1 + .../ManagedEnvironments_GetAuthToken.json | 24 ++++++ ...nagedEnvironments_ListByResourceGroup.json | 2 + ...anagedEnvironments_ListBySubscription.json | 4 +- .../examples/Replicas_Get.json | 4 +- .../examples/Replicas_List.json | 4 +- 16 files changed, 254 insertions(+), 9 deletions(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_GetAuthToken.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_GetAuthToken.json diff --git a/custom-words.txt b/custom-words.txt index eed79692ad86..9ef8e4bc72c4 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2523,4 +2523,6 @@ Dataworld Asana AppFigures Twilio -getazresiliencystatus \ No newline at end of file +getazresiliencystatus +authtoken +eventstream \ No newline at end of file diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json index 0d6ebf1059c0..6bd6b0d7fd06 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerApps.json @@ -408,6 +408,56 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authtoken": { + "post": { + "tags": [ + "ContainerApps" + ], + "summary": "Get auth token for a container app", + "operationId": "ContainerApps_GetAuthToken", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContainerAppAuthToken" + } + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App Auth Token": { + "$ref": "./examples/ContainerApps_GetAuthToken.json" + } + } + } } }, "definitions": { @@ -548,6 +598,11 @@ "type": "string" }, "readOnly": true + }, + "eventStreamEndpoint": { + "description": "The endpoint of the eventstream of the container app.", + "type": "string", + "readOnly": true } }, "x-ms-client-flatten": true @@ -981,6 +1036,35 @@ } }, "x-ms-client-flatten": true + }, + "ContainerAppAuthToken": { + "description": "Container App Auth Token.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Container App auth token resource specific properties", + "type": "object", + "properties": { + "token": { + "description": "Auth token value.", + "type": "string", + "readOnly": true + }, + "expires": { + "format": "date-time", + "description": "Token expiration date.", + "type": "string", + "readOnly": true + } + }, + "x-ms-client-flatten": true + } + } } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json index 5ac279e1e77d..1ed329157468 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json @@ -571,6 +571,16 @@ "format": "int32", "description": "The container restart count", "type": "integer" + }, + "logStreamEndpoint": { + "description": "Log Stream endpoint", + "type": "string", + "readOnly": true + }, + "execEndpoint": { + "description": "Container exec endpoint", + "type": "string", + "readOnly": true } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index a835866cf0a3..df064119970c 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -643,6 +643,57 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/authtoken": { + "post": { + "tags": [ + "ManagedEnvironments" + ], + "summary": "Get auth token for a managed environment", + "description": "Checks if resource name is available.", + "operationId": "ManagedEnvironments_GetAuthToken", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "description": "Name of the Managed Environment.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EnvironmentAuthToken" + } + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Managed Environment Auth Token": { + "$ref": "./examples/ManagedEnvironments_GetAuthToken.json" + } + } + } } }, "definitions": { @@ -873,6 +924,11 @@ "$ref": "#/definitions/CustomDomainConfiguration", "description": "Custom domain configuration for the environment" }, + "eventStreamEndpoint": { + "description": "The endpoint of the eventstream of the Environment.", + "type": "string", + "readOnly": true + }, "workloadProfiles": { "description": "Workload profiles configured for the Managed Environment.", "type": "array", @@ -928,6 +984,35 @@ } } }, + "EnvironmentAuthToken": { + "description": "Environment Auth Token.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Environment auth token resource specific properties", + "type": "object", + "properties": { + "token": { + "description": "Auth token value.", + "type": "string", + "readOnly": true + }, + "expires": { + "format": "date-time", + "description": "Token expiration date.", + "type": "string", + "readOnly": true + } + }, + "x-ms-client-flatten": true + } + } + }, "WorkloadProfile": { "description": "Workload profile to scope container app execution.", "type": "object", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json index 66296f066b09..f60c618e9943 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -241,7 +241,8 @@ } ] } - } + }, + "eventStreamEndpoint": "testEndpoint" } } }, @@ -340,7 +341,8 @@ } ] } - } + }, + "eventStreamEndpoint": "testEndpoint" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json index f1602fe97bc2..55904dd30014 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json @@ -108,7 +108,8 @@ } ] } - } + }, + "eventStreamEndpoint": "testEndpoint" } } }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_GetAuthToken.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_GetAuthToken.json new file mode 100644 index 000000000000..fa97ef8fb0f4 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_GetAuthToken.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", + "name": "testcontainerApp0", + "type": "Microsoft.App/containerApps/accesstoken", + "location": "East US", + "properties": { + "token": "testToken", + "expires": "2022-07-14T19:22:50.3080223Z" + } + } + }, + "404": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json index d1e8e03e16ce..2601847710ee 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json @@ -109,7 +109,8 @@ } ] } - } + }, + "eventStreamEndpoint": "testEndpoint" } } ], diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json index bb4276a39d57..d60c3762261f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json @@ -108,7 +108,8 @@ } ] } - } + }, + "eventStreamEndpoint": "testEndpoint" } } ], diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json index 8eea40d0438b..fe2c9ae2168b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json @@ -83,6 +83,7 @@ "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" }, + "eventStreamEndpoint": "testEndpoint", "workloadProfiles": [ { "workloadProfileType": "GeneralPurpose", @@ -136,6 +137,7 @@ "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" }, + "eventStreamEndpoint": "testEndpoint", "workloadProfiles": [ { "workloadProfileType": "GeneralPurpose", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json index d9dd84cc9a49..c066b78320bb 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json @@ -35,6 +35,7 @@ "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" }, + "eventStreamEndpoint": "testEndpoint", "workloadProfiles": [ { "workloadProfileType": "GeneralPurpose", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_GetAuthToken.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_GetAuthToken.json new file mode 100644 index 000000000000..a1c56f9c4ddc --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_GetAuthToken.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + "resourceGroupName": "rg", + "environmentName": "testenv", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/testenv", + "name": "testenv", + "type": "Microsoft.App/environments/accesstoken", + "location": "East US", + "properties": { + "token": "testToken", + "expires": "2022-07-14T19:22:50.3080223Z" + } + } + }, + "404": {} + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json index 37e1dd8a3344..e5f426affbdf 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json @@ -37,6 +37,7 @@ "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" }, + "eventStreamEndpoint": "testEndpoint", "workloadProfiles": [ { "workloadProfileType": "GeneralPurpose", @@ -79,6 +80,7 @@ "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" }, + "eventStreamEndpoint": "testEndpoint", "vnetConfiguration": { "outboundSettings": { "outBoundType": "UserDefinedRouting", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json index 24ed636d2170..873459140baa 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json @@ -36,6 +36,7 @@ "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" }, + "eventStreamEndpoint": "testEndpoint", "workloadProfiles": [ { "workloadProfileType": "GeneralPurpose", @@ -83,7 +84,8 @@ "subjectName": "CN=www.my-name2.com", "expirationDate": "2022-11-06T04:00:00Z", "thumbprint": "CERTIFICATE_THUMBPRINT" - } + }, + "eventStreamEndpoint": "testEndpoint" } } ] diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json index 66ff19d61240..cb7133778780 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json @@ -22,7 +22,9 @@ "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", "ready": true, "started": true, - "restartCount": 0 + "restartCount": 0, + "logStreamEndpoint": "testLogStreamEndpoint", + "execEndpoint": "testExecEndpoint" } ] } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json index bb35abdefe3d..6ffc39c95e79 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json @@ -23,7 +23,9 @@ "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54", "ready": true, "started": true, - "restartCount": 0 + "restartCount": 0, + "logStreamEndpoint": "testLogStreamEndpoint", + "execEndpoint": "testExecEndpoint" } ] } From 2fcf2eb7bedc173f1d644d1020d03b0a37559166 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Tue, 13 Sep 2022 11:48:17 -0400 Subject: [PATCH 44/50] Add new property to the response object --- .../2022-06-01-preview/AvailableWorkloadProfiles.json | 6 +++++- .../examples/AvailableWorkloadProfiles_Get.json | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index 5ca53e7f97e8..c898b991afb6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -78,7 +78,7 @@ "description": "Used to map workload profile types to billing meter.", "type": "string", "enum": [ - "PremiumSkuGeneralCompute", + "PremiumSkuGeneralPurpose", "PremiumSkuMemoryOptimized", "PremiumSkuComputeOptimized" ], @@ -87,6 +87,10 @@ "modelAsString": true } }, + "default": { + "type": "boolean", + "description": "indicates whether the profile is default for the location." + }, "cores": { "type": "integer", "format": "int32", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json index 8cfabc6717e2..852587c27ffb 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json @@ -13,6 +13,7 @@ "properties": { "displayName": "General Compute 1", "billingMeterCategory": "PremiumSkuGeneralCompute", + "default": true, "cores": 4, "memoryGiB": 16 }, From e3d090ae5fdc7828e4595a4e3b796dc0b2c1b886 Mon Sep 17 00:00:00 2001 From: njucz <740360112@qq.com> Date: Thu, 15 Sep 2022 13:26:15 +0800 Subject: [PATCH 45/50] add last active time for revision (#20658) --- .../preview/2022-06-01-preview/ContainerAppsRevisions.json | 6 ++++++ .../preview/2022-06-01-preview/examples/Revisions_Get.json | 1 + .../preview/2022-06-01-preview/examples/Revisions_List.json | 1 + 3 files changed, 8 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json index 1ed329157468..f6d901eb7bc0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ContainerAppsRevisions.json @@ -409,6 +409,12 @@ "type": "string", "readOnly": true }, + "lastActiveTime": { + "format": "date-time", + "description": "Timestamp describing when the revision was last active. Only meaningful when revision is inactive", + "type": "string", + "readOnly": true + }, "fqdn": { "description": "Fully qualified domain name of the revision", "type": "string", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json index 98063fc987eb..a0bacc0e6974 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json @@ -15,6 +15,7 @@ "type": "Microsoft.App/containerApps/revisions", "properties": { "createdTime": "2021-05-24T21:24:22+00:00", + "lastActiveTime": "2021-05-24T21:24:22+00:00", "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", "template": { "containers": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json index cc1f1eea33c9..3d324514a55e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json @@ -16,6 +16,7 @@ "type": "Microsoft.App/containerApps/revisions", "properties": { "createdTime": "2021-05-24T21:24:22+00:00", + "lastActiveTime": "2021-05-24T21:24:22+00:00", "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", "template": { "containers": [ From 0624af24776b486c71cebdedd6914d97ab743235 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Thu, 15 Sep 2022 17:30:41 +0800 Subject: [PATCH 46/50] Add custom domain for connected env (#20731) * add custom domain * fhcekout --- .../2022-06-01-preview/CommonDefinitions.json | 47 ++++++++++++++++++ .../ConnectedEnvironments.json | 4 ++ .../ManagedEnvironments.json | 49 +------------------ .../ConnectedEnvironments_CreateOrUpdate.json | 16 +++++- .../examples/ConnectedEnvironments_Get.json | 9 +++- ...ectedEnvironments_ListByResourceGroup.json | 18 ++++++- ...nectedEnvironments_ListBySubscription.json | 18 ++++++- .../examples/ConnectedEnvironments_Patch.json | 9 +++- 8 files changed, 114 insertions(+), 56 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json index 4be8167f677c..e5578818b9d3 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/CommonDefinitions.json @@ -293,6 +293,53 @@ } } }, + "CustomDomainConfiguration": { + "type": "object", + "description": "Configuration properties for apps environment custom domain", + "properties": { + "customDomainVerificationId": { + "description": "Id used to verify domain name ownership", + "type": "string", + "readOnly": true + }, + "dnsSuffix": { + "type": "string", + "description": "Dns suffix for the environment domain", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "certificateValue": { + "format": "byte", + "description": "PFX or PEM blob", + "type": "string", + "x-ms-secret": true + }, + "certificatePassword": { + "format": "byte", + "description": "Certificate password", + "type": "string", + "x-ms-secret": true + }, + "expirationDate": { + "format": "date-time", + "description": "Certificate expiration date.", + "type": "string", + "readOnly": true + }, + "thumbprint": { + "description": "Certificate thumbprint.", + "type": "string", + "readOnly": true + }, + "subjectName": { + "description": "Subject name of the certificate.", + "type": "string", + "readOnly": true + } + } + }, "DefaultErrorResponse": { "description": "App Service error response.", "type": "object", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json index 73b7637e59e2..dd884d8b8518 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json @@ -408,6 +408,10 @@ "type": "string", "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", "x-ms-secret": true + }, + "customDomainConfiguration": { + "$ref": "./CommonDefinitions.json#/definitions/CustomDomainConfiguration", + "description": "Custom domain configuration for the environment" } }, "x-ms-client-flatten": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index df064119970c..8b547d44b67d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -794,53 +794,6 @@ } } }, - "CustomDomainConfiguration": { - "type": "object", - "description": "Configuration properties for apps environment custom domain", - "properties": { - "customDomainVerificationId": { - "description": "Id used to verify domain name ownership", - "type": "string", - "readOnly": true - }, - "dnsSuffix": { - "type": "string", - "description": "Dns suffix for the environment domain", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "certificateValue": { - "format": "byte", - "description": "PFX or PEM blob", - "type": "string", - "x-ms-secret": true - }, - "certificatePassword": { - "format": "byte", - "description": "Certificate password", - "type": "string", - "x-ms-secret": true - }, - "expirationDate": { - "format": "date-time", - "description": "Certificate expiration date.", - "type": "string", - "readOnly": true - }, - "thumbprint": { - "description": "Certificate thumbprint.", - "type": "string", - "readOnly": true - }, - "subjectName": { - "description": "Subject name of the certificate.", - "type": "string", - "readOnly": true - } - } - }, "ManagedEnvironment": { "description": "An environment for hosting container apps", "type": "object", @@ -921,7 +874,7 @@ ] }, "customDomainConfiguration": { - "$ref": "#/definitions/CustomDomainConfiguration", + "$ref": "./CommonDefinitions.json#/definitions/CustomDomainConfiguration", "description": "Custom domain configuration for the environment" }, "eventStreamEndpoint": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json index 75364d7af1e8..665953cbf672 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json @@ -14,7 +14,12 @@ "location": "East US", "properties": { "staticIp": "1.2.3.4", - "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/" + "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/", + "customDomainConfiguration": { + "dnsSuffix": "www.my-name.com", + "certificateValue": "PFX-or-PEM-blob", + "certificatePassword": "private key password" + } } } }, @@ -34,7 +39,14 @@ "provisioningState": "Succeeded", "deploymentErrors": null, "defaultDomain": "testenv.k4apps.io", - "staticIp": "1.2.3.4" + "staticIp": "1.2.3.4", + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } }, diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json index fb792f8e3102..c29fa2fb291e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json @@ -27,7 +27,14 @@ "provisioningState": "Succeeded", "deploymentErrors": null, "defaultDomain": "examplekenv.k4apps.io", - "staticIp": "20.42.33.145" + "staticIp": "20.42.33.145", + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json index b9e4aa8202f6..dad1d416fc5e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json @@ -22,7 +22,14 @@ "provisioningState": "Succeeded", "deploymentErrors": null, "defaultDomain": "sample1.k4apps.io", - "staticIp": "20.42.33.145" + "staticIp": "20.42.33.145", + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } }, { @@ -39,7 +46,14 @@ "provisioningState": "Succeeded", "deploymentErrors": null, "defaultDomain": "sample2.k4apps.io", - "staticIp": "52.142.21.61" + "staticIp": "52.142.21.61", + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name2.com", + "subjectName": "CN=www.my-name2.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } ] diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json index cea755f1aa23..eb2e79675936 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json @@ -17,7 +17,14 @@ "provisioningState": "Succeeded", "deploymentErrors": null, "defaultDomain": "sample1.k4apps.io", - "staticIp": "20.42.33.145" + "staticIp": "20.42.33.145", + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } }, { @@ -30,7 +37,14 @@ "provisioningState": "Succeeded", "deploymentErrors": null, "defaultDomain": "sample2.k4apps.io", - "staticIp": "52.142.21.61" + "staticIp": "52.142.21.61", + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name2.com", + "subjectName": "CN=www.my-name2.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } ] diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json index f894173a2738..9a04c25daa8d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json @@ -27,7 +27,14 @@ "provisioningState": "Succeeded", "deploymentErrors": null, "defaultDomain": "testenv.k4apps.io", - "staticIp": "20.42.33.145" + "staticIp": "20.42.33.145", + "customDomainConfiguration": { + "customDomainVerificationId": "custom domain verification id", + "dnsSuffix": "www.my-name.com", + "subjectName": "CN=www.my-name.com", + "expirationDate": "2022-11-06T04:00:00Z", + "thumbprint": "CERTIFICATE_THUMBPRINT" + } } } } From c371e7c2cbe0254c24d347268bfc1e20f4b71fc0 Mon Sep 17 00:00:00 2001 From: trajkobal <108365738+trajkobal@users.noreply.github.com> Date: Thu, 15 Sep 2022 20:44:52 -0400 Subject: [PATCH 47/50] billingMeters - GET endpoint (#20485) * Swagger documentation for /locations/{location}/billingMeters - GET endpoint * Add example, fix validation errors * Fix ARM validation errors, code review comments * Fix response validation * add proxy resource properties * Response formatting * add default error response * ARM Review feedback + small naming change for a property * Change GB to GiB --- .../2022-06-01-preview/BillingMeters.json | 127 ++++++++++++++++++ .../examples/BillingMeters_Get.json | 81 +++++++++++ specification/app/resource-manager/readme.md | 1 + 3 files changed, 209 insertions(+) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json new file mode 100644 index 000000000000..2b241cfefaa6 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/BillingMeters.json @@ -0,0 +1,127 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-06-01-preview", + "title": "ContainerApps API Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters": { + "get": { + "tags": [ + "BillingMeters" + ], + "summary": "Get billing meters by location.", + "description": "Get all billingMeters for a location.", + "operationId": "BillingMeters_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BillingMeterCollection" + } + }, + "default": { + "description": "Error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingMeters_Get": { + "$ref": "./examples/BillingMeters_Get.json" + } + } + } + } + }, + "definitions": { + "BillingMeter": { + "description": "A premium billing meter.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "location": { + "type": "string", + "description": "Region for the billing meter." + }, + "properties": { + "description": "Revision resource specific properties", + "type": "object", + "properties": { + "category": { + "description": "Used to map workload profile types to billing meter.", + "type": "string", + "enum": [ + "PremiumSkuGeneralPurpose", + "PremiumSkuMemoryOptimized", + "PremiumSkuComputeOptimized" + ], + "x-ms-enum": { + "name": "Category", + "modelAsString": true + } + }, + "meterType": { + "type": "string", + "description": "Billing meter type." + }, + "displayName": { + "type": "string", + "description": "The everyday name of the billing meter." + } + } + } + } + }, + "BillingMeterCollection": { + "description": "Collection of premium workload billing meters.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of billing meters.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingMeter" + } + } + } + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json new file mode 100644 index 000000000000..e6cb1af50bc1 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "location": "East US", + "api-version": "2022-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "East US", + "properties": { + "category": "PremiumSkuGeneralPurpose", + "meterType": "CPU", + "displayName": "Premium SKU General Purpose Cores per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralPurposeCPU", + "name": "PremiumSKUGeneralPurposeCPU", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuGeneralPurpose", + "meterType": "Memory", + "displayName": "Premium SKU General Purpose Memory GiB per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralPurposeMemory", + "name": "PremiumSKUGeneralPurposeMemory", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuMemoryOptimized", + "meterType": "CPU", + "displayName": "Premium SKU Memory Optimized Cores per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUMemoryOptimizedCPU", + "name": "PremiumSKUMemoryOptimizedCPU", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuMemoryOptimized", + "meterType": "Memory", + "displayName": "Premium SKU Memory Optimized Memory GiB per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSkuMemoryOptimizedMemory", + "name": "PremiumSkuMemoryOptimizedMemory", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuComputeOptimized", + "meterType": "CPU", + "displayName": "Premium SKU Compute Optimized Cores per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUComputeOptimizedCPU", + "name": "PremiumSKUComputeOptimizedCPU", + "type": "Microsoft.App/billingMeters" + }, + { + "location": "East US", + "properties": { + "category": "PremiumSkuComputeOptimized", + "meterType": "Memory", + "displayName": "Premium SKU Compute Optimized Memory GiB per Second" + }, + "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/PremiumSKUGeneralComputeMemory", + "name": "PremiumSKUGeneralComputeMemory", + "type": "Microsoft.App/billingMeters" + } + ] + } + } + } +} diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md index aab276f87ac5..8566c6f2f5b9 100644 --- a/specification/app/resource-manager/readme.md +++ b/specification/app/resource-manager/readme.md @@ -50,6 +50,7 @@ input-file: - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsCertificates.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsDaprComponents.json - Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironmentsStorages.json + - Microsoft.App/preview/2022-06-01-preview/BillingMeters.json ``` ### Tag: package-2022-03 From d0f6acb1e2f636a5d896e055eae2978ed2f5c5d2 Mon Sep 17 00:00:00 2001 From: trajkobal Date: Fri, 16 Sep 2022 11:26:59 -0400 Subject: [PATCH 48/50] Change the boolean value for default to enum --- .../AvailableWorkloadProfiles.json | 14 +++++++++++--- .../examples/AvailableWorkloadProfiles_Get.json | 10 +++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index c898b991afb6..00c99a9e9934 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -87,9 +87,17 @@ "modelAsString": true } }, - "default": { - "type": "boolean", - "description": "indicates whether the profile is default for the location." + "applicability": { + "type": "string", + "description": "indicates whether the profile is default for the location.", + "enum": [ + "LocationDefault", + "Custom" + ], + "x-ms-enum": { + "name": "Applicability", + "modelAsString": true + } }, "cores": { "type": "integer", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json index 852587c27ffb..e2395a726a68 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json @@ -13,7 +13,7 @@ "properties": { "displayName": "General Compute 1", "billingMeterCategory": "PremiumSkuGeneralCompute", - "default": true, + "applicability": "LocationDefault", "cores": 4, "memoryGiB": 16 }, @@ -26,6 +26,7 @@ "properties": { "displayName": "General Compute 2", "billingMeterCategory": "PremiumSkuGeneralCompute", + "applicability": "Custom", "cores": 8, "memoryGiB": 32 }, @@ -38,6 +39,7 @@ "properties": { "displayName": "General Compute 3", "billingMeterCategory": "PremiumSkuGeneralCompute", + "applicability": "Custom", "cores": 16, "memoryGiB": 64 }, @@ -50,6 +52,7 @@ "properties": { "displayName": "Memory Optimized 1", "billingMeterCategory": "PremiumSkuMemoryOptimized", + "applicability": "Custom", "cores": 4, "memoryGiB": 32 }, @@ -62,6 +65,7 @@ "properties": { "displayName": "Memory Optimized 2", "billingMeterCategory": "PremiumSkuMemoryOptimized", + "applicability": "Custom", "cores": 8, "memoryGiB": 64 }, @@ -74,6 +78,7 @@ "properties": { "displayName": "Memory Optimized 3", "billingMeterCategory": "PremiumSkuMemoryOptimized", + "applicability": "Custom", "cores": 16, "memoryGiB": 128 }, @@ -86,6 +91,7 @@ "properties": { "displayName": "CPU Optimized 1", "billingMeterCategory": "PremiumSkuComputeOptimized", + "applicability": "Custom", "cores": 4, "memoryGiB": 8 }, @@ -98,6 +104,7 @@ "properties": { "displayName": "CPU Optimized 2", "billingMeterCategory": "PremiumSkuComputeOptimized", + "applicability": "Custom", "cores": 8, "memoryGiB": 16 }, @@ -110,6 +117,7 @@ "properties": { "displayName": "CPU Optimized 3", "billingMeterCategory": "PremiumSkuComputeOptimized", + "applicability": "Custom", "cores": 16, "memoryGiB": 32 }, From 41a50c3b71f4e71962aa07be25f85a97aa12e57a Mon Sep 17 00:00:00 2001 From: trajkobal Date: Fri, 16 Sep 2022 11:46:18 -0400 Subject: [PATCH 49/50] change error response to v3/ErrorResponse --- .../preview/2022-06-01-preview/AvailableWorkloadProfiles.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json index 00c99a9e9934..50ce39339705 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/AvailableWorkloadProfiles.json @@ -41,7 +41,7 @@ "default": { "description": "Error response.", "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, From 20dc2c8cfbcb6b5767e587ed44279f0bfa94d5e6 Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Mon, 19 Sep 2022 20:46:18 -0700 Subject: [PATCH 50/50] Fix 2022-06-01-preview branch merge conflicts (#20773) * Reset * more fixes * More fixes * another conflict fix * Fix old preview version * fix 2022-03-01 --- custom-words.txt | 223 +++++++++++++++++- .../2022-01-01-preview/AuthConfigs.json | 4 +- .../2022-01-01-preview/ContainerApps.json | 184 +++++++++------ .../2022-01-01-preview/SourceControls.json | 4 +- .../examples/Certificate_CreateOrUpdate.json | 4 +- .../examples/Certificate_Get.json | 4 +- ...Certificates_ListByManagedEnvironment.json | 8 +- .../examples/Certificates_Patch.json | 4 +- ...tainerApps_ListCustomHostNameAnalysis.json | 55 ++--- ...stCustomHostNameAnalysisErrorResponse.json | 33 +++ .../stable/2022-03-01/AuthConfigs.json | 4 +- .../stable/2022-03-01/ContainerApps.json | 184 +++++++++------ .../stable/2022-03-01/SourceControls.json | 6 +- .../examples/Certificate_CreateOrUpdate.json | 2 +- .../2022-03-01/examples/Certificate_Get.json | 2 +- ...Certificates_ListByManagedEnvironment.json | 4 +- .../examples/Certificates_Patch.json | 2 +- ...tainerApps_ListCustomHostNameAnalysis.json | 55 ++--- ...stCustomHostNameAnalysisErrorResponse.json | 33 +++ 19 files changed, 584 insertions(+), 231 deletions(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json create mode 100644 specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json diff --git a/custom-words.txt b/custom-words.txt index 9ef8e4bc72c4..562082bd3d01 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -3,11 +3,13 @@ A192CBCPAD A256CBCPAD AADDS aadiam +AADKERB AADP aapl AATP abcxyz ABFS +Abstractive ABGRABGR Accel ACCELCONTAINER @@ -21,6 +23,7 @@ ACLs aclspec acquisitionid acrapi +ACSS ACSSMS actionplans activedirectory @@ -45,6 +48,7 @@ adultscore afd afdx affinitized +AFRI AFRINIC agentpool aggregatedcost @@ -68,6 +72,8 @@ ambari amlcompute amortizedcost analysisservices +analyzeconversations +analyzetext AND'ed Annotatable anomalydetector @@ -131,7 +137,10 @@ appteststorage appxmanifest Appxmanifest ARGBARGB +argmax ARIN +Arima +Arimax Arjun armtemplates arpa @@ -141,6 +150,7 @@ artifactsources artifacttypes artifacturi asciifolding +ASCS Asns aspnet assessmentprojects @@ -149,6 +159,7 @@ Asturian asyncinfo asyncoperation atascada +attachednetworks attestationcollateral attestationmechanism attributerule @@ -159,6 +170,7 @@ australiaeast australiasoutheast authenticatable Authenticode +authkey authorityURL authorizationrules authpriv @@ -166,6 +178,7 @@ authprovider authproviders Auths authsettings +authtoken authsid autobackup Autocompletes @@ -181,7 +194,9 @@ Automanage automations autopatching autopool +Autoregressive autorest +autosave autoscale autoscaler autoscalesettings @@ -321,6 +336,7 @@ canadaeast canceldelete cancelpipelinerun canonicalized +capi Carbonite carretera catalogapi @@ -389,6 +405,8 @@ Cmdkey cmdlet cmdlets CMEK +CMKDW +CMKHS CMMI CNAME cntk @@ -396,9 +414,11 @@ CODEGEN codegeneration codemirror codepackage +Coffeelake cognitiveservices colls colocation +Cololocation COLUMNSTORE commandshistory commitmentplans @@ -428,6 +448,7 @@ continuouswebjobs contoso contosodataset contosomedia +Convolutional cooldown copyid copyto @@ -462,6 +483,7 @@ CSRP csrs currentbillingfeatures currentuser +customdnssuffix customerinsights customhostname customhostnames @@ -482,8 +504,10 @@ customvisiontraining CUTOVER CVEs CVSS +cyclicity Cyrl dacl +DaemonSet dailyforecast dailyhistorical dapr @@ -523,6 +547,8 @@ dataversion datawarehouse datetimeoffset datetimes +davinci +Dbinstance DBFS DCOS ddagpu @@ -577,9 +603,16 @@ destaging destinationshares detectorproperties deterministically +devcenter +devcenters +devbox +devboxes +devboxdefinitions +deviceclass deviceclasses devicecredentials devicegroups +deviceid deviceids deviceprovisioningservices devicestates @@ -613,6 +646,7 @@ diskoperations Distcp Distro dllpath +DMARC DMSDB DMTS Dnat @@ -655,6 +689,8 @@ EIRP eirpd Einsteinweg Ekaterinburg +ElasticSan +ElasticSans ekus Eloqua enableautoscale @@ -662,6 +698,7 @@ enablelog enablement enablescheduling ename +endoftext endpointkeys endpointname endswith @@ -678,6 +715,7 @@ entrypoint enumdef environmentsettings EPSG +erasureordestructionlog errordetail errored ESDNI @@ -696,6 +734,7 @@ Eventhub eventhubconnections eventhubs eventroutes +eventstream eventtime eventtypes EWDG @@ -755,6 +794,8 @@ fileuploadout fileurl findsimilars findsquare +finetune +finetunes firmwares Flexera Flowlet @@ -835,6 +876,8 @@ GIFs Gilbertese githubusercontent gitrepo +githuboauth +githuboauthcallback globalconfiguration Gloo gltf @@ -911,6 +954,8 @@ hybriddata hybriddatamanager Hyperdrive Hypernet +hyperparameters +hyperparams Hyperscale hyperv hypervcollectors @@ -920,6 +965,7 @@ IANA iata ICANN icao +Icelake ICMP Idempotence idempotency @@ -936,6 +982,7 @@ imagelists imagesearch IMDS immutabilitypolicy +Importances importcollectors importdevices Inbuild @@ -983,6 +1030,7 @@ ipconfig ipconfiguration ipconfigurations ipfilterrules +IPFIX ipgroups ipos Ipsec @@ -1034,12 +1082,15 @@ Kashubian kbId Kbps KECA +KEDA +Keda +keda kernelspec keyname Keyschannel keyspace keyspaces -keytab +Keytab Keyvault keyvaultproperties keyvaulturi @@ -1056,6 +1107,7 @@ koreacentral koreasouth Kpis Kraaij +Kratos Krustlet Ksettings kstem @@ -1068,6 +1120,7 @@ Kubelet kubelogin kubenet kubernetes +KubeVirt Kustomization kustomizations Kustomizations @@ -1084,6 +1137,7 @@ largefacelists largepersongroups lastfile lastmodified +LATAM Latn l'avion LDAP @@ -1104,6 +1158,7 @@ Liftr Linestring linkedservices linkexpiryinminutes +linkworkspaces LISTAFTERID listbackups listbyrg @@ -1141,8 +1196,11 @@ managedidentity loganalytics loggerid logio +logit +logits Logix lognormal +logprobs logprofiles loguniform Logz @@ -1151,6 +1209,7 @@ lookback lovins lowpriority lpar +LPIM LQUP LRO's Lucene @@ -1181,8 +1240,11 @@ managementpartner managementpolicy manualupgrade mapbox +mapconfiguration +mapconfigurations mapred mapreduce +Maputnik mariadb Marketo marketplaceagreementsapi @@ -1245,7 +1307,9 @@ mixedreality Mkdirs mktorest mlapi +mlflow mlFlowTrackingUri +mltable ML's mnist modelmanagement @@ -1282,12 +1346,15 @@ multiapi Multiclass MULTIJSON Multilabel +Multinomial multipart multipoint multipoints Multiset multislot +multispeaker multistep +Multisubnet multivalued muxed muxer @@ -1296,6 +1363,7 @@ muxing mware myanalytics myapp +myaudio myblobstore mydevenvironment myexperiment @@ -1348,11 +1416,13 @@ newrelapp newssearch Newtonsoft nextlink +NFSauto Ngfw NICs nillable nist NLSTEXT +NMAE noaccess noaction noartifactsource @@ -1383,6 +1453,7 @@ notstarted notstrict nouploadcache nowcasts +NRMSE n'recognition nsdname NSGs @@ -1395,6 +1466,7 @@ numa numofmessages numrecords nvarchar +NVME Nynorsk nysiis OAEP @@ -1418,6 +1490,7 @@ ondemandgc onedeploy onmachine omex +Omnichannel onmicrosoft ONNX Onprem @@ -1426,6 +1499,7 @@ onpremises ONVIF oobe Oozie +openai openapi openbsd opencode @@ -1447,6 +1521,7 @@ Optimisers optionalbody optmem Optmem +organisation originpath Orignal osdisk @@ -1501,6 +1576,7 @@ persongroups PFSMM Phonetik phplogging +phpworkloads phraselist phraselists Pids @@ -1709,6 +1785,7 @@ reprovisions reranker Reranker Reregister +resnest Rescan reseller reservationorders @@ -1754,6 +1831,7 @@ RIRs rmem Rmem rmpl +RMSE Rolledback Rollforward rollouts @@ -1767,6 +1845,7 @@ routable routingendpointhealth rpki RPKI +rpmsg rpns RSAES RSASSA @@ -1837,6 +1916,7 @@ securitydomainuploadoperation securityinsight seealso Seleted +seresnext serialconsole servercollectors servererror @@ -1898,6 +1978,7 @@ skillsets skiptoken sklearn skus +SKU SKU's SLES Sllb @@ -1914,6 +1995,7 @@ snapshotsdr snaptshot SNAT SNMP +Sobol softwareplan SOHSV solaris @@ -1939,6 +2021,7 @@ SPDX specversion speechservicesmanagement speechtotext +splitAllCSVs SQLAG sqldatabase SQLDB @@ -1950,6 +2033,7 @@ Sqlpools SQLRDS sqlvirtualmachine sqlvm +Sqlvms Sqoop SSDZRS SSIS @@ -1985,9 +2069,11 @@ storageaccount storageaccounts storagedatalake storageimportexport +storagesku storagesources storagesync storagetarget +storagetargetinfo storageuri storsimple streamanalytics @@ -2010,6 +2096,7 @@ sublists submount subnames subnet +subnetid subnetname subnets subnet's @@ -2049,6 +2136,7 @@ swedensouth switchprotection switzerlandnorth switzerlandwest +synapselink Sybase Syncer syncfunctiontriggers @@ -2109,6 +2197,7 @@ Tful Tfvc tilejson tileset +tilesetconfiguration tilesets timeasc timedesc @@ -2232,9 +2321,11 @@ updatepolicy updateprivateendpointconnection updateproperties updation +upgradegraph upgradeos uploadbatchservicelogs uploadcertificate +uploadsessions upns upsell Upsert @@ -2267,6 +2358,7 @@ Vcore Vcores VCPU vcsa +Vectorizer versionid Vertica Vfyc @@ -2280,6 +2372,8 @@ virtualmachine virtualmachineimagebuilder virtualmachines virtualnetworkgateways +virtualnetworkgatewaypolicygroups +vngclientconnectionconfigurations virtualnetworkrules virtualnetworks Virtustream @@ -2294,6 +2388,7 @@ Vldb vmextension VMILR vmimage +vmimages vmname VMOS vmotion @@ -2311,6 +2406,13 @@ vnetid Vnets voip Volapük +volume +volumes +volumename +volumesize +volumegroup +volumegroupname +volumegroups Vpnclient vpnconfiguration vpndeviceconfigurationscript @@ -2381,6 +2483,7 @@ workbooktemplates Workernode workitemsource workloadmonitor +workspace workspaces workspace's wrapkey @@ -2417,6 +2520,10 @@ relationshipdef structdef typedefs testfailover +tmpfs +Tmpfs +npipe +nocopy Orignal Onprem targetv @@ -2517,12 +2624,122 @@ Vuln IAASVM Quickbase Smartsheet +valn +adamw +hflip +nesterov +yolo +CUDA +xlarge +Sobol +Seasonality +autosave +Wargs +featurizers +Spearman's Qualys +primingjob +primingjobid +operatorconnect servermetrics +getent +useraccount +businessmetadata +usermetadata +Relaytype +Deboards +Deregisters Dataworld Asana AppFigures Twilio getazresiliencystatus -authtoken -eventstream \ No newline at end of file +providerport +spaceallocationparameter +cadl +unassignment +unassign +Unassigns +enrollmentgroups +scheduledjobs +getdevices +Umodeled +unmodeled +getx +setx +verifyx +removex +generateverificationcodex +favorited +datawarehousequeries +Dataware +SIMIDs +ICCID +unversioned +RANs +azuresqldbkeyrotation +DBCMK +DTCs +Angika +Awadhi +Bagheli +Balkar +Bhojpuri +Bodo +Brajbha +Bundeli +Chamling +Chhattisgarhi +Dari +Devanagiri +Dhimal +Dogri +Erzya +Faroese +Frulian +Gagauz +Gurung +Halbi +Haryanvi +Inari +Jaunsari +K'iche +Kangri +Karachay +Khaling +Korku +Koryak +Kosraean +Kumyk +Kurukh +Lule +Mahasu +Malto +Niuean +Nogay +Sadri +Sami +Santali +Sirmauri +Skolt +Thangmi +Tuvan +Uyghur +occured +Occured +Paramter +Spza +metallb +kubevirt +vmip +xlargerc +largerc +mediumrc +smallrc +Autotune +Showmount +autogrid +KubeProxyConfig +IPVS +TCPFIN +taginheritance diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/AuthConfigs.json index 3bbe8e1d6082..a8359454e10b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/AuthConfigs.json @@ -121,7 +121,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Create or update the AuthConfig for a Container App.", - "description": "Description for Create or update the AuthConfig for a Container App.", + "description": "Create or update the AuthConfig for a Container App.", "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate", "parameters": [ { @@ -182,7 +182,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Delete a Container App AuthConfig.", - "description": "Description for Delete a Container App AuthConfig.", + "description": "Delete a Container App AuthConfig.", "operationId": "ContainerAppsAuthConfigs_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json index 4f5698f87d16..382c410d016e 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json @@ -150,7 +150,7 @@ "ContainerApps" ], "summary": "Create or update a Container App.", - "description": "Description for Create or update a Container App.", + "description": "Create or update a Container App.", "operationId": "ContainerApps_CreateOrUpdate", "parameters": [ { @@ -211,7 +211,7 @@ "ContainerApps" ], "summary": "Delete a Container App.", - "description": "Description for Delete a Container App.", + "description": "Delete a Container App.", "operationId": "ContainerApps_Delete", "parameters": [ { @@ -358,6 +358,9 @@ "x-ms-examples": { "Analyze Custom Hostname": { "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysis.json" + }, + "Analyse Custom Hostname Error Response": { + "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json" } } } @@ -763,94 +766,129 @@ "CustomHostnameAnalysisResult": { "description": "Custom domain analysis.", "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], "properties": { - "properties": { - "description": "CustomHostnameAnalysisResult resource specific properties", + "hostName": { + "description": "Host name that was analyzed", + "type": "string", + "readOnly": true + }, + "isHostnameAlreadyVerified": { + "description": "true if hostname is already verified; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "customDomainVerificationTest": { + "description": "DNS verification test result.", + "enum": [ + "Passed", + "Failed", + "Skipped" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DnsVerificationTestResult", + "modelAsString": false + } + }, + "customDomainVerificationFailureInfo": { + "description": "Raw failure information if DNS verification fails.", "type": "object", "properties": { - "hostName": { - "description": "Host name that was analyzed", + "code": { + "description": "Standardized string to programmatically identify the error.", "type": "string", "readOnly": true }, - "isHostnameAlreadyVerified": { - "description": "true if hostname is already verified; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "customDomainVerificationTest": { - "description": "DNS verification test result.", - "enum": [ - "Passed", - "Failed", - "Skipped" - ], + "message": { + "description": "Detailed error description and debugging information.", "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "DnsVerificationTestResult", - "modelAsString": false - } - }, - "customDomainVerificationFailureInfo": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse", - "description": "Raw failure information if DNS verification fails.", - "readOnly": true - }, - "hasConflictOnManagedEnvironment": { - "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", - "type": "boolean", "readOnly": true }, - "conflictingContainerAppResourceId": { - "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "target": { + "description": "Detailed error description and debugging information.", "type": "string", "readOnly": true }, - "cNameRecords": { - "description": "CName records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "txtRecords": { - "description": "TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "aRecords": { - "description": "A records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateCNameRecords": { - "description": "Alternate CName records visible for this hostname.", + "details": { "type": "array", + "description": "Details or the error", "items": { - "type": "string" - } - }, - "alternateTxtRecords": { - "description": "Alternate TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } + "description": "Detailed errors.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, + "x-ms-identifiers": [ + "code" + ] } }, - "x-ms-client-flatten": true + "readOnly": true + }, + "hasConflictOnManagedEnvironment": { + "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "conflictingContainerAppResourceId": { + "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "type": "string", + "readOnly": true + }, + "cNameRecords": { + "description": "CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "txtRecords": { + "description": "TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "aRecords": { + "description": "A records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateCNameRecords": { + "description": "Alternate CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateTxtRecords": { + "description": "Alternate TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } } - } + }, + "x-ms-client-flatten": true } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json index d9445cf3cde8..72f8b693e794 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json @@ -139,7 +139,7 @@ "ContainerAppsSourceControls" ], "summary": "Create or update the SourceControl for a Container App.", - "description": "Description for Create or update the SourceControl for a Container App.", + "description": "Create or update the SourceControl for a Container App.", "operationId": "ContainerAppsSourceControls_CreateOrUpdate", "parameters": [ { @@ -207,7 +207,7 @@ "ContainerAppsSourceControls" ], "summary": "Delete a Container App SourceControl.", - "description": "Description for Delete a Container App SourceControl.", + "description": "Delete a Container App SourceControl.", "operationId": "ContainerAppsSourceControls_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_CreateOrUpdate.json index 07bc10b63a27..578a8279a5e3 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_CreateOrUpdate.json @@ -17,12 +17,12 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Get.json index eb8e38e7f2c5..b06769ed4054 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Get.json @@ -10,13 +10,13 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "name": "certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_ListByManagedEnvironment.json index 7c6b2f990233..65a04e35d361 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_ListByManagedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_ListByManagedEnvironment.json @@ -11,13 +11,13 @@ "body": { "value": [ { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "name": "certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", @@ -26,13 +26,13 @@ } }, { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "name": "certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_Patch.json index 43ab98b79927..350f012bb73c 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_Patch.json @@ -16,7 +16,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "tags": { @@ -25,7 +25,7 @@ }, "properties": { "provisioningState": "Succeeded", - "subjectName": "my-subject-name.company.country.net", + "subjectName": "my-subject-name.contoso.com", "issuer": "Issuer Name", "issueDate": "2021-11-06T04:00:00Z", "expirationDate": "2022-11-06T04:00:00Z", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json index 21f55a593221..9b5cafea5e1f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -10,35 +10,32 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "properties": { - "hostName": "my.name.corp", - "isHostnameAlreadyVerified": true, - "customDomainVerificationTest": "Passed", - "customDomainVerificationFailureInfo": {}, - "hasConflictOnManagedEnvironment": false, - "conflictingContainerAppResourceId": "", - "cNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "txtRecords": [ - "txtRecord1", - "txtRecord2" - ], - "aRecords": [ - "aRecord1", - "aRecord2" - ], - "alternateCNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "alternateTxtRecords": [ - "txtRecord1", - "txtRecord2" - ] - } + "hostName": "my.name.corp", + "isHostnameAlreadyVerified": true, + "customDomainVerificationTest": "Passed", + "customDomainVerificationFailureInfo": {}, + "hasConflictOnManagedEnvironment": false, + "conflictingContainerAppResourceId": "", + "cNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "txtRecords": [ + "txtRecord1", + "txtRecord2" + ], + "aRecords": [ + "aRecord1", + "aRecord2" + ], + "alternateCNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "alternateTxtRecords": [ + "txtRecord1", + "txtRecord2" + ] } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json new file mode 100644 index 000000000000..77180aa3287c --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "customHostname": "my.name.corp", + "api-version": "2022-01-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "isHostnameAlreadyVerified": false, + "customDomainVerificationTest": "Failed", + "customDomainVerificationFailureInfo": { + "code": "InvalidCustomHostNameValidation", + "message": "A TXT record pointing from my.name.corp to AF365AD7C598B96CFCB1EA1A803A44A8F861436767173A251F6E9B7027FF078E was not found." + }, + "hasConflictOnManagedEnvironment": false, + "cNameRecords": [], + "txtRecords": [ + "652modgx8o8y2t0ahxci" + ], + "aRecords": [ + "40.112.243.18" + ], + "alternateTxtRecords": [ + "7301B614D78FC456A5F1F9002CF1A31B6116D7AC5DEDC128C5DE6CCC90F3BE1C" + ] + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json index 649e44aede95..fe2778d99051 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json @@ -121,7 +121,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Create or update the AuthConfig for a Container App.", - "description": "Description for Create or update the AuthConfig for a Container App.", + "description": "Create or update the AuthConfig for a Container App.", "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate", "parameters": [ { @@ -182,7 +182,7 @@ "ContainerAppsAuthConfigs" ], "summary": "Delete a Container App AuthConfig.", - "description": "Description for Delete a Container App AuthConfig.", + "description": "Delete a Container App AuthConfig.", "operationId": "ContainerAppsAuthConfigs_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json index eae776b03f71..fd77bfd70094 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json @@ -150,7 +150,7 @@ "ContainerApps" ], "summary": "Create or update a Container App.", - "description": "Description for Create or update a Container App.", + "description": "Create or update a Container App.", "operationId": "ContainerApps_CreateOrUpdate", "parameters": [ { @@ -211,7 +211,7 @@ "ContainerApps" ], "summary": "Delete a Container App.", - "description": "Description for Delete a Container App.", + "description": "Delete a Container App.", "operationId": "ContainerApps_Delete", "parameters": [ { @@ -356,6 +356,9 @@ "x-ms-examples": { "Analyze Custom Hostname": { "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysis.json" + }, + "Analyse Custom Hostname Error Response": { + "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json" } } } @@ -756,94 +759,129 @@ "CustomHostnameAnalysisResult": { "description": "Custom domain analysis.", "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], "properties": { - "properties": { - "description": "CustomHostnameAnalysisResult resource specific properties", + "hostName": { + "description": "Host name that was analyzed", + "type": "string", + "readOnly": true + }, + "isHostnameAlreadyVerified": { + "description": "true if hostname is already verified; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "customDomainVerificationTest": { + "description": "DNS verification test result.", + "enum": [ + "Passed", + "Failed", + "Skipped" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DnsVerificationTestResult", + "modelAsString": false + } + }, + "customDomainVerificationFailureInfo": { + "description": "Raw failure information if DNS verification fails.", "type": "object", "properties": { - "hostName": { - "description": "Host name that was analyzed", + "code": { + "description": "Standardized string to programmatically identify the error.", "type": "string", "readOnly": true }, - "isHostnameAlreadyVerified": { - "description": "true if hostname is already verified; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "customDomainVerificationTest": { - "description": "DNS verification test result.", - "enum": [ - "Passed", - "Failed", - "Skipped" - ], + "message": { + "description": "Detailed error description and debugging information.", "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "DnsVerificationTestResult", - "modelAsString": false - } - }, - "customDomainVerificationFailureInfo": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse", - "description": "Raw failure information if DNS verification fails.", - "readOnly": true - }, - "hasConflictOnManagedEnvironment": { - "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", - "type": "boolean", "readOnly": true }, - "conflictingContainerAppResourceId": { - "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "target": { + "description": "Detailed error description and debugging information.", "type": "string", "readOnly": true }, - "cNameRecords": { - "description": "CName records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "txtRecords": { - "description": "TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "aRecords": { - "description": "A records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateCNameRecords": { - "description": "Alternate CName records visible for this hostname.", + "details": { "type": "array", + "description": "Details or the error", "items": { - "type": "string" - } - }, - "alternateTxtRecords": { - "description": "Alternate TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } + "description": "Detailed errors.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, + "x-ms-identifiers": [ + "code" + ] } }, - "x-ms-client-flatten": true + "readOnly": true + }, + "hasConflictOnManagedEnvironment": { + "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "conflictingContainerAppResourceId": { + "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "type": "string", + "readOnly": true + }, + "cNameRecords": { + "description": "CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "txtRecords": { + "description": "TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "aRecords": { + "description": "A records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateCNameRecords": { + "description": "Alternate CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateTxtRecords": { + "description": "Alternate TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } } - } + }, + "x-ms-client-flatten": true } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json index b710ae2f9898..bd41835676ba 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json @@ -139,7 +139,7 @@ "ContainerAppsSourceControls" ], "summary": "Create or update the SourceControl for a Container App.", - "description": "Description for Create or update the SourceControl for a Container App.", + "description": "Create or update the SourceControl for a Container App.", "operationId": "ContainerAppsSourceControls_CreateOrUpdate", "parameters": [ { @@ -183,7 +183,7 @@ } }, "201": { - "description": "Created.", + "description": "Created", "schema": { "$ref": "#/definitions/SourceControl" } @@ -207,7 +207,7 @@ "ContainerAppsSourceControls" ], "summary": "Delete a Container App SourceControl.", - "description": "Description for Delete a Container App SourceControl.", + "description": "Delete a Container App SourceControl.", "operationId": "ContainerAppsSourceControls_Delete", "parameters": [ { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json index d2dc08b9ea8b..54c13697695e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json @@ -17,7 +17,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "properties": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json index 8d134c8e670e..0046da0f92f7 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json @@ -10,7 +10,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "name": "certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json index d1be7f76c5c1..a9cf667a8a15 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json @@ -11,7 +11,7 @@ "body": { "value": [ { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name1", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name1", "name": "certificate-firendly-name1", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", @@ -26,7 +26,7 @@ } }, { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name2", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name2", "name": "certificate-firendly-name2", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json index 94a889785114..e73a6378bb1d 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json @@ -16,7 +16,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-firendly-name", "type": "Microsoft.App/ManagedEnvironments/Certificates", "location": "East US", "tags": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json index dd86259c50cf..7a31ac351009 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -10,35 +10,32 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "properties": { - "hostName": "my.name.corp", - "isHostnameAlreadyVerified": true, - "customDomainVerificationTest": "Passed", - "customDomainVerificationFailureInfo": {}, - "hasConflictOnManagedEnvironment": false, - "conflictingContainerAppResourceId": "", - "cNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "txtRecords": [ - "txtRecord1", - "txtRecord2" - ], - "aRecords": [ - "aRecord1", - "aRecord2" - ], - "alternateCNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "alternateTxtRecords": [ - "txtRecord1", - "txtRecord2" - ] - } + "hostName": "my.name.corp", + "isHostnameAlreadyVerified": true, + "customDomainVerificationTest": "Passed", + "customDomainVerificationFailureInfo": {}, + "hasConflictOnManagedEnvironment": false, + "conflictingContainerAppResourceId": "", + "cNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "txtRecords": [ + "txtRecord1", + "txtRecord2" + ], + "aRecords": [ + "aRecord1", + "aRecord2" + ], + "alternateCNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "alternateTxtRecords": [ + "txtRecord1", + "txtRecord2" + ] } } } diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json new file mode 100644 index 000000000000..304bf1a1fa56 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testcontainerApp0", + "customHostname": "my.name.corp", + "api-version": "2022-03-03" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "isHostnameAlreadyVerified": false, + "customDomainVerificationTest": "Failed", + "customDomainVerificationFailureInfo": { + "code": "InvalidCustomHostNameValidation", + "message": "A TXT record pointing from my.name.corp to AF365AD7C598B96CFCB1EA1A803A44A8F861436767173A251F6E9B7027FF078E was not found." + }, + "hasConflictOnManagedEnvironment": false, + "cNameRecords": [], + "txtRecords": [ + "652modgx8o8y2t0ahxci" + ], + "aRecords": [ + "40.112.243.18" + ], + "alternateTxtRecords": [ + "7301B614D78FC456A5F1F9002CF1A31B6116D7AC5DEDC128C5DE6CCC90F3BE1C" + ] + } + } + } +}