Azure 容器实例
使用单个命令在 Azure 上轻松运行容器。 创建容器组,获取容器的日志等。
此连接器在以下产品和区域中可用:
| 服务 | Class | 区域 |
|---|---|---|
| Copilot Studio | 高级 | 所有 Power Automate 区域 |
| 逻辑应用程序 | 标准 | 所有 逻辑应用区域 |
| Power Apps | 高级 | 所有 Power Apps 区域 |
| Power Automate | 高级 | 所有 Power Automate 区域 |
| 联系人 | |
|---|---|
| Name | Microsoft |
| URL |
Microsoft LogicApps 支持 Microsoft Power Automate 支持 Microsoft Power Apps 支持 |
| 连接器元数据 | |
|---|---|
| 发布者 | Microsoft |
| Website | https://azure.microsoft.com/services/container-instances/ |
正在创建连接
连接器支持以下身份验证类型:
| 默认 | 用于创建连接的参数。 | 所有区域 | 不可共享 |
违约
适用:所有区域
用于创建连接的参数。
这是不可共享的连接。 如果 Power App 与另一个用户共享,系统会提示其他用户显式创建新连接。
限制
| 名称 | 调用 | 续订期 |
|---|---|---|
| 每个连接的 API 调用数 | 100 | 60 秒 |
操作
| 从容器实例获取日志 |
获取指定资源组和容器组中指定容器实例的日志。 |
| 停止容器组中的容器 |
停止容器组中的所有容器。 计算资源将被解除分配,计费将停止。 |
| 创建或更新容器组 |
创建或更新具有指定配置的容器组。 |
| 删除容器组 |
删除指定订阅和资源组中的指定容器组。 该操作不会删除用户提供的其他资源,例如卷。 |
| 删除容器组虚拟网络关联链接 |
删除容器组虚拟网络关联链接。 该作不会删除用户提供的其他资源。 |
| 启动容器组中的容器 |
启动容器组中的所有容器。 将分配计算资源,并启动计费。 |
| 在特定容器实例中执行命令 |
为指定资源组和容器组中的特定容器实例执行命令。 |
| 更新容器组位置或标记 |
使用指定的标记和/或位置更新容器组。 |
| 获取功能 |
获取区域中订阅的 CPU/内存/GPU 功能列表。 |
| 获取容器组的属性 |
获取指定订阅和资源组中指定容器组的属性。 该操作返回每个容器组的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、状态和卷。 |
| 获取容器组的所有网络依赖项 |
获取此容器组的所有网络依赖项,以允许完全控制网络设置和配置。 对于容器组,这始终为空列表。 |
| 获取当前使用情况 |
获取订阅的使用情况 |
| 获取缓存的图像 |
获取区域中订阅的特定 OS 类型上的缓存映像列表。 |
| 获取订阅中的容器组列表 |
获取指定订阅中的容器组的列表。 此操作返回每个容器组的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、状态和卷。 |
| 获取资源组中的容器组列表 |
获取指定订阅和资源组中的容器组的列表。 此操作返回每个容器组的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、状态和卷。 |
| 重启容器组中的容器 |
重启容器组中的所有容器。 如果容器映像有更新,则会下载新映像。 |
| 附加到特定容器实例的输出 |
附加到指定资源组和容器组中特定容器实例的输出流。 |
从容器实例获取日志
获取指定资源组和容器组中指定容器实例的日志。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
|
容器名称
|
containerName | True | string |
容器实例的名称。 |
|
尾线
|
tail | integer |
要从容器实例日志的尾部显示的行数。 如果未提供,则所有可用日志最多会显示 4mb。 |
返回
日志。
- Body
- Logs
停止容器组中的容器
停止容器组中的所有容器。 计算资源将被解除分配,计费将停止。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
创建或更新容器组
创建或更新具有指定配置的容器组。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
|
id
|
id | string |
资源 ID。 |
|
|
姓名
|
name | string |
资源名称。 |
|
|
类型
|
type | string |
资源类型。 |
|
|
位置
|
location | True | string |
资源位置。 |
|
标记
|
tags | object |
资源标记。 |
|
|
区域
|
zones | array of string |
容器组的区域。 |
|
|
principalId
|
principalId | string |
容器组标识的主体 ID。 此属性仅针对系统分配的标识提供。 |
|
|
tenantId
|
tenantId | string |
与容器组关联的租户 ID。 此属性仅针对系统分配的标识提供。 |
|
|
类型
|
type | string |
用于容器组的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从容器组中删除任何标识。 |
|
|
用户分配的标识
|
userAssignedIdentities | object |
与容器组关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 |
|
|
provisioningState
|
provisioningState | string |
容器组的预配状态。 这仅在响应中显示。 |
|
|
Name
|
name | True | string |
容器的名称。 |
|
图像
|
image | True | string |
用于创建容器的映像的名称。 例如 nginx:latest |
|
Command
|
command | array of string |
在容器中执行的命令。 例如 [ “echo”, “hello aci” ] |
|
|
协议
|
protocol | string |
与端口关联的协议。 |
|
|
编号
|
port | True | integer |
容器组中公开的端口号。 |
|
Name
|
name | True | string |
环境变量的名称。 |
|
价值
|
value | string |
环境变量的值。 |
|
|
secureValue 安全型
|
secureValue | string |
安全环境变量的值。 |
|
|
restartCount
|
restartCount | integer |
容器实例已重启的次数。 |
|
|
状态
|
state | string |
容器实例的状态。 |
|
|
startTime
|
startTime | date-time |
容器实例状态启动的日期/时间。 |
|
|
exitCode
|
exitCode | integer |
容器实例退出代码对应于 |
|
|
finishTime
|
finishTime | date-time |
容器实例状态完成的日期/时间。 |
|
|
detailStatus
|
detailStatus | string |
容器实例状态的可读状态。 |
|
|
计数
|
count | integer |
事件的计数。 |
|
|
firstTimestamp
|
firstTimestamp | date-time |
最早记录事件的日期时间。 |
|
|
lastTimestamp
|
lastTimestamp | date-time |
最新记录事件的日期时间。 |
|
|
姓名
|
name | string |
事件名称。 |
|
|
消息
|
message | string |
事件消息。 |
|
|
类型
|
type | string |
事件类型。 |
|
|
内存
|
memoryInGB | True | number |
此容器的内存请求(以 GB 为单位)。 例如 3.5 |
|
CPU
|
cpu | True | number |
此容器的 CPU 请求。 例如 2.0 |
|
计数
|
count | integer |
GPU 资源的计数。 |
|
|
SKU
|
sku | string |
GPU 资源的 SKU。 |
|
|
内存
|
memoryInGB | double |
此容器的内存限制(以 GB 为单位)。 |
|
|
CPU
|
cpu | double |
此容器的 CPU 限制。 |
|
|
Name
|
name | True | string |
卷的名称。 |
|
路径
|
mountPath | True | string |
应装载卷的容器中的路径。 不得包含冒号 (:)。 |
|
Readonly
|
readOnly | boolean |
指示卷装载是否为只读的标志。 |
|
|
Command
|
command | array of string |
在容器中执行的命令。 |
|
|
路径
|
path | string |
探测的路径。 |
|
|
港口
|
port | integer |
要探测的端口号。 |
|
|
方案
|
scheme | string |
方案。 |
|
|
姓名
|
name | string |
标头名称。 |
|
|
value
|
value | string |
标头值。 |
|
|
初始延迟
|
initialDelaySeconds | integer |
初始延迟秒。 |
|
|
期限
|
periodSeconds | integer |
时间段秒。 |
|
|
失败阈值
|
failureThreshold | integer |
失败阈值。 |
|
|
成功阈值
|
successThreshold | integer |
成功阈值。 |
|
|
超时
|
timeoutSeconds | integer |
超时秒。 |
|
|
特权
|
privileged | boolean |
用于确定容器权限是否提升为 Privileged 的标志。 |
|
|
allowPrivilegeEscalation 权限提升
|
allowPrivilegeEscalation | boolean |
一个布尔值,该值指示 init 进程是否可以提升其特权 |
|
|
添加
|
add | array of string |
要添加到容器的功能。 |
|
|
删除
|
drop | array of string |
要从容器中删除的功能。 |
|
|
runAsGroup
|
runAsGroup | integer |
设置容器的用户 GID。 |
|
|
runAsUser
|
runAsUser | integer |
设置容器的用户 UID。 |
|
|
seccomp配置文件
|
seccompProfile | string |
包含 seccomp 配置文件中 JSON 内容的 base64 编码字符串 |
|
|
Server
|
server | True | string |
没有协议的 Docker 映像注册表服务器,例如“myacr.azurecr.io”。 |
|
用户名
|
username | string |
专用注册表的用户名。 |
|
|
密码
|
password | string |
专用注册表的密码。 |
|
|
身份
|
identity | string |
专用注册表的标识。 |
|
|
IdentityURL
|
identityUrl | string |
专用注册表的标识 URL。 |
|
|
restartPolicy
|
restartPolicy | string |
重启容器组中所有容器的策略。
|
|
|
协议
|
protocol | string |
与端口关联的协议。 |
|
|
编号
|
port | True | integer |
端口号。 |
|
类型
|
type | True | string |
指定 IP 是否向公共 Internet 公开。 |
|
IP 地址
|
ip | string |
公开给公共 Internet 的 IP。 |
|
|
Dns 名称
|
dnsNameLabel | string |
IP 的 Dns 名称标签。 |
|
|
autoGeneratedDomainNameLabelScope
|
autoGeneratedDomainNameLabelScope | string |
表示安全枚举的值。 如果未选择“不安全”值,则为默认值,表示对象域名标签不受子域接管保护。 如果选中“TenantReuse”值,则为默认值,表示可以在同一租户中重复使用对象的域名标签。 “SubscriptionReuse”值表示可以在同一订阅中重复使用对象的域名标签。 “ResourceGroupReuse”值表示可以在同一资源组中重复使用对象的域名标签。 “NoReuse”值表示不能在同一资源组、订阅或租户中重复使用对象的域名标签。 |
|
|
fqdn
|
fqdn | string |
IP 的 FQDN。 |
|
|
osType
|
osType | True | string |
容器组中容器所需的操作系统类型。 |
|
Name
|
name | True | string |
卷的名称。 |
|
共享名称
|
shareName | True | string |
要装载为卷的 Azure 文件共享的名称。 |
|
ReadOnly
|
readOnly | boolean |
指示装载为卷的 Azure 文件共享是否为只读的标志。 |
|
|
存储帐户名称
|
storageAccountName | True | string |
包含 Azure 文件共享的存储帐户的名称。 |
|
存储帐户密钥
|
storageAccountKey | string |
用于访问 Azure 文件共享的存储帐户访问密钥。 |
|
|
机密卷
|
secret | object |
机密卷。 |
|
|
目录
|
directory | string |
目标目录名称。 不得包含或以“..”开头。 如果提供了“.”,卷目录将是 git 存储库。 否则,如果指定,卷将包含具有给定名称的子目录中的 git 存储库。 |
|
|
资料库
|
repository | True | string |
存储库 URL |
|
Revision
|
revision | string |
指定修订的提交哈希。 |
|
|
状态
|
state | string |
容器组的状态。 仅在响应中有效。 |
|
|
工作区 ID
|
workspaceId | True | string |
Log Analytics 的工作区 ID |
|
工作区密钥
|
workspaceKey | True | string |
Log Analytics 的工作区密钥 |
|
日志类型
|
logType | string |
要使用的日志类型。 |
|
|
Metadata
|
metadata | object |
日志分析的元数据。 |
|
|
workspaceResourceId
|
workspaceResourceId | string |
Log Analytics 的工作区资源 ID |
|
|
id
|
id | True | string |
虚拟网络和子网的资源 ID。 |
|
姓名
|
name | string |
子网的友好名称。 |
|
|
域名服务器
|
nameServers | True | array of string |
容器组的 DNS 服务器。 |
|
搜索域
|
searchDomains | string |
用于在容器组中查找主机名的 DNS 搜索域。 |
|
|
选项
|
options | string |
容器组的 DNS 选项。 |
|
|
SKU
|
sku | string |
容器组 SKU。 |
|
|
保管库 URL
|
vaultBaseUrl | True | string |
keyvault 基 URL。 |
|
密钥名称
|
keyName | True | string |
加密密钥名称。 |
|
密钥版本
|
keyVersion | True | string |
加密密钥版本。 |
|
身份
|
identity | string |
keyvault 托管标识。 |
|
|
Name
|
name | True | string |
init 容器的名称。 |
|
图像
|
image | string |
init 容器的图像。 |
|
|
Command
|
command | array of string |
要以 exec 形式在 init 容器中执行的命令。 |
|
|
restartCount
|
restartCount | integer |
初始化容器已重启的次数。 |
|
|
姓名
|
name | True | string |
扩展的名称。 |
|
扩展类型
|
extensionType | True | string |
要添加的扩展的类型。 |
|
版本
|
version | True | string |
正在使用的扩展的版本。 |
|
settings
|
settings | object |
扩展的设置。 |
|
|
protectedSettings
|
protectedSettings | object |
扩展的受保护设置。 |
|
|
CCE政策
|
ccePolicy | string |
base64 编码的机密计算强制策略 |
|
|
priority
|
priority | string |
容器组的优先级。 |
返回
容器组。
- ContainerGroup
- ContainerGroup
删除容器组
删除指定订阅和资源组中的指定容器组。 该操作不会删除用户提供的其他资源,例如卷。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
返回
容器组。
- ContainerGroup
- ContainerGroup
删除容器组虚拟网络关联链接
删除容器组虚拟网络关联链接。 该作不会删除用户提供的其他资源。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
虚拟网络名称
|
virtualNetworkName | True | string |
虚拟网络的名称。 |
|
子网名称
|
subnetName | True | string |
子网的名称。 |
启动容器组中的容器
启动容器组中的所有容器。 将分配计算资源,并启动计费。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
在特定容器实例中执行命令
为指定资源组和容器组中的特定容器实例执行命令。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
|
containerName
|
containerName | True | string |
容器实例的名称。 |
|
指令
|
command | string |
要执行的命令。 |
|
|
行
|
rows | integer |
终端的行大小 |
|
|
cols
|
cols | integer |
终端的列大小 |
返回
container exec 命令的信息。
更新容器组位置或标记
使用指定的标记和/或位置更新容器组。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
|
id
|
id | string |
资源 ID。 |
|
|
姓名
|
name | string |
资源名称。 |
|
|
类型
|
type | string |
资源类型。 |
|
|
位置
|
location | string |
资源位置。 |
|
|
标记
|
tags | object |
资源标记。 |
|
|
zones
|
zones | array of string |
容器组的区域。 |
返回
容器组。
- ContainerGroup
- ContainerGroup
获取功能
获取区域中订阅的 CPU/内存/GPU 功能列表。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
位置
|
location | True | string |
物理 Azure 位置的标识符。 |
返回
包含功能列表的响应。
获取容器组的属性
获取指定订阅和资源组中指定容器组的属性。 该操作返回每个容器组的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、状态和卷。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
返回
容器组。
- ContainerGroup
- ContainerGroup
获取容器组的所有网络依赖项
获取此容器组的所有网络依赖项,以允许完全控制网络设置和配置。 对于容器组,这始终为空列表。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
返回
对网络依赖项的响应,始终为空列表。
获取当前使用情况
获取订阅的使用情况
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
位置
|
location | True | string |
物理 Azure 位置的标识符。 |
返回
包含使用情况数据的响应
- Body
- UsageListResult
获取缓存的图像
获取区域中订阅的特定 OS 类型上的缓存映像列表。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
位置
|
location | True | string |
物理 Azure 位置的标识符。 |
返回
包含缓存图像的响应。
获取订阅中的容器组列表
获取指定订阅中的容器组的列表。 此操作返回每个容器组的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、状态和卷。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
返回
包含容器组属性的容器组列表响应。
获取资源组中的容器组列表
获取指定订阅和资源组中的容器组的列表。 此操作返回每个容器组的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、状态和卷。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
返回
包含容器组属性的容器组列表响应。
重启容器组中的容器
重启容器组中的所有容器。 如果容器映像有更新,则会下载新映像。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
附加到特定容器实例的输出
附加到指定资源组和容器组中特定容器实例的输出流。
参数
| 名称 | 密钥 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
订阅 ID
|
subscriptionId | True | string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
资源组
|
resourceGroupName | True | string |
资源组的名称。 |
|
容器组名称
|
containerGroupName | True | string |
容器组的名称。 |
|
containerName
|
containerName | True | string |
容器实例的名称。 |
返回
容器附加的输出流的信息。
定义
集装箱
容器实例。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Name
|
name | string |
容器的名称。 |
|
属性
|
properties | ContainerProperties |
容器属性。 |
容器属性
容器属性。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
图像
|
image | string |
用于创建容器的映像的名称。 例如 nginx:latest |
|
Command
|
command | array of string |
在容器中执行的命令。 例如 [ “echo”, “hello aci” ] |
|
Ports
|
ports | array of ContainerPort |
容器实例上公开的端口。 |
|
环境变量
|
environmentVariables | array of EnvironmentVariable |
在容器实例中设置的环境变量。 |
|
restartCount
|
instanceView.restartCount | integer |
容器实例已重启的次数。 |
|
currentState
|
instanceView.currentState | ContainerState |
容器实例状态。 |
|
previousState
|
instanceView.previousState | ContainerState |
容器实例状态。 |
|
events
|
instanceView.events | array of Event |
容器实例的事件。 |
|
资源
|
resources | ResourceRequirements |
资源要求。 |
|
卷装载
|
volumeMounts | array of VolumeMount |
卷装载可用于容器实例。 |
|
生存度探测
|
livenessProbe | ContainerProbe |
容器探测,用于生存 |
|
生存度探测
|
readinessProbe | ContainerProbe |
容器探测,用于生存 |
|
securityContext
|
securityContext | SecurityContextDefinition |
容器的安全上下文。 |
SecurityContext定义
容器的安全上下文。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
特权
|
privileged | boolean |
用于确定容器权限是否提升为 Privileged 的标志。 |
|
allowPrivilegeEscalation 权限提升
|
allowPrivilegeEscalation | boolean |
一个布尔值,该值指示 init 进程是否可以提升其特权 |
|
capabilities
|
capabilities | SecurityContextCapabilitiesDefinition |
从容器添加或删除的功能。 |
|
runAsGroup
|
runAsGroup | integer |
设置容器的用户 GID。 |
|
runAsUser
|
runAsUser | integer |
设置容器的用户 UID。 |
|
seccomp配置文件
|
seccompProfile | string |
包含 seccomp 配置文件中 JSON 内容的 base64 编码字符串 |
SecurityContextCapabilities定义
从容器添加或删除的功能。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
添加
|
add | array of string |
要添加到容器的功能。 |
|
删除
|
drop | array of string |
要从容器中删除的功能。 |
ContainerState
容器实例状态。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
状态
|
state | string |
容器实例的状态。 |
|
startTime
|
startTime | date-time |
容器实例状态启动的日期/时间。 |
|
exitCode
|
exitCode | integer |
容器实例退出代码对应于 |
|
finishTime
|
finishTime | date-time |
容器实例状态完成的日期/时间。 |
|
detailStatus
|
detailStatus | string |
容器实例状态的可读状态。 |
事件 / 活动
容器组或容器实例事件。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
计数
|
count | integer |
事件的计数。 |
|
firstTimestamp
|
firstTimestamp | date-time |
最早记录事件的日期时间。 |
|
lastTimestamp
|
lastTimestamp | date-time |
最新记录事件的日期时间。 |
|
姓名
|
name | string |
事件名称。 |
|
消息
|
message | string |
事件消息。 |
|
类型
|
type | string |
事件类型。 |
ResourceRequirements
资源要求。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
资源请求
|
requests | ResourceRequests |
资源请求。 |
|
资源限制
|
limits | ResourceLimits |
资源限制。 |
ResourceRequests
资源请求。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
内存
|
memoryInGB | number |
此容器的内存请求(以 GB 为单位)。 例如 3.5 |
|
CPU
|
cpu | number |
此容器的 CPU 请求。 例如 2.0 |
|
GPU
|
gpu | GpuResource |
GPU 资源。 |
ResourceLimits
资源限制。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
内存
|
memoryInGB | double |
此容器的内存限制(以 GB 为单位)。 |
|
CPU
|
cpu | double |
此容器的 CPU 限制。 |
|
GPU
|
gpu | GpuResource |
GPU 资源。 |
GpuResource (图形资源)
GPU 资源。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
计数
|
count | integer |
GPU 资源的计数。 |
|
SKU
|
sku | string |
GPU 资源的 SKU。 |
AzureFileVolume
Azure 文件卷的属性。 Azure 文件共享装载为卷。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
共享名称
|
shareName | string |
要装载为卷的 Azure 文件共享的名称。 |
|
ReadOnly
|
readOnly | boolean |
指示装载为卷的 Azure 文件共享是否为只读的标志。 |
|
存储帐户名称
|
storageAccountName | string |
包含 Azure 文件共享的存储帐户的名称。 |
|
存储帐户密钥
|
storageAccountKey | string |
用于访问 Azure 文件共享的存储帐户访问密钥。 |
EmptyDirVolume
空目录卷。
SecretVolume (秘密卷)
机密卷。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
机密卷
|
object |
机密卷。 |
GitRepoVolume
表示使用 git 存储库的内容填充的卷
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
目录
|
directory | string |
目标目录名称。 不得包含或以“..”开头。 如果提供了“.”,卷目录将是 git 存储库。 否则,如果指定,卷将包含具有给定名称的子目录中的 git 存储库。 |
|
资料库
|
repository | string |
存储库 URL |
|
Revision
|
revision | string |
指定修订的提交哈希。 |
音量
卷的属性。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Name
|
name | string |
卷的名称。 |
|
Azure 文件卷
|
azureFile | AzureFileVolume |
Azure 文件卷的属性。 Azure 文件共享装载为卷。 |
|
空目录卷
|
emptyDir | EmptyDirVolume |
空目录卷。 |
|
机密卷
|
secret | SecretVolume |
机密卷。 |
|
Git 存储库卷
|
gitRepo | GitRepoVolume |
表示使用 git 存储库的内容填充的卷 |
VolumeMount (体积挂载)
卷装载的属性。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Name
|
name | string |
卷的名称。 |
|
路径
|
mountPath | string |
应装载卷的容器中的路径。 不得包含冒号 (:)。 |
|
Readonly
|
readOnly | boolean |
指示卷装载是否为只读的标志。 |
容器执行
容器执行命令,用于实时或就绪情况探测
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Command
|
command | array of string |
在容器中执行的命令。 |
ContainerHttpGet
容器 Http Get 设置,用于实时或就绪情况探测
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
路径
|
path | string |
探测的路径。 |
|
港口
|
port | integer |
要探测的端口号。 |
|
方案
|
scheme | string |
方案。 |
|
httpHeaders 的
|
httpHeaders | array of HttpHeader |
HTTP 标头。 |
容器探测
容器探测,用于生存
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Exec
|
exec | ContainerExec |
容器执行命令,用于实时或就绪情况探测 |
|
HTTP GET
|
httpGet | ContainerHttpGet |
容器 Http Get 设置,用于实时或就绪情况探测 |
|
初始延迟
|
initialDelaySeconds | integer |
初始延迟秒。 |
|
期限
|
periodSeconds | integer |
时间段秒。 |
|
失败阈值
|
failureThreshold | integer |
失败阈值。 |
|
成功阈值
|
successThreshold | integer |
成功阈值。 |
|
超时
|
timeoutSeconds | integer |
超时秒。 |
ContainerGroup
容器组。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
id
|
id | string |
资源 ID。 |
|
姓名
|
name | string |
资源名称。 |
|
类型
|
type | string |
资源类型。 |
|
位置
|
location | string |
资源位置。 |
|
标记
|
tags | object |
资源标记。 |
|
区域
|
zones | array of string |
容器组的区域。 |
|
托管身份
|
identity | ContainerGroupIdentity |
容器组的标识。 |
|
属性
|
properties | ContainerGroupProperties |
容器组属性 |
ContainerGroupProperties
容器组属性
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
provisioningState
|
provisioningState | string |
容器组的预配状态。 这仅在响应中显示。 |
|
containers
|
containers | array of Container |
容器组中的容器。 |
|
imageRegistryCredentials
|
imageRegistryCredentials | array of ImageRegistryCredential |
从中创建容器组的映像注册表凭据。 |
|
restartPolicy
|
restartPolicy | string |
重启容器组中所有容器的策略。
|
|
IP 地址
|
ipAddress | IpAddress |
容器组的 IP 地址。 |
|
osType
|
osType | string |
容器组中容器所需的操作系统类型。 |
|
volumes
|
volumes | array of Volume |
此容器组中的容器可以装载的卷列表。 |
|
events
|
instanceView.events | array of Event |
此容器组的事件。 |
|
状态
|
instanceView.state | string |
容器组的状态。 仅在响应中有效。 |
|
diagnostics
|
diagnostics | ContainerGroupDiagnostics |
容器组诊断信息。 |
|
subnetIds
|
subnetIds | array of ContainerGroupSubnetId |
容器组的子网资源 ID。 |
|
DNS 配置
|
dnsConfig | DnsConfiguration |
容器组的 DNS 配置。 |
|
SKU
|
sku | ContainerGroupSku |
容器组 SKU。 |
|
Encryption
|
encryptionProperties | EncryptionProperties |
容器组加密属性。 |
|
initContainers
|
initContainers | array of InitContainerDefinition |
容器组的初始化容器。 |
|
extensions
|
extensions | array of DeploymentExtensionSpec |
虚拟 kubelet 使用的扩展 |
|
confidentialComputeProperties
|
confidentialComputeProperties | ConfidentialComputeProperties |
机密容器组的属性 |
|
priority
|
priority | string |
容器组的优先级。 |
DeploymentExtensionSpec
要添加到部署中的扩展 sidecar。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
姓名
|
name | string |
扩展的名称。 |
|
扩展类型
|
properties.extensionType | string |
要添加的扩展的类型。 |
|
版本
|
properties.version | string |
正在使用的扩展的版本。 |
|
settings
|
properties.settings | object |
扩展的设置。 |
|
protectedSettings
|
properties.protectedSettings | object |
扩展的受保护设置。 |
容器组身份
容器组的标识。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
principalId
|
principalId | string |
容器组标识的主体 ID。 此属性仅针对系统分配的标识提供。 |
|
tenantId
|
tenantId | string |
与容器组关联的租户 ID。 此属性仅针对系统分配的标识提供。 |
|
类型
|
type | string |
用于容器组的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从容器组中删除任何标识。 |
|
用户分配的标识
|
userAssignedIdentities | object |
与容器组关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 |
ImageRegistryCredential
映像注册表凭据。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Server
|
server | string |
没有协议的 Docker 映像注册表服务器,例如“myacr.azurecr.io”。 |
|
用户名
|
username | string |
专用注册表的用户名。 |
|
密码
|
password | string |
专用注册表的密码。 |
|
身份
|
identity | string |
专用注册表的标识。 |
|
IdentityURL
|
identityUrl | string |
专用注册表的标识 URL。 |
ContainerGroupDiagnostics (容器组诊断)
容器组诊断信息。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Log Analytics
|
logAnalytics | LogAnalytics |
容器组日志分析信息。 |
日志分析
容器组日志分析信息。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
工作区 ID
|
workspaceId | string |
Log Analytics 的工作区 ID |
|
工作区密钥
|
workspaceKey | string |
Log Analytics 的工作区密钥 |
|
日志类型
|
logType | string |
要使用的日志类型。 |
|
Metadata
|
metadata | object |
日志分析的元数据。 |
|
workspaceResourceId
|
workspaceResourceId | string |
Log Analytics 的工作区资源 ID |
容器组子网 ID
容器组子网信息。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
id
|
id | string |
虚拟网络和子网的资源 ID。 |
|
姓名
|
name | string |
子网的友好名称。 |
IP地址
容器组的 IP 地址。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Ports
|
ports | array of Port |
容器组上公开的端口列表。 |
|
类型
|
type | string |
指定 IP 是否向公共 Internet 公开。 |
|
IP 地址
|
ip | string |
公开给公共 Internet 的 IP。 |
|
Dns 名称
|
dnsNameLabel | string |
IP 的 Dns 名称标签。 |
|
autoGeneratedDomainNameLabelScope
|
autoGeneratedDomainNameLabelScope | string |
表示安全枚举的值。 如果未选择“不安全”值,则为默认值,表示对象域名标签不受子域接管保护。 如果选中“TenantReuse”值,则为默认值,表示可以在同一租户中重复使用对象的域名标签。 “SubscriptionReuse”值表示可以在同一订阅中重复使用对象的域名标签。 “ResourceGroupReuse”值表示可以在同一资源组中重复使用对象的域名标签。 “NoReuse”值表示不能在同一资源组、订阅或租户中重复使用对象的域名标签。 |
|
fqdn
|
fqdn | string |
IP 的 FQDN。 |
港口
容器组上公开的端口。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
协议
|
protocol | string |
与端口关联的协议。 |
|
编号
|
port | integer |
端口号。 |
容器端口
在容器实例上公开的端口。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
协议
|
protocol | string |
与端口关联的协议。 |
|
编号
|
port | integer |
容器组中公开的端口号。 |
EnvironmentVariable
在容器实例中设置的环境变量。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Name
|
name | string |
环境变量的名称。 |
|
价值
|
value | string |
环境变量的值。 |
|
secureValue 安全型
|
secureValue | string |
安全环境变量的值。 |
UsageListResult
包含使用情况数据的响应
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
value
|
value | array of Usage |
使用情况数据。 |
Usage
单次使用结果
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
id
|
id | string |
使用结果的 ID |
|
单位
|
unit | string |
使用结果的单位 |
|
当前值
|
currentValue | integer |
资源的当前使用情况 |
|
limit
|
limit | integer |
资源允许的最大使用量。 |
|
value
|
name.value | string |
资源的名称 |
|
localizedValue
|
name.localizedValue | string |
资源的本地化名称 |
ContainerGroupListResult
包含容器组属性的容器组列表响应。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
value
|
value | array of ContainerGroup |
容器组的列表。 |
|
nextLink
|
nextLink | string |
用于提取容器组下一页的 URI。 |
日志
日志。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
内容
|
content | string |
日志的内容。 |
ContainerExecResponse
container exec 命令的信息。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
webSocketUri
|
webSocketUri | string |
exec websocket 的 uri。 |
|
密码
|
password | string |
启动 exec 命令的密码。 |
ContainerAttachResponse
容器附加的输出流的信息。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
webSocketUri
|
webSocketUri | string |
附加输出流的 uri。 |
|
密码
|
password | string |
附加输出流的密码。 连接到 websocketUri 时作为 Authorization 标头值发送。 |
HttpHeader
HTTP 标头。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
姓名
|
name | string |
标头名称。 |
|
value
|
value | string |
标头值。 |
DnsConfiguration
容器组的 DNS 配置。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
域名服务器
|
nameServers | array of string |
容器组的 DNS 服务器。 |
|
搜索域
|
searchDomains | string |
用于在容器组中查找主机名的 DNS 搜索域。 |
|
选项
|
options | string |
容器组的 DNS 选项。 |
CachedImagesListResult
包含缓存图像的响应。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
value
|
value | array of cachedImages |
缓存图像的列表。 |
|
nextLink
|
nextLink | string |
用于获取缓存图像的下一页的 URI。 |
cachedImages
缓存的映像和作系统类型。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
osType
|
osType | string |
缓存映像的作系统类型。 |
|
图像
|
image | string |
缓存的映像名称。 |
CapabilitiesListResult
包含功能列表的响应。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
value
|
value | array of Capabilities |
功能列表。 |
|
nextLink
|
nextLink | string |
用于提取下一页功能的 URI。 |
Capabilities
区域功能。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
resourceType
|
resourceType | string |
此功能描述的资源类型。 |
|
osType
|
osType | string |
此功能描述的 OS 类型。 |
|
位置
|
location | string |
资源位置。 |
|
ipAddress类型
|
ipAddressType | string |
此功能描述的 IP 地址类型。 |
|
gpu
|
gpu | string |
此功能描述的 GPU SKU。 |
|
maxMemoryInGB
|
capabilities.maxMemoryInGB | number |
允许的最大内存请求(以 GB 为单位)。 |
|
maxCpu
|
capabilities.maxCpu | number |
内核中允许的最大 CPU 请求数。 |
|
maxGpuCount
|
capabilities.maxGpuCount | number |
允许的最大 GPU 计数。 |
ContainerGroupSku
EncryptionProperties
容器组加密属性。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
保管库 URL
|
vaultBaseUrl | string |
keyvault 基 URL。 |
|
密钥名称
|
keyName | string |
加密密钥名称。 |
|
密钥版本
|
keyVersion | string |
加密密钥版本。 |
|
身份
|
identity | string |
keyvault 托管标识。 |
InitContainerDefinition
init 容器定义。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
Name
|
name | string |
init 容器的名称。 |
|
属性
|
properties | InitContainerPropertiesDefinition |
init 容器定义属性。 |
InitContainerProperties定义
init 容器定义属性。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
图像
|
image | string |
init 容器的图像。 |
|
Command
|
command | array of string |
要以 exec 形式在 init 容器中执行的命令。 |
|
环境变量
|
environmentVariables | array of EnvironmentVariable |
在 init 容器中设置的环境变量。 |
|
restartCount
|
instanceView.restartCount | integer |
初始化容器已重启的次数。 |
|
currentState
|
instanceView.currentState | ContainerState |
容器实例状态。 |
|
previousState
|
instanceView.previousState | ContainerState |
容器实例状态。 |
|
events
|
instanceView.events | array of Event |
init 容器的事件。 |
|
卷装载
|
volumeMounts | array of VolumeMount |
可用于 init 容器的卷装载。 |
|
securityContext
|
securityContext | SecurityContextDefinition |
容器的安全上下文。 |
NetworkDependenciesResponse
对网络依赖项的响应,始终为空列表。
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
物品
|
string |
机密计算属性
机密容器组的属性
| 名称 | 路径 | 类型 | 说明 |
|---|---|---|---|
|
CCE政策
|
ccePolicy | string |
base64 编码的机密计算强制策略 |