您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

已部署的代码包信息DeployedCodePackageInfo

有关在 Service Fabric 节点上部署的代码包的信息。Information about code package deployed on a Service Fabric node.

属性Properties

名称Name 类型Type 必选Required
Name 字符串string No
Version 字符串string No
ServiceManifestName 字符串string No
ServicePackageActivationId 字符串string No
HostType 字符串(枚举)string (enum) No
HostIsolationMode 字符串(枚举)string (enum) No
Status 字符串(枚举)string (enum) No
RunFrequencyInterval 字符串string No
SetupEntryPoint 代码包入口点CodePackageEntryPoint No
MainEntryPoint 代码包入口点CodePackageEntryPoint No

Name

类型: 字符串Type: string
必需: 否Required: No

代码包的名称。The name of the code package.


Version

类型: 字符串Type: string
必需: 否Required: No

服务清单中指定的代码包的版本。The version of the code package specified in service manifest.


ServiceManifestName

类型: 字符串Type: string
必需: 否Required: No

指定此代码包的服务清单的名称。The name of service manifest that specified this code package.


ServicePackageActivationId

类型: 字符串Type: string
必需: 否Required: No

已部署的服务包的激活 ID。The ActivationId of a deployed service package. 如果在创建服务时指定的服务包激活模式为"共享进程"(或者如果未指定服务包激活模式,则默认为"共享进程"),则服务包激活 Id 的值始终是一个空字符串。If ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an empty string.


HostType

类型: 字符串 (枚举)Type: string (enum)
必需: 否Required: No

指定服务清单中指定的代码包主入口点的主机类型。Specifies the type of host for main entry point of a code package as specified in service manifest.

可能的值包括:Possible values are:

  • Invalid- 指示主机的类型不是已知或无效的。Invalid - Indicates the type of host is not known or invalid. 值为 0。The value is 0.
  • ExeHost- 指示主机是可执行文件。ExeHost - Indicates the host is an executable. 值为 1。The value is 1.
  • ContainerHost- 指示主机是容器。ContainerHost - Indicates the host is a container. 值为 2。The value is 2.

HostIsolationMode

类型: 字符串 (枚举)Type: string (enum)
必需: 否Required: No

指定代码包主入口点的隔离模式,当代码包的主机类型为容器Host时。Specifies the isolation mode of main entry point of a code package when it's host type is ContainerHost. 这在导入服务清单时指定为应用程序清单中的容器主机策略的一部分。This is specified as part of container host policies in application manifest while importing service manifest.

可能的值包括:Possible values are:

  • None- 指示隔离模式不适用于给定的主机类型。None - Indicates the isolation mode is not applicable for given HostType. 值为 0。The value is 0.
  • Process- 这是容器主机的默认隔离模式。Process - This is the default isolation mode for a ContainerHost. 值为 1。The value is 1.
  • HyperV- 指示容器主机是超 V 容器。HyperV - Indicates the ContainerHost is a Hyper-V container. 这仅适用于 Windows 容器。This applies to only Windows containers. 值为 2。The value is 2.

Status

类型: 字符串 (枚举)Type: string (enum)
必需: 否Required: No

指定 Service Fabric 节点上已部署的应用程序或服务包的状态。Specifies the status of a deployed application or service package on a Service Fabric node.

可能的值包括:Possible values are:

  • Invalid- 指示应用程序或服务包的状态为不知道或无效。Invalid - Indicates status of the application or service package is not known or invalid. 值为 0。The value is 0.
  • Downloading- 指示正在从 ImageStore 下载到节点的应用程序或服务包。Downloading - Indicates the application or service package is being downloaded to the node from the ImageStore. 值为 1。The value is 1.
  • Activating- 指示正在激活应用程序或服务包。Activating - Indicates the application or service package is being activated. 值为 2。The value is 2.
  • Active- 指示应用程序或服务包处于活动状态的节点。Active - Indicates the application or service package is active the node. 值为 3。The value is 3.
  • Upgrading- 指示正在升级应用程序或服务包。Upgrading - Indicates the application or service package is being upgraded. 值为 4。The value is 4.
  • Deactivating- 指示应用程序或服务包正在停用。Deactivating - Indicates the application or service package is being deactivated. 值为 5。The value is 5.

RunFrequencyInterval

类型: 字符串Type: string
必需: 否Required: No

运行代码包的时间间隔。The interval at which code package is run. 这用于定期代码包。This is used for periodic code package.


SetupEntryPoint

类型代码包入口点Type: CodePackageEntryPoint
必需: 否Required: No

有关在 Service Fabric 节点上部署的代码包的设置或主要入口点的信息。Information about setup or main entry point of a code package deployed on a Service Fabric node.


MainEntryPoint

类型代码包入口点Type: CodePackageEntryPoint
必需: 否Required: No

有关在 Service Fabric 节点上部署的代码包的设置或主要入口点的信息。Information about setup or main entry point of a code package deployed on a Service Fabric node.