{ "swagger": "2.0", "info": { "version": "2025-07-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": { "$ref": "./examples/ManagedEnvironmentsStorages_Get.json" }, "get a environments storage for NFS Azure file": { "$ref": "./examples/ManagedEnvironmentsStorages_Get_NfsAzureFile.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" } }, "201": { "description": "Created", "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" }, "Create or update environments storage for NFS Azure file": { "$ref": "./examples/ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.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": { "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/v5/types.json#/definitions/ProxyResource" } ], "properties": { "properties": { "description": "Storage properties", "type": "object", "properties": { "azureFile": { "$ref": "./CommonDefinitions.json#/definitions/AzureFileProperties", "description": "Azure file properties" }, "nfsAzureFile": { "$ref": "./CommonDefinitions.json#/definitions/NfsAzureFileProperties", "description": "NFS 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" ] } ] }