ContainerInstanceExtensions.GetContainerGroupProfiles Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetContainerGroupProfiles(ResourceGroupResource) |
Gets a collection of ContainerGroupProfileResources in the ResourceGroupResource. MockingTo mock this method, please mock GetContainerGroupProfiles() instead. |
GetContainerGroupProfiles(SubscriptionResource, CancellationToken) |
Get a list of container group profiles in the specified subscription. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current revision number, etc.
|
GetContainerGroupProfiles(ResourceGroupResource)
Gets a collection of ContainerGroupProfileResources in the ResourceGroupResource. MockingTo mock this method, please mock GetContainerGroupProfiles() instead.
public static Azure.ResourceManager.ContainerInstance.ContainerGroupProfileCollection GetContainerGroupProfiles (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetContainerGroupProfiles : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ContainerInstance.ContainerGroupProfileCollection
<Extension()>
Public Function GetContainerGroupProfiles (resourceGroupResource As ResourceGroupResource) As ContainerGroupProfileCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of ContainerGroupProfileResources and their operations over a ContainerGroupProfileResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetContainerGroupProfiles(SubscriptionResource, CancellationToken)
Get a list of container group profiles in the specified subscription. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current revision number, etc.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles
- Operation Id: ContainerGroupProfiles_List
- Default Api Version: 2024-05-01-preview
- Resource: ContainerGroupProfileResource
public static Azure.Pageable<Azure.ResourceManager.ContainerInstance.ContainerGroupProfileResource> GetContainerGroupProfiles (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetContainerGroupProfiles : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ContainerInstance.ContainerGroupProfileResource>
<Extension()>
Public Function GetContainerGroupProfiles (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ContainerGroupProfileResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ContainerGroupProfileResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET