Dela via


ContainerInstanceExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.ContainerInstance.

public static class ContainerInstanceExtensions
type ContainerInstanceExtensions = class
Public Module ContainerInstanceExtensions
Inheritance
ContainerInstanceExtensions

Methods

DeleteSubnetServiceAssociationLink(ResourceGroupResource, WaitUntil, String, String, CancellationToken)

Delete container group virtual network association links. The operation does not delete other resources provided by the user.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default
  • Operation Id: SubnetServiceAssociationLink_Delete
  • Default Api Version: 2024-05-01-preview
DeleteSubnetServiceAssociationLinkAsync(ResourceGroupResource, WaitUntil, String, String, CancellationToken)

Delete container group virtual network association links. The operation does not delete other resources provided by the user.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default
  • Operation Id: SubnetServiceAssociationLink_Delete
  • Default Api Version: 2024-05-01-preview
GetCachedImagesWithLocation(SubscriptionResource, AzureLocation, CancellationToken)

Get the list of cached images on specific OS type for a subscription in a region.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages
  • Operation Id: Location_ListCachedImages
  • Default Api Version: 2024-05-01-preview
GetCachedImagesWithLocationAsync(SubscriptionResource, AzureLocation, CancellationToken)

Get the list of cached images on specific OS type for a subscription in a region.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages
  • Operation Id: Location_ListCachedImages
  • Default Api Version: 2024-05-01-preview
GetCapabilitiesWithLocation(SubscriptionResource, AzureLocation, CancellationToken)

Get the list of CPU/memory/GPU capabilities of a region.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities
  • Operation Id: Location_ListCapabilities
  • Default Api Version: 2024-05-01-preview
GetCapabilitiesWithLocationAsync(SubscriptionResource, AzureLocation, CancellationToken)

Get the list of CPU/memory/GPU capabilities of a region.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities
  • Operation Id: Location_ListCapabilities
  • Default Api Version: 2024-05-01-preview
GetContainerGroup(ResourceGroupResource, String, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
  • Operation Id: ContainerGroups_Get
  • Default Api Version: 2024-05-01-preview
  • Resource: ContainerGroupResource
GetContainerGroupAsync(ResourceGroupResource, String, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
  • Operation Id: ContainerGroups_Get
  • Default Api Version: 2024-05-01-preview
  • Resource: ContainerGroupResource
GetContainerGroupProfile(ResourceGroupResource, String, CancellationToken)

Gets the properties of the specified container group profile in the specified subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
  • Operation Id: ContainerGroupProfiles_Get
  • Default Api Version: 2024-05-01-preview
  • Resource: ContainerGroupProfileResource
GetContainerGroupProfileAsync(ResourceGroupResource, String, CancellationToken)

Gets the properties of the specified container group profile in the specified subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
  • Operation Id: ContainerGroupProfiles_Get
  • Default Api Version: 2024-05-01-preview
  • Resource: ContainerGroupProfileResource
GetContainerGroupProfileResource(ArmClient, ResourceIdentifier)

Gets an object representing a ContainerGroupProfileResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a ContainerGroupProfileResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetContainerGroupProfileResource(ResourceIdentifier) instead.

GetContainerGroupProfileRevisionResource(ArmClient, ResourceIdentifier)

Gets an object representing a ContainerGroupProfileRevisionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a ContainerGroupProfileRevisionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetContainerGroupProfileRevisionResource(ResourceIdentifier) instead.

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles
  • Operation Id: ContainerGroupProfiles_List
  • Default Api Version: 2024-05-01-preview
  • Resource: ContainerGroupProfileResource
GetContainerGroupProfilesAsync(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
GetContainerGroupResource(ArmClient, ResourceIdentifier)

Gets an object representing a ContainerGroupResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a ContainerGroupResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetContainerGroupResource(ResourceIdentifier) instead.

GetContainerGroups(ResourceGroupResource)

Gets a collection of ContainerGroupResources in the ResourceGroupResource. MockingTo mock this method, please mock GetContainerGroups() instead.

GetContainerGroups(SubscriptionResource, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups
  • Operation Id: ContainerGroups_List
  • Default Api Version: 2024-05-01-preview
  • Resource: ContainerGroupResource
GetContainerGroupsAsync(SubscriptionResource, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups
  • Operation Id: ContainerGroups_List
  • Default Api Version: 2024-05-01-preview
  • Resource: ContainerGroupResource
GetUsagesWithLocation(SubscriptionResource, AzureLocation, CancellationToken)

Get the usage for a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages
  • Operation Id: Location_ListUsage
  • Default Api Version: 2024-05-01-preview
GetUsagesWithLocationAsync(SubscriptionResource, AzureLocation, CancellationToken)

Get the usage for a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages
  • Operation Id: Location_ListUsage
  • Default Api Version: 2024-05-01-preview

Applies to