Interface ManagedEnvironments
public interface ManagedEnvironments
Resource collection API of ManagedEnvironments.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ManagedEnvironment resource.void
Delete a Managed Environment.void
deleteById
(String id) Delete a Managed Environment.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a Managed Environment.void
deleteByResourceGroup
(String resourceGroupName, String environmentName) Delete a Managed Environment.getAuthToken
(String resourceGroupName, String environmentName) Get auth token for a managed environment Checks if resource name is available.com.azure.core.http.rest.Response
<EnvironmentAuthToken> getAuthTokenWithResponse
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get auth token for a managed environment Checks if resource name is available.Get the properties of a Managed Environment.com.azure.core.http.rest.Response
<ManagedEnvironment> getByIdWithResponse
(String id, com.azure.core.util.Context context) Get the properties of a Managed Environment.getByResourceGroup
(String resourceGroupName, String environmentName) Get the properties of a Managed Environment.com.azure.core.http.rest.Response
<ManagedEnvironment> getByResourceGroupWithResponse
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get the properties of a Managed Environment.com.azure.core.http.rest.PagedIterable
<ManagedEnvironment> list()
Get all Environments for a subscription.com.azure.core.http.rest.PagedIterable
<ManagedEnvironment> list
(com.azure.core.util.Context context) Get all Environments for a subscription.com.azure.core.http.rest.PagedIterable
<ManagedEnvironment> listByResourceGroup
(String resourceGroupName) Get all the Environments in a resource group.com.azure.core.http.rest.PagedIterable
<ManagedEnvironment> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Get all the Environments in a resource group.com.azure.core.http.rest.PagedIterable
<WorkloadProfileStates> listWorkloadProfileStates
(String resourceGroupName, String environmentName) Get all workload Profile States for a Managed Environment..com.azure.core.http.rest.PagedIterable
<WorkloadProfileStates> listWorkloadProfileStates
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get all workload Profile States for a Managed Environment..
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ManagedEnvironment> list()Get all Environments for a subscription. Get all Managed Environments for a subscription.- Returns:
- all Managed Environments for a subscription as paginated response with
PagedIterable
. - Throws:
DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ManagedEnvironment> list(com.azure.core.util.Context context) Get all Environments for a subscription. Get all Managed Environments for a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- all Managed Environments for a subscription as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ManagedEnvironment> listByResourceGroup(String resourceGroupName) Get all the Environments in a resource group. Get all the Managed Environments in a resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- all the Managed Environments in a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ManagedEnvironment> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get all the Environments in a resource group. Get all the Managed Environments in a resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- all the Managed Environments in a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ManagedEnvironment> getByResourceGroupWithResponse(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get the properties of a Managed Environment. Get the properties of a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.context
- The context to associate with this operation.- Returns:
- the properties of a Managed Environment used to host container apps along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Get the properties of a Managed Environment. Get the properties of a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.- Returns:
- the properties of a Managed Environment used to host container apps.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroup
Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getAuthTokenWithResponse
com.azure.core.http.rest.Response<EnvironmentAuthToken> getAuthTokenWithResponse(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get auth token for a managed environment Checks if resource name is available.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.context
- The context to associate with this operation.- Returns:
- environment Auth Token along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getAuthToken
Get auth token for a managed environment Checks if resource name is available.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.- Returns:
- environment Auth Token.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listWorkloadProfileStates
com.azure.core.http.rest.PagedIterable<WorkloadProfileStates> listWorkloadProfileStates(String resourceGroupName, String environmentName) Get all workload Profile States for a Managed Environment.. Get all workload Profile States for a Managed Environment.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.- Returns:
- all workload Profile States for a Managed Environment as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listWorkloadProfileStates
com.azure.core.http.rest.PagedIterable<WorkloadProfileStates> listWorkloadProfileStates(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get all workload Profile States for a Managed Environment.. Get all workload Profile States for a Managed Environment.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.context
- The context to associate with this operation.- Returns:
- all workload Profile States for a Managed Environment as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get the properties of a Managed Environment. Get the properties of a Managed Environment used to host container apps.- Parameters:
id
- the resource ID.- Returns:
- the properties of a Managed Environment used to host container apps along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<ManagedEnvironment> getByIdWithResponse(String id, com.azure.core.util.Context context) Get the properties of a Managed Environment. Get the properties of a Managed Environment used to host container apps.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the properties of a Managed Environment used to host container apps along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new ManagedEnvironment resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ManagedEnvironment definition.
-