ContainerGroup Interface
Implements
public interface ContainerGroup
extends GroupableResource<ContainerInstanceManager,ContainerGroupInner>, Refreshable<ContainerGroup>, Updatable<Update>
An immutable client-side representation of an Azure Container Group.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Container |
attachOutputStream(Container container)
Attaches to the output stream of a specific container instance in a specified container group. |
abstract
Container |
attachOutputStream(String containerName)
Attaches to the output stream of a specific container instance in a specified container group. |
abstract
Mono<Container |
attachOutputStreamAsync(Container container)
Attaches to the output stream of a specific container instance in a specified container group. |
abstract
Mono<Container |
attachOutputStreamAsync(String containerName)
Attaches to the output stream of a specific container instance in a specified container group. |
abstract
Dns |
autoGeneratedDomainNameLabelScope()
Gets the reuse policy of DNS name label for the container group. |
abstract Map<String,Container> | containers() |
abstract
Dns |
dnsConfig() |
abstract String | dnsPrefix() |
abstract Set<Event> | events() |
abstract
Container |
executeCommand(String containerName, String command, int row, int column)
Starts the exec command for a specific container instance. |
abstract
Mono<Container |
executeCommandAsync(String containerName, String command, int row, int column)
Starts the exec command for a specific container instance within the container group. |
abstract Set<Port> | externalPorts() |
abstract int[] | externalTcpPorts() |
abstract int[] | externalUdpPorts() |
abstract String | fqdn() |
abstract String |
getLogContent(String containerName)
Get the log content for the specified container instance within the container group. |
abstract String |
getLogContent(String containerName, int tailLineCount)
Get the log content for the specified container instance within the container group. |
abstract Mono<String> |
getLogContentAsync(String containerName)
Get the log content for the specified container instance within the container group. |
abstract Mono<String> |
getLogContentAsync(String containerName, int tailLineCount)
Get the log content for the specified container instance within the container group. |
abstract Collection<String> | imageRegistryServers() |
abstract String | ipAddress() |
abstract boolean | isIPAddressPrivate() |
abstract boolean | isIPAddressPublic() |
abstract boolean | isManagedServiceIdentityEnabled() |
abstract
Log |
logAnalytics() |
abstract
Resource |
managedServiceIdentityType() |
abstract
Operating |
osType() |
abstract String | provisioningState() |
abstract void |
restart()
Restarts all containers in a container group in place. |
abstract Mono<Void> |
restartAsync()
Restarts all containers in a container group in place asynchronously. |
abstract
Container |
restartPolicy() |
abstract String | state() |
abstract void |
stop()
Stops all containers in a container group. |
abstract Mono<Void> |
stopAsync()
Stops all containers in a container group asynchronously. |
abstract
List<Container |
subnetIds() |
abstract String | systemAssignedManagedServiceIdentityPrincipalId() |
abstract String | systemAssignedManagedServiceIdentityTenantId() |
abstract Set<String> | userAssignedManagedServiceIdentityIds() |
abstract Map<String,Volume> | volumes() |
Method Details
attachOutputStream
public abstract ContainerAttachResult attachOutputStream(Container container)
Attaches to the output stream of a specific container instance in a specified container group.
Parameters:
Returns:
attachOutputStream
public abstract ContainerAttachResult attachOutputStream(String containerName)
Attaches to the output stream of a specific container instance in a specified container group.
Parameters:
Returns:
attachOutputStreamAsync
public abstract Mono
Attaches to the output stream of a specific container instance in a specified container group.
Parameters:
Returns:
attachOutputStreamAsync
public abstract Mono
Attaches to the output stream of a specific container instance in a specified container group.
Parameters:
Returns:
autoGeneratedDomainNameLabelScope
public abstract DnsNameLabelReusePolicy autoGeneratedDomainNameLabelScope()
Gets the reuse policy of DNS name label for the container group.
Returns:
containers
public abstract Map
Returns:
dnsConfig
public abstract DnsConfiguration dnsConfig()
Returns:
dnsPrefix
public abstract String dnsPrefix()
Returns:
events
public abstract Set
Returns:
executeCommand
public abstract ContainerExecResponse executeCommand(String containerName, String command, int row, int column)
Starts the exec command for a specific container instance.
Parameters:
Returns:
executeCommandAsync
public abstract Mono
Starts the exec command for a specific container instance within the container group.
Parameters:
Returns:
externalPorts
public abstract Set
Returns:
externalTcpPorts
public abstract int[] externalTcpPorts()
Returns:
externalUdpPorts
public abstract int[] externalUdpPorts()
Returns:
fqdn
public abstract String fqdn()
Returns:
getLogContent
public abstract String getLogContent(String containerName)
Get the log content for the specified container instance within the container group.
Parameters:
Returns:
getLogContent
public abstract String getLogContent(String containerName, int tailLineCount)
Get the log content for the specified container instance within the container group.
Parameters:
Returns:
getLogContentAsync
public abstract Mono
Get the log content for the specified container instance within the container group.
Parameters:
Returns:
getLogContentAsync
public abstract Mono
Get the log content for the specified container instance within the container group.
Parameters:
Returns:
imageRegistryServers
public abstract Collection
Returns:
ipAddress
public abstract String ipAddress()
Returns:
isIPAddressPrivate
public abstract boolean isIPAddressPrivate()
Returns:
isIPAddressPublic
public abstract boolean isIPAddressPublic()
Returns:
isManagedServiceIdentityEnabled
public abstract boolean isManagedServiceIdentityEnabled()
Returns:
logAnalytics
public abstract LogAnalytics logAnalytics()
Returns:
managedServiceIdentityType
public abstract ResourceIdentityType managedServiceIdentityType()
Returns:
osType
public abstract OperatingSystemTypes osType()
Returns:
provisioningState
public abstract String provisioningState()
Returns:
restart
public abstract void restart()
Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
restartAsync
public abstract Mono
Restarts all containers in a container group in place asynchronously. If container image has updates, new image will be downloaded.
Returns:
restartPolicy
public abstract ContainerGroupRestartPolicy restartPolicy()
Returns:
state
public abstract String state()
Returns:
stop
public abstract void stop()
Stops all containers in a container group. Compute resources will be de-allocated and billing will stop.
stopAsync
public abstract Mono
Stops all containers in a container group asynchronously. Compute resources will be de-allocated and billing will stop.
Returns:
subnetIds
public abstract List
Returns:
systemAssignedManagedServiceIdentityPrincipalId
public abstract String systemAssignedManagedServiceIdentityPrincipalId()
Returns:
systemAssignedManagedServiceIdentityTenantId
public abstract String systemAssignedManagedServiceIdentityTenantId()
Returns:
userAssignedManagedServiceIdentityIds
public abstract Set
Returns:
volumes
public abstract Map
Returns:
Applies to
Azure SDK for Java