Interface ContainerGroupsClient

    • Method Detail

      • listAsync

        com.azure.core.http.rest.PagedFlux<ContainerGroupInner> listAsync()
        Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Specified by:
        listAsync in interface InnerSupportsListing<ContainerGroupInner>
        Returns:
        a list of container groups in the specified subscription.
        Throws:
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner> list()
        Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Specified by:
        list in interface InnerSupportsListing<ContainerGroupInner>
        Returns:
        a list of container groups in the specified subscription.
        Throws:
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner> list​(com.azure.core.util.Context context)
        Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        a list of container groups in the specified subscription.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<ContainerGroupInner> listByResourceGroupAsync​(String resourceGroupName)
        Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Specified by:
        listByResourceGroupAsync in interface InnerSupportsListing<ContainerGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        a list of container groups in a specified subscription and resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner> listByResourceGroup​(String resourceGroupName)
        Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Specified by:
        listByResourceGroup in interface InnerSupportsListing<ContainerGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        a list of container groups in a specified subscription and resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner> listByResourceGroup​(String resourceGroupName,
                                                                                        com.azure.core.util.Context context)
        Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        a list of container groups in a specified subscription and resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ContainerGroupInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                         String containerGroupName)
        Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the properties of the specified container group in the specified subscription and resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<ContainerGroupInner> getByResourceGroupAsync​(String resourceGroupName,
                                                          String containerGroupName)
        Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Specified by:
        getByResourceGroupAsync in interface InnerSupportsGet<ContainerGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the properties of the specified container group in the specified subscription and resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroup

        ContainerGroupInner getByResourceGroup​(String resourceGroupName,
                                               String containerGroupName)
        Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Specified by:
        getByResourceGroup in interface InnerSupportsGet<ContainerGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the properties of the specified container group in the specified subscription and resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                              String containerGroupName,
                                                                                              com.azure.core.util.Context context)
        Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Returns:
        the properties of the specified container group in the specified subscription and resource group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String containerGroupName,
                                                                                                  ContainerGroupInner containerGroup)
        Create or update container groups with specified configurations.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        containerGroup - The properties of the container group to be created or updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ContainerGroupInner>,​ContainerGroupInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                     String containerGroupName,
                                                                                                                                                                     ContainerGroupInner containerGroup)
        Create or update container groups with specified configurations.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        containerGroup - The properties of the container group to be created or updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner>,​ContainerGroupInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String containerGroupName,
                                                                                                                                                                ContainerGroupInner containerGroup)
        Create or update container groups with specified configurations.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        containerGroup - The properties of the container group to be created or updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner>,​ContainerGroupInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                String containerGroupName,
                                                                                                                                                                ContainerGroupInner containerGroup,
                                                                                                                                                                com.azure.core.util.Context context)
        Create or update container groups with specified configurations.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        containerGroup - The properties of the container group to be created or updated.
        context - The context to associate with this operation.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<ContainerGroupInner> createOrUpdateAsync​(String resourceGroupName,
                                                      String containerGroupName,
                                                      ContainerGroupInner containerGroup)
        Create or update container groups with specified configurations.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        containerGroup - The properties of the container group to be created or updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        ContainerGroupInner createOrUpdate​(String resourceGroupName,
                                           String containerGroupName,
                                           ContainerGroupInner containerGroup)
        Create or update container groups with specified configurations.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        containerGroup - The properties of the container group to be created or updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        ContainerGroupInner createOrUpdate​(String resourceGroupName,
                                           String containerGroupName,
                                           ContainerGroupInner containerGroup,
                                           com.azure.core.util.Context context)
        Create or update container groups with specified configurations.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        containerGroup - The properties of the container group to be created or updated.
        context - The context to associate with this operation.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ContainerGroupInner>> updateWithResponseAsync​(String resourceGroupName,
                                                                                             String containerGroupName,
                                                                                             com.azure.core.management.Resource resource)
        Updates container group tags with specified values.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        resource - The container group resource with just the tags to be updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateAsync

        Mono<ContainerGroupInner> updateAsync​(String resourceGroupName,
                                              String containerGroupName,
                                              com.azure.core.management.Resource resource)
        Updates container group tags with specified values.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        resource - The container group resource with just the tags to be updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        ContainerGroupInner update​(String resourceGroupName,
                                   String containerGroupName,
                                   com.azure.core.management.Resource resource)
        Updates container group tags with specified values.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        resource - The container group resource with just the tags to be updated.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateWithResponse

        com.azure.core.http.rest.Response<ContainerGroupInner> updateWithResponse​(String resourceGroupName,
                                                                                  String containerGroupName,
                                                                                  com.azure.core.management.Resource resource,
                                                                                  com.azure.core.util.Context context)
        Updates container group tags with specified values.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        resource - The container group resource with just the tags to be updated.
        context - The context to associate with this operation.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String containerGroupName)
        Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ContainerGroupInner>,​ContainerGroupInner> beginDeleteAsync​(String resourceGroupName,
                                                                                                                                                             String containerGroupName)
        Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner>,​ContainerGroupInner> beginDelete​(String resourceGroupName,
                                                                                                                                                        String containerGroupName)
        Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<ContainerGroupInner>,​ContainerGroupInner> beginDelete​(String resourceGroupName,
                                                                                                                                                        String containerGroupName,
                                                                                                                                                        com.azure.core.util.Context context)
        Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAsync

        Mono<ContainerGroupInner> deleteAsync​(String resourceGroupName,
                                              String containerGroupName)
        Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<ContainerGroupInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        ContainerGroupInner delete​(String resourceGroupName,
                                   String containerGroupName)
        Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        ContainerGroupInner delete​(String resourceGroupName,
                                   String containerGroupName,
                                   com.azure.core.util.Context context)
        Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Returns:
        a container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restartWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync​(String resourceGroupName,
                                                                                           String containerGroupName)
        Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginRestartAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginRestartAsync​(String resourceGroupName,
                                                                                                                                String containerGroupName)
        Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginRestart

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRestart​(String resourceGroupName,
                                                                                                                           String containerGroupName)
        Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginRestart

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRestart​(String resourceGroupName,
                                                                                                                           String containerGroupName,
                                                                                                                           com.azure.core.util.Context context)
        Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restartAsync

        Mono<Void> restartAsync​(String resourceGroupName,
                                String containerGroupName)
        Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restart

        void restart​(String resourceGroupName,
                     String containerGroupName)
        Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restart

        void restart​(String resourceGroupName,
                     String containerGroupName,
                     com.azure.core.util.Context context)
        Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> stopWithResponseAsync​(String resourceGroupName,
                                                                            String containerGroupName)
        Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopAsync

        Mono<Void> stopAsync​(String resourceGroupName,
                             String containerGroupName)
        Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stop

        void stop​(String resourceGroupName,
                  String containerGroupName)
        Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopWithResponse

        com.azure.core.http.rest.Response<Void> stopWithResponse​(String resourceGroupName,
                                                                 String containerGroupName,
                                                                 com.azure.core.util.Context context)
        Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync​(String resourceGroupName,
                                                                                         String containerGroupName)
        Starts all containers in a container group. Compute resources will be allocated and billing will start.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStartAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginStartAsync​(String resourceGroupName,
                                                                                                                              String containerGroupName)
        Starts all containers in a container group. Compute resources will be allocated and billing will start.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<Void>,​Void> beginStart​(String resourceGroupName,
                                                                                                                         String containerGroupName)
        Starts all containers in a container group. Compute resources will be allocated and billing will start.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - 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<Void>,​Void> beginStart​(String resourceGroupName,
                                                                                                                         String containerGroupName,
                                                                                                                         com.azure.core.util.Context context)
        Starts all containers in a container group. Compute resources will be allocated and billing will start.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startAsync

        Mono<Void> startAsync​(String resourceGroupName,
                              String containerGroupName)
        Starts all containers in a container group. Compute resources will be allocated and billing will start.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • start

        void start​(String resourceGroupName,
                   String containerGroupName)
        Starts all containers in a container group. Compute resources will be allocated and billing will start.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • start

        void start​(String resourceGroupName,
                   String containerGroupName,
                   com.azure.core.util.Context context)
        Starts all containers in a container group. Compute resources will be allocated and billing will start.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getOutboundNetworkDependenciesEndpointsWithResponseAsync

        Mono<com.azure.core.http.rest.Response<List<String>>> getOutboundNetworkDependenciesEndpointsWithResponseAsync​(String resourceGroupName,
                                                                                                                       String containerGroupName)
        Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        all the network dependencies for this container group to allow complete control of network setting and configuration.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getOutboundNetworkDependenciesEndpointsAsync

        Mono<List<String>> getOutboundNetworkDependenciesEndpointsAsync​(String resourceGroupName,
                                                                        String containerGroupName)
        Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        all the network dependencies for this container group to allow complete control of network setting and configuration.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getOutboundNetworkDependenciesEndpoints

        List<String> getOutboundNetworkDependenciesEndpoints​(String resourceGroupName,
                                                             String containerGroupName)
        Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        Returns:
        all the network dependencies for this container group to allow complete control of network setting and configuration.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getOutboundNetworkDependenciesEndpointsWithResponse

        com.azure.core.http.rest.Response<List<String>> getOutboundNetworkDependenciesEndpointsWithResponse​(String resourceGroupName,
                                                                                                            String containerGroupName,
                                                                                                            com.azure.core.util.Context context)
        Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.
        Parameters:
        resourceGroupName - The name of the resource group.
        containerGroupName - The name of the container group.
        context - The context to associate with this operation.
        Returns:
        all the network dependencies for this container group to allow complete control of network setting and configuration.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.