public interface ContainerGroup extends GroupableResource<ContainerInstanceManager,ContainerGroupInner>, Refreshable<ContainerGroup>, Updatable<ContainerGroup.Update>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ContainerGroup.Definition
Starts the exec command for a specific container instance within the current group asynchronously.
|
static interface |
ContainerGroup.DefinitionStages
Grouping of the container group definition stages.
|
static interface |
ContainerGroup.Update
The template for an update operation, containing all the settings that can be modified.
|
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>| Modifier and Type | Method and Description |
|---|---|
ContainerAttachResult |
attachOutputStream(Container container)
Attaches to the output stream of a specific container instance in a specified container group.
|
ContainerAttachResult |
attachOutputStream(String containerName)
Attaches to the output stream of a specific container instance in a specified container group.
|
Mono<ContainerAttachResult> |
attachOutputStreamAsync(Container container)
Attaches to the output stream of a specific container instance in a specified container group.
|
Mono<ContainerAttachResult> |
attachOutputStreamAsync(String containerName)
Attaches to the output stream of a specific container instance in a specified container group.
|
Map<String,Container> |
containers() |
DnsConfiguration |
dnsConfig() |
String |
dnsPrefix() |
Set<Event> |
events() |
ContainerExecResponse |
executeCommand(String containerName,
String command,
int row,
int column)
Starts the exec command for a specific container instance.
|
Mono<ContainerExecResponse> |
executeCommandAsync(String containerName,
String command,
int row,
int column)
Starts the exec command for a specific container instance within the container group.
|
Set<Port> |
externalPorts() |
int[] |
externalTcpPorts() |
int[] |
externalUdpPorts() |
String |
fqdn() |
String |
getLogContent(String containerName)
Get the log content for the specified container instance within the container group.
|
String |
getLogContent(String containerName,
int tailLineCount)
Get the log content for the specified container instance within the container group.
|
Mono<String> |
getLogContentAsync(String containerName)
Get the log content for the specified container instance within the container group.
|
Mono<String> |
getLogContentAsync(String containerName,
int tailLineCount)
Get the log content for the specified container instance within the container group.
|
Collection<String> |
imageRegistryServers() |
String |
ipAddress() |
boolean |
isIPAddressPrivate() |
boolean |
isIPAddressPublic() |
boolean |
isManagedServiceIdentityEnabled() |
LogAnalytics |
logAnalytics() |
ResourceIdentityType |
managedServiceIdentityType() |
String |
networkProfileId() |
OperatingSystemTypes |
osType() |
String |
provisioningState() |
void |
restart()
Restarts all containers in a container group in place.
|
Mono<Void> |
restartAsync()
Restarts all containers in a container group in place asynchronously.
|
ContainerGroupRestartPolicy |
restartPolicy() |
String |
state() |
void |
stop()
Stops all containers in a container group.
|
Mono<Void> |
stopAsync()
Stops all containers in a container group asynchronously.
|
String |
systemAssignedManagedServiceIdentityPrincipalId() |
String |
systemAssignedManagedServiceIdentityTenantId() |
Set<String> |
userAssignedManagedServiceIdentityIds() |
Map<String,Volume> |
volumes() |
region, regionName, tags, typenameresourceGroupNamemanagerinnerModelrefresh, refreshAsyncMap<String,Container> containers()
Set<Port> externalPorts()
int[] externalTcpPorts()
int[] externalUdpPorts()
Collection<String> imageRegistryServers()
ContainerGroupRestartPolicy restartPolicy()
String dnsPrefix()
String fqdn()
String ipAddress()
boolean isIPAddressPublic()
boolean isIPAddressPrivate()
OperatingSystemTypes osType()
String state()
String provisioningState()
DnsConfiguration dnsConfig()
String networkProfileId()
boolean isManagedServiceIdentityEnabled()
String systemAssignedManagedServiceIdentityTenantId()
String systemAssignedManagedServiceIdentityPrincipalId()
ResourceIdentityType managedServiceIdentityType()
Set<String> userAssignedManagedServiceIdentityIds()
LogAnalytics logAnalytics()
void restart()
Mono<Void> restartAsync()
void stop()
Mono<Void> stopAsync()
String getLogContent(String containerName)
containerName - the container instance nameIllegalArgumentException - thrown if parameters fail the validationString getLogContent(String containerName, int tailLineCount)
containerName - the container instance nametailLineCount - only get the last log lines up to thisIllegalArgumentException - thrown if parameters fail the validationMono<String> getLogContentAsync(String containerName)
containerName - the container instance nameIllegalArgumentException - thrown if parameters fail the validationMono<String> getLogContentAsync(String containerName, int tailLineCount)
containerName - the container instance nametailLineCount - only get the last log lines up to thisIllegalArgumentException - thrown if parameters fail the validationContainerExecResponse executeCommand(String containerName, String command, int row, int column)
containerName - the container instance namecommand - the command to be executedrow - the row size of the terminalcolumn - the column size of the terminalIllegalArgumentException - thrown if parameters fail the validationMono<ContainerExecResponse> executeCommandAsync(String containerName, String command, int row, int column)
containerName - the container instance namecommand - the command to be executedrow - the row size of the terminalcolumn - the column size of the terminalIllegalArgumentException - thrown if parameters fail the validationContainerAttachResult attachOutputStream(String containerName)
containerName - the name of the container instanceMono<ContainerAttachResult> attachOutputStreamAsync(String containerName)
containerName - the name of the container instanceContainerAttachResult attachOutputStream(Container container)
container - the container instanceMono<ContainerAttachResult> attachOutputStreamAsync(Container container)
container - the container instanceCopyright © 2021 Microsoft Corporation. All rights reserved.