UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

IT 自动化活动

上次更新日期 2026年5月18日

创建实例

UiPath.GoogleCloud.Activites.GCPCreateInstance

描述

用于创建新实例。实例是托管在 Google Cloud Platform 上的虚拟机。

项目兼容性

Windows - 旧版 | Windows | 跨平台

配置

自动化

  • Metadata - The metadata to associate with the instance. This field supports only DataTable variables. It shall contain two columns of type String, the first one representing the key and the second its value.
  • StartupScript - The startup script to run when the instance boots up or restarts.
  • 启动脚本密钥- 与启动脚本参数中指定的脚本类型对应的元数据密钥。此类键的示例:“startup-script”、“sysprep-assisted-script-bat”。要了解有关可用密钥的更多信息,请参阅运行启动脚本
    备注:

    Both StartupScript and StartupScriptKey must have a value or both must be empty.

启动磁盘

  • AutoDelete - Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). This field only supports boolean values (True, False). The default value is False.
  • DiskType - The type of the boot disk to use. Select one of three options: PersistentDiskStandard, PersistentDiskSSD, PersistentDiskBalanced. The default value is PersistentDiskStandard.
  • SizeGb - The size of the boot disk. This field supports only integer and Int64 variables.
    备注:

    AutoDelete, DiskType, SizeGb are ignored when SourceType is Disk.

  • Source - The image or snapshot used to create a boot disk or an existing disk to attach to.
    备注:

    需要在此处提供映像、快照或磁盘资源的“自身链接”字段的值。可以通过导航至Google Cloud 平台中的相应映像、快照或磁盘资源,然后单击等效 REST来检索此资源。有关更多详细信息,请在此处查看disks[].source字段的说明。

  • SourceType - Specifies the source type. Select one of three options: Image, Snapshot, Disk. The default value is Image.

常见

  • “显示名称”- 活动的显示名称。

身份和 API 访问

  • AccessScopes - The type of API access to grant the VM Instance. Select one of two options:

DefaultAccess, FullAccessToAllCloudAPI. The default value is DefaultAccess.

  • ServiceAccount - The email address that identifies the service account to be used by the applications running in VM Instance in order to call Google Cloud APIs. If not set, the Compute Engine default service account will be used.

输入

  • Description - The description of the instance.
  • Labels - The labels to associate with the instance. This field supports only DataTable variables. It shall contain two columns of type String, the first one representing the key and the second its value.
  • 计算机类型- 预定义的计算机类型。例如“e2-Medium”。从下拉菜单中选择一个选项。要详细了解可以设置的值,请参阅计算机类型
  • Name - The name of the instance.
  • ProjectId - The ID of the project to which the instance belongs.
  • Timeout - Specifies the amount of time (in seconds) to wait for the activity to run before an error is thrown. This field supports only integer and Int32 variables. If not set, the activity runs until completion. Taken into consideration in case WaitForCompletion is set to True.
  • WaitForCompletion - This field only supports boolean values (True, False). The default value is True. If set to True, the activity waits to complete before moving to the next activity.
  • 区域- 实例所在区域的名称。从下拉列表中选择所需的区域。

其他

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

网络

  • Hostname - A custom hostname for the instance (fully qualified DNS name).
  • NetworkIp - An IPv4 internal IP address to assign to the instance for the network interface. If not specified by the user, an unused internal IP is assigned by the system.
  • NetworkUrl - The URL of the network resource for the instance.
  • SubnetworkUrl - The URL of the Subnetwork resource for this instance.

输出

  • Instance - The details of the newly created instance. This field supports only GCPInstance variables.
  • 描述
  • 项目兼容性
  • 配置
  • 自动化
  • 启动磁盘
  • 常见
  • 身份和 API 访问
  • 输入
  • 其他
  • 网络
  • 输出

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新