Interface ContainerAppsClient
public interface ContainerAppsClient
An instance of this class provides access to all the operations defined in ContainerAppsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> beginCreateOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Create or update a Container App.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> beginCreateOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Create or update a Container App.beginDelete(String resourceGroupName, String containerAppName) Delete a Container App.beginDelete(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Delete a Container App.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> beginStart(String resourceGroupName, String containerAppName) Start a container app.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> beginStart(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Start a container app.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> Stop a container app.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> Stop a container app.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> beginUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Update properties of a Container App Patches a Container App using JSON Merge Patch.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>, ContainerAppInner> beginUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Update properties of a Container App Patches a Container App using JSON Merge Patch.createOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Create or update a Container App.createOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Create or update a Container App.voidDelete a Container App.voidDelete a Container App.getAuthToken(String resourceGroupName, String containerAppName) Get auth token for a container app.com.azure.core.http.rest.Response<ContainerAppAuthTokenInner> getAuthTokenWithResponse(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Get auth token for a container app.getByResourceGroup(String resourceGroupName, String containerAppName) Get the properties of a Container App.com.azure.core.http.rest.Response<ContainerAppInner> getByResourceGroupWithResponse(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Get the properties of a Container App.com.azure.core.http.rest.PagedIterable<ContainerAppInner> list()Get the Container Apps in a given subscription.com.azure.core.http.rest.PagedIterable<ContainerAppInner> list(com.azure.core.util.Context context) Get the Container Apps in a given subscription.com.azure.core.http.rest.PagedIterable<ContainerAppInner> listByResourceGroup(String resourceGroupName) Get the Container Apps in a given resource group.com.azure.core.http.rest.PagedIterable<ContainerAppInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get the Container Apps in a given resource group.listCustomHostnameAnalysis(String resourceGroupName, String containerAppName) Analyzes a custom hostname for a Container App.com.azure.core.http.rest.Response<CustomHostnameAnalysisResultInner> listCustomHostnameAnalysisWithResponse(String resourceGroupName, String containerAppName, String customHostname, com.azure.core.util.Context context) Analyzes a custom hostname for a Container App.listSecrets(String resourceGroupName, String containerAppName) List secrets for a container app.com.azure.core.http.rest.Response<SecretsCollectionInner> listSecretsWithResponse(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) List secrets for a container app.Start a container app.Start a container app.Stop a container app.Stop a container app.update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Update properties of a Container App Patches a Container App using JSON Merge Patch.update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Update properties of a Container App Patches a Container App using JSON Merge Patch.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ContainerAppInner> list()Get the Container Apps in a given subscription.- Returns:
- the Container Apps in a given 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
Get the Container Apps in a given subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the Container Apps in a given 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<ContainerAppInner> listByResourceGroup(String resourceGroupName) Get the Container Apps in a given resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the Container Apps in a given 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<ContainerAppInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get the Container Apps in a given resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- the Container Apps in a given 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<ContainerAppInner> getByResourceGroupWithResponse(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Get the properties of a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- the properties of a Container App along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.DefaultErrorResponseErrorException- thrown if the request is rejected by server.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Get the properties of a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- the properties of a Container App.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.DefaultErrorResponseErrorException- thrown if the request is rejected by server.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginCreateOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Create or update a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties used to create a container app.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginCreateOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Create or update a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties used to create a container app.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
createOrUpdate
ContainerAppInner createOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Create or update a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties used to create a container app.- Returns:
- container App.
- 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.
-
createOrUpdate
ContainerAppInner createOrUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Create or update a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties used to create a container app.context- The context to associate with this operation.- Returns:
- container App.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String containerAppName) Delete a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Delete a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
delete
Delete a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- 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 Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Update properties of a Container App Patches a Container App using JSON Merge Patch.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties of a Container App that need to be updated.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginUpdate(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Update properties of a Container App Patches a Container App using JSON Merge Patch.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties of a Container App that need to be updated.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
update
ContainerAppInner update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) Update properties of a Container App Patches a Container App using JSON Merge Patch.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties of a Container App that need to be updated.- Returns:
- container App.
- 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.
-
update
ContainerAppInner update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, com.azure.core.util.Context context) Update properties of a Container App Patches a Container App using JSON Merge Patch.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.containerAppEnvelope- Properties of a Container App that need to be updated.context- The context to associate with this operation.- Returns:
- container App.
- 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.
-
listCustomHostnameAnalysisWithResponse
com.azure.core.http.rest.Response<CustomHostnameAnalysisResultInner> listCustomHostnameAnalysisWithResponse(String resourceGroupName, String containerAppName, String customHostname, com.azure.core.util.Context context) Analyzes a custom hostname for a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.customHostname- Custom hostname.context- The context to associate with this operation.- Returns:
- custom domain analysis 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.
-
listCustomHostnameAnalysis
CustomHostnameAnalysisResultInner listCustomHostnameAnalysis(String resourceGroupName, String containerAppName) Analyzes a custom hostname for a Container App.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- custom domain analysis.
- 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.
-
listSecretsWithResponse
com.azure.core.http.rest.Response<SecretsCollectionInner> listSecretsWithResponse(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) List secrets for a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- container App Secrets Collection ARM resource 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.
-
listSecrets
List secrets for a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- container App Secrets Collection ARM resource.
- 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<ContainerAppAuthTokenInner> getAuthTokenWithResponse(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Get auth token for a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- auth token for a container app along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.DefaultErrorResponseErrorException- thrown if the request is rejected by server.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAuthToken
Get auth token for a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- auth token for a container app.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.DefaultErrorResponseErrorException- thrown if the request is rejected by server.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server on status code 404.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginStart(String resourceGroupName, String containerAppName) Start a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginStart(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Start a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
start
Start a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- container App.
- 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.
-
start
ContainerAppInner start(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Start a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- container App.
- 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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginStop(String resourceGroupName, String containerAppName) Stop a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerAppInner>,ContainerAppInner> beginStop(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Stop a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of container App. - 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.
-
stop
Stop a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.- Returns:
- container App.
- 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.
-
stop
ContainerAppInner stop(String resourceGroupName, String containerAppName, com.azure.core.util.Context context) Stop a container app.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.containerAppName- Name of the Container App.context- The context to associate with this operation.- Returns:
- container App.
- 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.
-