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()
Gets the container instances in this container group. |
abstract
Dns |
dnsConfig()
Gets the DNS configuration for the container group. |
abstract String |
dnsPrefix()
Gets the DNS prefix which was specified at creation time. |
abstract Set<Event> |
events()
Gets the container group 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()
Gets all the ports publicly exposed for this container group. |
abstract int[] |
externalTcpPorts()
Gets the TCP ports publicly exposed for this container group. |
abstract int[] |
externalUdpPorts()
Gets the UDP ports publicly exposed for this container group. |
abstract String |
fqdn()
Gets the FQDN for the container group. |
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()
Gets the Docker image registry servers by which the container group is created from. |
abstract String |
ipAddress()
Gets the IP address. |
abstract boolean |
isIPAddressPrivate()
Checks whether IP address is private. |
abstract boolean |
isIPAddressPublic()
Checks whether IP address is public. |
abstract boolean |
isManagedServiceIdentityEnabled()
Checks whether managed service identity is enabled for the container group. |
abstract
Log |
logAnalytics()
Gets the log analytics information of the container group. |
abstract
Resource |
managedServiceIdentityType()
Checks whether managed service identity is system assigned, user assigned, both, or neither. |
abstract
Operating |
osType()
Gets the base level OS type required by the containers in the group. |
abstract String |
provisioningState()
Gets the provisioning |
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()
Gets the container group restart policy. |
abstract String |
state()
Gets the state of the container group; only valid in response. |
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()
Gets the id of the subnets.. |
abstract String |
systemAssignedManagedServiceIdentityPrincipalId()
Gets the principal id of the system assigned managed service identity. |
abstract String |
systemAssignedManagedServiceIdentityTenantId()
Gets the tenant id of the system assigned managed service identity. |
abstract Set<String> |
userAssignedManagedServiceIdentityIds()
Gets the ids of the user assigned managed service identities. |
abstract Map<String,Volume> |
volumes()
Gets the volumes for this container group. |
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
Gets the container instances in this container group.
Returns:
dnsConfig
public abstract DnsConfiguration dnsConfig()
Gets the DNS configuration for the container group.
Returns:
dnsPrefix
public abstract String dnsPrefix()
Gets the DNS prefix which was specified at creation time.
Returns:
events
public abstract Set
Gets the container group events.
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
Gets all the ports publicly exposed for this container group.
Returns:
externalTcpPorts
public abstract int[] externalTcpPorts()
Gets the TCP ports publicly exposed for this container group.
Returns:
externalUdpPorts
public abstract int[] externalUdpPorts()
Gets the UDP ports publicly exposed for this container group.
Returns:
fqdn
public abstract String fqdn()
Gets the FQDN for the container group.
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
Gets the Docker image registry servers by which the container group is created from.
Returns:
ipAddress
public abstract String ipAddress()
Gets the IP address.
Returns:
isIPAddressPrivate
public abstract boolean isIPAddressPrivate()
Checks whether IP address is private.
Returns:
isIPAddressPublic
public abstract boolean isIPAddressPublic()
Checks whether IP address is public.
Returns:
isManagedServiceIdentityEnabled
public abstract boolean isManagedServiceIdentityEnabled()
Checks whether managed service identity is enabled for the container group.
Returns:
logAnalytics
public abstract LogAnalytics logAnalytics()
Gets the log analytics information of the container group.
Returns:
managedServiceIdentityType
public abstract ResourceIdentityType managedServiceIdentityType()
Checks whether managed service identity is system assigned, user assigned, both, or neither.
Returns:
osType
public abstract OperatingSystemTypes osType()
Gets the base level OS type required by the containers in the group.
Returns:
provisioningState
public abstract String provisioningState()
Gets the provisioningState of the container group.
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()
Gets the container group restart policy.
Returns:
state
public abstract String state()
Gets the state of the container group; only valid in response.
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
Gets the id of the subnets..
Returns:
systemAssignedManagedServiceIdentityPrincipalId
public abstract String systemAssignedManagedServiceIdentityPrincipalId()
Gets the principal id of the system assigned managed service identity.
Returns:
systemAssignedManagedServiceIdentityTenantId
public abstract String systemAssignedManagedServiceIdentityTenantId()
Gets the tenant id of the system assigned managed service identity.
Returns:
userAssignedManagedServiceIdentityIds
public abstract Set
Gets the ids of the user assigned managed service identities.
Returns:
volumes
public abstract Map
Gets the volumes for this container group.
Returns:
Applies to
Azure SDK for Java