ContainerConfiguration Class
- java.
lang. Object - com.
azure. ai. agents. models. ContainerConfiguration
- com.
Implements
public final class ContainerConfiguration
implements JsonSerializable<ContainerConfiguration>
Container-based deployment configuration for a hosted agent.
Constructor Summary
| Constructor | Description |
|---|---|
| ContainerConfiguration(String image) |
Creates an instance of Container |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
| String |
getImage()
Get the image property: The container image for the hosted agent. |
| String |
getRegistryConnectionId()
Get the registry |
|
Container |
setRegistryConnectionId(String registryConnectionId)
Set the registry |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ContainerConfiguration
public ContainerConfiguration(String image)
Creates an instance of ContainerConfiguration class.
Parameters:
Method Details
fromJson
public static ContainerConfiguration fromJson(JsonReader jsonReader)
Reads an instance of ContainerConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getImage
public String getImage()
Get the image property: The container image for the hosted agent.
Returns:
getRegistryConnectionId
public String getRegistryConnectionId()
Get the registryConnectionId property: The id (or name) of the Foundry project connection that provides the credentials used to authenticate to the private container registry hosting `image`. The connection abstracts the auth mechanism — for example a managed-identity-federated token exchange, or a username/token secret — so registry credentials are never part of the agent definition. Omit for public images or registries already reachable by the platform's default identity (for example, Azure Container Registry).
Returns:
setRegistryConnectionId
public ContainerConfiguration setRegistryConnectionId(String registryConnectionId)
Set the registryConnectionId property: The id (or name) of the Foundry project connection that provides the credentials used to authenticate to the private container registry hosting `image`. The connection abstracts the auth mechanism — for example a managed-identity-federated token exchange, or a username/token secret — so registry credentials are never part of the agent definition. Omit for public images or registries already reachable by the platform's default identity (for example, Azure Container Registry).
Parameters:
Returns: