AppInstanceDefinitionType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
AppInstanceDefinitionType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AppInstanceDefinitionType">
<xs:sequence>
<xs:element name="Parameters">
<xs:annotation>
<xs:documentation>List of parameters for the application as defined in application manifest and their respective values.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Parameter" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attributeGroup ref="NameValuePair"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the application to be created.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
要创建的应用程序的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
内容元素详细信息
参数
应用程序清单中定义的应用程序参数列表及其各自的值。
ApplicationHealthPolicyType complexType
描述评估针对各种应用程序相关实体报告的运行状况事件的策略。 如果未指定任何策略,则如果运行状况报告为警告或错误,则假定实体不正常。
| Attribute |
价值 |
| 内容 |
2 个元素,2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ApplicationHealthPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationHealthPolicyType">
<xs:annotation>
<xs:documentation>Describes the policy for evaluating health events reported on various application-related entities. If no policy is specified, an entity is assumed to be unhealthy if the health report is a warning or error.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="DefaultServiceTypeHealthPolicy" type="ServiceTypeHealthPolicyType" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies the default service type health policy, which will replace the default health policy for all service types in the application.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceTypeHealthPolicy" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Describes the policy for evaluating health events reported on services, partitions and replicas of a particular service type.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="ServiceTypeHealthPolicyType">
<xs:attribute name="ServiceTypeName" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the service type that the policy will be applied to.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ConsiderWarningAsError" type="xs:string" use="optional" default="false">
<xs:annotation>
<xs:documentation>Specifies whether to treat warning health reports as errors during health evaluation. Default: false.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MaxPercentUnhealthyDeployedApplications" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Specifies the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. This is calculated by dividing the number of unhealthy deployed applications over the number of nodes that the applications are currently deployed on in the cluster. The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage: 0.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
将警告视为错误
指定是否在运行状况评估期间将警告运行状况报告视为错误。 默认值:false。
| Attribute |
价值 |
| 名字 |
将警告视为错误 |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
假 |
最大百分比不健康已部署应用程序
指定在应用程序被视为错误之前可以运行不正常的已部署应用程序的最大允许百分比。 这是通过将不正常的已部署应用程序数除以群集中当前部署的应用程序数来计算的。 计算向上舍入,以容忍少量节点上的一次故障。 默认百分比:0。
| Attribute |
价值 |
| 名字 |
最大百分比不健康已部署应用程序 |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
内容元素详细信息
默认服务类型健康策略 (DefaultServiceTypeHealthPolicy)
指定默认服务类型运行状况策略,这将替换应用程序中所有服务类型的默认运行状况策略。
ServiceTypeHealthPolicy
描述用于评估针对特定服务类型的服务、分区和副本报告的运行状况事件的策略。
| Attribute |
价值 |
| 名字 |
ServiceTypeHealthPolicy |
| minOccurs |
0 |
| maxOccurs |
无限制 |
ApplicationInstanceType complexType
描述 Azure Service Fabric 应用程序的实例。
| Attribute |
价值 |
| 内容 |
4 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ApplicationInstanceType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationInstanceType">
<xs:annotation>
<xs:documentation>Describes an instance of a Azure Service Fabric application.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ApplicationPackageRef">
<xs:complexType>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
</xs:complexType>
</xs:element>
<xs:element name="ServicePackageRef" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" use="required"/>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
</xs:complexType>
</xs:element>
<xs:element name="ServiceTemplates" type="ServiceTemplatesType"/>
<xs:element name="DefaultServices" type="DefaultServicesType"/>
</xs:sequence>
<xs:attribute name="Version" type="xs:int" use="required">
<xs:annotation>
<xs:documentation>The version of the ApplicationInstance document.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="ApplicationInstanceAttrGroup"/>
<xs:attributeGroup ref="ApplicationManifestAttrGroup"/>
</xs:complexType>
属性详细信息
版本
ApplicationInstance 文档的版本。
| Attribute |
价值 |
| 名字 |
版本 |
| 类型 |
xs:int |
| 使用 |
(必需) |
内容元素详细信息
ApplicationPackageRef
| Attribute |
价值 |
| 名字 |
ApplicationPackageRef |
ServicePackageRef
| Attribute |
价值 |
| 名字 |
ServicePackageRef |
| maxOccurs |
无限制 |
ServiceTemplates
DefaultServices
ApplicationManifestType complexType
以声明方式描述应用程序类型和版本。 引用构成服务的一个或多个服务清单来构成应用程序类型。 可以使用参数化应用程序设置重写构成服务的配置设置。 默认服务、服务模板、主体、策略、诊断设置和证书也可以在应用程序级别声明。
| Attribute |
价值 |
| 内容 |
9 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ApplicationManifestType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationManifestType">
<xs:annotation>
<xs:documentation>Declaratively describes the application type and version. One or more service manifests of the constituent services are referenced to compose an application type. Configuration settings of the constituent services can be overridden using parameterized application settings. Default services, service templates, principals, policies, diagnostics set-up, and certificates can also declared at the application level.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Description" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Text describing this application.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Parameters" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares the parameters that are used in this application manifest. The value of these parameters can be supplied when the application is instantiated and can be used to override application or service configuration settings.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Parameter" block="" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>An application parameter to be used in this manifest. The parameter value can be changed during application instantiation, or, if no value is supplied the default value is used.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>The name of the parameter to be used in the manifest as "[Name]".</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="DefaultValue" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Default value for the parameter, used if the parameter value is not provided during application instantiation.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ServiceManifestImport" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Imports a service manifest created by the service developer. A service manifest must be imported for each constituent service in the application. Configuration overrides and policies can be declared for the service manifest.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ServiceManifestRef" type="ServiceManifestRefType"/>
<xs:element name="ConfigOverrides" minOccurs="0">
<xs:annotation>
<xs:documentation>Describes configuration overrides for the imported service manifest. Configuration overrides allow the flexibility of re-using the same service manifests across multiple application types by overriding the service manifest's configuration only when used with a particular application type. Configuration overrides can change any default configuration in a service manifest as long as default configuration is defined using the Settings.xml in the ConfigPackage folder. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ConfigOverride" type="ConfigOverrideType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ResourceOverrides" type="ResourceOverridesType" minOccurs="0"/>
<xs:element name="EnvironmentOverrides" type="EnvironmentOverridesType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Policies" type="ServiceManifestImportPoliciesType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ServiceTemplates" type="ServiceTemplatesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares the set of permitted service types that can be created dynamically inside the application instance. Default configuration values, such as replication factor, are specified and used as a template for creating service instances.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DefaultServices" type="DefaultServicesType" minOccurs="0">
</xs:element>
<xs:element name="Principals" type="SecurityPrincipalsType" minOccurs="0"/>
<xs:element name="Policies" type="ApplicationPoliciesType" minOccurs="0"/>
<xs:element name="Diagnostics" type="DiagnosticsType" minOccurs="0"/>
<xs:element name="Certificates" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares certificates used to secure endpoints or encrypt secrets within the application manifest or a cluster manifest.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="SecretsCertificate" type="FabricCertificateType" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares a certificate used to encrypt sensitive information within the application manifest. The application author uses the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt the sensitive information, which is copied to a Parameter in the ConfigOverrides section.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="ApplicationManifestAttrGroup"/>
</xs:complexType>
内容元素详细信息
说明
描述此应用程序的文本。
| Attribute |
价值 |
| 名字 |
说明 |
| 类型 |
xs:string |
| minOccurs |
0 |
参数
声明此应用程序清单中使用的参数。 实例化应用程序时,可以提供这些参数的值,并可用于替代应用程序或服务配置设置。
| Attribute |
价值 |
| 名字 |
参数 |
| minOccurs |
0 |
ServiceManifestImport
导入服务开发人员创建的服务清单。 必须为应用程序中的每个构成服务导入服务清单。 可以为服务清单声明配置替代和策略。
| Attribute |
价值 |
| 名字 |
ServiceManifestImport |
| maxOccurs |
无限制 |
ServiceTemplates
声明可在应用程序实例内动态创建的允许的服务类型集。 默认配置值(如复制因子)指定并用作用于创建服务实例的模板。
DefaultServices
Principals
策略
诊断
证书
声明用于保护终结点或加密应用程序清单或群集清单中的机密的证书。
| Attribute |
价值 |
| 名字 |
证书 |
| minOccurs |
0 |
ApplicationPackageType complexType
ApplicationPackage 表示节点所需的版本控制的应用程序信息。
| Attribute |
价值 |
| 内容 |
2 个元素,2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ApplicationPackageType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationPackageType">
<xs:annotation>
<xs:documentation>ApplicationPackage represents the versioned Application information required by the node.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="DigestedEnvironment" type="EnvironmentType"/>
<xs:element name="DigestedCertificates">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="SecretsCertificate" type="FabricCertificateType" minOccurs="0"/>
<xs:element name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0"/>
</xs:sequence>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ApplicationTypeName" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Type identifier for this application.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
<xs:attributeGroup ref="ApplicationInstanceAttrGroup"/>
<xs:attribute name="ContentChecksum" type="xs:string">
<xs:annotation>
<xs:documentation>Checksum value of this ApplicationPackage content</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
应用类型名称
此应用程序的类型标识符。
| Attribute |
价值 |
| 名字 |
应用类型名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
ContentChecksum
此 ApplicationPackage 内容的校验和值
| Attribute |
价值 |
| 名字 |
ContentChecksum |
| 类型 |
xs:string |
内容元素详细信息
DigestedEnvironment
DigestedCertificates
| Attribute |
价值 |
| 名字 |
DigestedCertificates |
ApplicationPoliciesType complexType
描述在应用程序级别应用的策略(日志收集、默认运行方式、运行状况和安全访问)。
| Attribute |
价值 |
| 内容 |
4 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ApplicationPoliciesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationPoliciesType">
<xs:annotation>
<xs:documentation>Describes the policies (log collection, default run-as, health, and security access) to be applied at the application level.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="LogCollectionPolicies" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies whether log collection is enabled. Works only in an Azure cluster environment</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="LogCollectionPolicy">
<xs:complexType>
<xs:attribute name="Path" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DefaultRunAsPolicy" minOccurs="0">
<xs:annotation>
<xs:documentation>Specify a default user account for all service code packages that don't have a specific RunAsPolicy defined in the ServiceManifestImport section.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="UserRef" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The user account that the service code packages will run as. The user account must be declared in the Principals section. Often it is preferable to run the setup entry point using a local system account rather than an administrators account.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="HealthPolicy" type="ApplicationHealthPolicyType" minOccurs="0"/>
<xs:element name="SecurityAccessPolicies" minOccurs="0">
<xs:annotation>
<xs:documentation>List of security policies applied to resources at the application level.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="SecurityAccessPolicy" type="SecurityAccessPolicyType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
内容元素详细信息
LogCollectionPolicies
指定是否启用日志收集。 仅适用于 Azure 群集环境
| Attribute |
价值 |
| 名字 |
LogCollectionPolicies |
| minOccurs |
0 |
DefaultRunAsPolicy
为 ServiceManifestImport 节中未定义特定 RunAsPolicy 的所有服务代码包指定默认用户帐户。
| Attribute |
价值 |
| 名字 |
DefaultRunAsPolicy |
| minOccurs |
0 |
HealthPolicy
SecurityAccessPolicies
应用于应用程序级别的资源的安全策略列表。
| Attribute |
价值 |
| 名字 |
SecurityAccessPolicies |
| minOccurs |
0 |
AzureBlobETWType complexType
介绍 ETW 事件的 Azure Blob 存储目标。 仅适用于 Azure 环境。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
AzureBlobETWType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AzureBlobETWType">
<xs:annotation>
<xs:documentation>Describes an Azure blob store destination for ETW events. Works only in Azure environment.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="AzureBlobType">
<xs:attributeGroup ref="LevelFilter"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
AzureBlobType complexType
介绍诊断数据的 Azure Blob 存储目标。 仅适用于 Azure 群集环境。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
AzureBlobType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AzureBlobType">
<xs:annotation>
<xs:documentation>Describes an Azure blob store destination for diagnostics data. Works only in Azure cluster environment.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="AzureStoreBaseType">
<xs:attributeGroup ref="ContainerName"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
AzureRoleType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
AzureRoleType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AzureRoleType">
<xs:attribute name="RoleName" type="xs:string" use="required"/>
<xs:attribute name="NodeTypeRef" type="xs:string" use="required"/>
<xs:attribute name="SeedNodeCount" type="xs:int" use="optional" default="0"/>
</xs:complexType>
属性详细信息
角色名称
| Attribute |
价值 |
| 名字 |
角色名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
NodeTypeRef
| Attribute |
价值 |
| 名字 |
NodeTypeRef |
| 类型 |
xs:string |
| 使用 |
(必需) |
SeedNodeCount
| Attribute |
价值 |
| 名字 |
SeedNodeCount |
| 类型 |
xs:int |
| 使用 |
optional |
| 默认 |
0 |
AzureStoreBaseType complexType
描述 Azure 存储帐户中的诊断存储。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
AzureStoreBaseType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AzureStoreBaseType">
<xs:annotation>
<xs:documentation>Describes a diagnostic store in an Azure storage account.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="Parameters" minOccurs="0"/>
</xs:sequence>
<xs:attributeGroup ref="IsEnabled"/>
<xs:attributeGroup ref="ConnectionString"/>
<xs:attribute name="ConnectionStringIsEncrypted" type="xs:string" use="required"/>
<xs:attributeGroup ref="UploadIntervalInMinutes"/>
<xs:attributeGroup ref="DataDeletionAgeInDays"/>
</xs:complexType>
属性详细信息
ConnectionStringIsEncrypted
| Attribute |
价值 |
| 名字 |
ConnectionStringIsEncrypted |
| 类型 |
xs:string |
| 使用 |
(必需) |
内容元素详细信息
没有
| Attribute |
价值 |
| 参考 |
参数 |
| minOccurs |
0 |
BlackbirdRoleType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、4 个属性(s) |
| 定义 |
全球 |
| 名字 |
BlackbirdRoleType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="BlackbirdRoleType">
<xs:attribute name="EnvironmentName" type="xs:string" use="required"/>
<xs:attribute name="RoleName" type="xs:string" use="required"/>
<xs:attribute name="NodeTypeRef" type="xs:string" use="required"/>
<xs:attribute name="IsSeedNode" type="xs:boolean" use="optional" default="0"/>
</xs:complexType>
属性详细信息
环境名称
| Attribute |
价值 |
| 名字 |
环境名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
角色名称
| Attribute |
价值 |
| 名字 |
角色名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
NodeTypeRef
| Attribute |
价值 |
| 名字 |
NodeTypeRef |
| 类型 |
xs:string |
| 使用 |
(必需) |
IsSeedNode
| Attribute |
价值 |
| 名字 |
IsSeedNode |
| 类型 |
xs:boolean |
| 使用 |
optional |
| 默认 |
0 |
CertificatesType complexType
| Attribute |
价值 |
| 内容 |
4 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
CertificatesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="CertificatesType">
<xs:all>
<xs:element name="ClusterCertificate" type="FabricCertificateType" minOccurs="0">
<xs:annotation>
<xs:documentation>The certificate used to secure the intra cluster communication.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServerCertificate" type="FabricCertificateType" minOccurs="0">
<xs:annotation>
<xs:documentation>The certificate used to secure the intra cluster communication.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ClientCertificate" type="FabricCertificateType" minOccurs="0">
<xs:annotation>
<xs:documentation>The default admin role client certificate used to secure client server communication.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UserRoleClientCertificate" type="FabricCertificateType" minOccurs="0">
<xs:annotation>
<xs:documentation>The default user role client certificate used to secure client server communication.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
内容元素详细信息
ClusterCertificate
用于保护群集内部通信的证书。
ServerCertificate
用于保护群集内部通信的证书。
客户端证书
用于保护客户端服务器通信的默认管理员角色客户端证书。
UserRoleClientCertificate
用于保护客户端服务器通信的默认用户角色客户端证书。
ClusterManifestType complexType
介绍 Azure Service Fabric 群集。
| Attribute |
价值 |
| 内容 |
4 个元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
ClusterManifestType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ClusterManifestType">
<xs:annotation>
<xs:documentation>Describes a Azure Service Fabric Cluster.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="NodeTypes" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="NodeType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Describe a node type.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="Endpoints" type="FabricEndpointsType" minOccurs="0">
<xs:annotation>
<xs:documentation>Describe the endpoints associated with this node type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="KtlLoggerSettings" type="FabricKtlLoggerSettingsType" minOccurs="0">
<xs:annotation>
<xs:documentation>Describe the KtlLogger information associated with this node type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LogicalDirectories" minOccurs="0">
<xs:annotation>
<xs:documentation>Describe the LogicalDirectories settings associated with this node type</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LogicalDirectory" type="LogicalDirectoryType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Certificates" type="CertificatesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Describe the certificates associated with this node type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PlacementProperties" minOccurs="0">
<xs:annotation>
<xs:documentation>Describe the properties for this NodeType that will be used as placement constraints</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Property" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Capacities" minOccurs="0">
<xs:annotation>
<xs:documentation>The capacities of various metrics for this node type</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Capacity" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SfssRgPolicies" minOccurs="0">
<xs:annotation>
<xs:documentation>The SF system services resource governance policy for this node type</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="SfssRgPolicy" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the NodeType</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Infrastructure">
<xs:complexType>
<xs:choice>
<xs:element name="WindowsServer">
<xs:complexType>
<xs:complexContent>
<xs:extension base="WindowsInfrastructureType">
<xs:attribute name="IsScaleMin" type="xs:boolean" default="false"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="Linux">
<xs:complexType>
<xs:complexContent>
<xs:extension base="LinuxInfrastructureType">
<xs:attribute name="IsScaleMin" type="xs:boolean" default="false"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="WindowsAzure">
<xs:complexType>
<xs:sequence>
<xs:element name="Roles">
<xs:complexType>
<xs:sequence>
<xs:element name="Role" type="AzureRoleType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="WindowsAzureStaticTopology">
<xs:complexType>
<xs:complexContent>
<xs:extension base="WindowsInfrastructureType"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="Blackbird">
<xs:complexType>
<xs:sequence>
<xs:element name="Roles">
<xs:complexType>
<xs:sequence>
<xs:element name="Role" type="BlackbirdRoleType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PaaS">
<xs:complexType>
<xs:all>
<xs:element name="Roles">
<xs:complexType>
<xs:sequence>
<xs:element name="Role" type="PaaSRoleType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Votes">
<xs:complexType>
<xs:sequence>
<xs:element name="Vote" type="PaaSVoteType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="FabricSettings" type="SettingsOverridesType" minOccurs="0"/>
<xs:element name="Certificates" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="SecretsCertificate" type="FabricCertificateType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>Name of the Cluster.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Version" use="required">
<xs:annotation>
<xs:documentation>User-defined version string for the cluster manifest document.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Description">
<xs:annotation>
<xs:documentation>Description for the Cluster Manifest.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
群集的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 使用 |
(必需) |
版本
群集清单文档的用户定义版本字符串。
| Attribute |
价值 |
| 名字 |
版本 |
| 使用 |
(必需) |
说明
群集清单的说明。
内容元素详细信息
NodeTypes
| Attribute |
价值 |
| 名字 |
NodeTypes |
| minOccurs |
1 |
基础结构
FabricSettings
证书
| Attribute |
价值 |
| 名字 |
证书 |
| minOccurs |
0 |
CodePackageType complexType
描述支持定义的服务类型的代码包。 当针对其中一种服务类型实例化服务时,此清单中声明的所有代码包都通过运行入口点来激活。 生成的进程预期会在运行时注册受支持的服务类型。 当有多个代码包时,每当系统查找任何声明的服务类型时,它们都会激活。
| Attribute |
价值 |
| 内容 |
3 个元素(s)、2 个属性(s) |
| 定义 |
全球 |
| 名字 |
CodePackageType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="CodePackageType">
<xs:annotation>
<xs:documentation>Describes a code package that supports a defined service type. When a service is instantiated against one of these service types, all code packages declared in this manifest are activated by running their entry points. The resulting processes are expected to register the supported service types at run time. When there are multiple code packages, they are all activated whenever the system looks for any one of the declared service types.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SetupEntryPoint" minOccurs="0">
<xs:annotation>
<xs:documentation>A privileged entry point that by default runs with the same credentials as Service Fabric (typically the NETWORKSERVICE account) before any other entry point. The executable specified by EntryPoint is typically the long-running service host. The presence of a separate setup entry point avoids having to run the service host with high privileges for extended periods of time.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ExeHost" type="ExeHostEntryPointType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EntryPoint" type="EntryPointDescriptionType" minOccurs="1"/>
<xs:element name="EnvironmentVariables" type="EnvironmentVariablesType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attributeGroup ref="VersionedName"/>
<xs:attribute name="IsShared" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Indicates if the contents of this code package are shared by other code packages. If true, on an upgrade of this code package, all code packages will be restarted. This attribute is currently not supported and it's value will be ignored.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IsActivator" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>This attribute is for internal use only.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
IsShared
指示此代码包的内容是否由其他代码包共享。 如果为 true,请在升级此代码包时重启所有代码包。 此属性当前不受支持,并且该值将被忽略。
| Attribute |
价值 |
| 名字 |
IsShared |
| 类型 |
xs:boolean |
| 默认 |
假 |
IsActivator
此属性仅供内部使用。
| Attribute |
价值 |
| 名字 |
IsActivator |
| 类型 |
xs:boolean |
| 默认 |
假 |
内容元素详细信息
SetupEntryPoint
默认情况下,特权入口点在任何其他入口点之前使用与 Service Fabric(通常是 NETWORKSERVICE 帐户)相同的凭据运行。 EntryPoint 指定的可执行文件通常是长时间运行的服务主机。 存在单独的设置入口点可避免长时间使用高特权运行服务主机。
| Attribute |
价值 |
| 名字 |
SetupEntryPoint |
| minOccurs |
0 |
EntryPoint
环境变量
ConfigOverrideType complexType
描述导入的服务清单中特定配置包的配置替代。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ConfigOverrideType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigOverrideType">
<xs:annotation>
<xs:documentation>Describes the configuration overrides for a particular config package in the imported service manifest.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Settings" type="SettingsOverridesType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>The name of the configuration package in the service manifest which contains the setting(s) to be overridden.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
服务清单中要重写的设置(s)的配置包的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 使用 |
(必需) |
内容元素详细信息
Settings
ConfigPackageDescriptionType complexType
声明一个由 Name 属性命名的文件夹,其中包含 Settings.xml 文件。 此文件包含进程可以在运行时读回的用户定义的键值对设置部分。 在升级期间,如果只有 ConfigPackage 版本已更改,则不会重启正在运行的进程。 相反,回调会通知进程配置设置已更改,以便可以动态重新加载这些设置。
| Attribute |
价值 |
| 内容 |
0 元素(s)、4 个属性(s) |
| 定义 |
全球 |
| 名字 |
ConfigPackageDescriptionType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigPackageDescriptionType">
<xs:annotation>
<xs:documentation>Declares a folder, named by the Name attribute, that contains a Settings.xml file. This file contains sections of user-defined, key-value pair settings that the process can read back at run time. During an upgrade, if only the ConfigPackage version has changed, then the running process is not restarted. Instead, a callback notifies the process that configuration settings have changed so they can be reloaded dynamically.</xs:documentation>
</xs:annotation>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>Name of the versioned item.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="SectionName" use="required">
<xs:annotation>
<xs:documentation>Section Name of the ConfigPackage Settings.xml.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="MountPoint" type="xs:string" use="optional" default=""/>
<xs:attribute name="EnvironmentVariableName" type="xs:string" use="optional" default=""/>
</xs:complexType>
属性详细信息
名称
版本控制项的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 使用 |
(必需) |
SectionName
ConfigPackage Settings.xml的节名称。
| Attribute |
价值 |
| 名字 |
SectionName |
| 使用 |
(必需) |
挂载点
| Attribute |
价值 |
| 名字 |
挂载点 |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
|
EnvironmentVariableName
| Attribute |
价值 |
| 名字 |
EnvironmentVariableName |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
|
ConfigPackagePoliciesType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ConfigPackagePoliciesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigPackagePoliciesType">
<xs:sequence>
<xs:element name="ConfigPackage" type="ConfigPackageDescriptionType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="CodePackageRef" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
CodePackageRef
| Attribute |
价值 |
| 名字 |
CodePackageRef |
| 使用 |
(必需) |
内容元素详细信息
ConfigPackage
ConfigPackageType complexType
在 PackageRoot 下声明一个文件夹,该文件夹由 Name 属性命名,其中包含 Settings.xml 文件。 此文件包含进程可以在运行时读回的用户定义的键值对设置部分。 在升级期间,如果只有 ConfigPackage 版本已更改,则不会重启正在运行的进程。 相反,回调会通知进程配置设置已更改,以便可以动态重新加载这些设置。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ConfigPackageType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigPackageType">
<xs:annotation>
<xs:documentation>Declares a folder, named by the Name attribute, and PackageRoot that contains a Settings.xml file. This file contains sections of user-defined, key-value pair settings that the process can read back at run time. During an upgrade, if only the ConfigPackage version has changed, then the running process is not restarted. Instead, a callback notifies the process that configuration settings have changed so they can be reloaded dynamically.</xs:documentation>
</xs:annotation>
<xs:attributeGroup ref="VersionedName"/>
</xs:complexType>
ContainerCertificateType complexType
指定要向容器环境公开的 X509 证书的信息。 证书必须安装在所有群集节点的 LocalMachine 存储中。
应用程序启动时,运行时读取证书并生成 PFX 文件和密码(在 Windows 上)或 PEM 文件(在 Linux 上)。
可以使用Certificates_ServicePackageName_CodePackageName_CertName_PFX和Certificates_ServicePackageName_CodePackageName_CertName_Password环境变量在容器中访问 PFX 文件和密码。 可以使用Certificates_ServicePackageName_CodePackageName_CertName_PEM和Certificates_ServicePackageName_CodePackageName_CertName_PrivateKey环境变量在容器中访问 PEM 文件。
| Attribute |
价值 |
| 内容 |
0 元素(s)、8 个属性(s) |
| 定义 |
全球 |
| 名字 |
ContainerCertificateType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerCertificateType">
<xs:annotation>
<xs:documentation>Specifies information about an X509 certificate which is to be exposed to the container environment. The certificate must be installed in the LocalMachine store of all the cluster nodes.
When the application starts, the runtime reads the certificate and generates a PFX file and password (on Windows) or a PEM file (on Linux).
The PFX file and password are accessible in the container using the Certificates_ServicePackageName_CodePackageName_CertName_PFX and
Certificates_ServicePackageName_CodePackageName_CertName_Password environment variables. The PEM file is accessible in the container using the
Certificates_ServicePackageName_CodePackageName_CertName_PEM and Certificates_ServicePackageName_CodePackageName_CertName_PrivateKey environment variables.</xs:documentation>
</xs:annotation>
<xs:attribute name="X509StoreName" type="xs:string" default="My">
<xs:annotation>
<xs:documentation>The store name for the X509 certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="X509FindValue" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The thumbprint of the X509 certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DataPackageRef" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The name of data package that has the certificate files.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DataPackageVersion" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The version of data package that has the certificate files.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RelativePath" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The relative path to the certificate file inside data package.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Password" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Password/Private key for the certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IsPasswordEncrypted" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>If true, the value of password is encrypted.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Identifier for the specific certificate information. This name is used to set the environment variable in the container.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
X509StoreName
X509 证书的存储名称。
| Attribute |
价值 |
| 名字 |
X509StoreName |
| 类型 |
xs:string |
| 默认 |
我 |
X509FindValue
X509 证书的指纹。
| Attribute |
价值 |
| 名字 |
X509FindValue |
| 类型 |
xs:string |
| 使用 |
optional |
DataPackageRef
具有证书文件的数据包的名称。
| Attribute |
价值 |
| 名字 |
DataPackageRef |
| 类型 |
xs:string |
| 使用 |
optional |
DataPackageVersion
包含证书文件的数据包的版本。
| Attribute |
价值 |
| 名字 |
DataPackageVersion |
| 类型 |
xs:string |
| 使用 |
optional |
RelativePath
数据包中证书文件的相对路径。
| Attribute |
价值 |
| 名字 |
RelativePath |
| 类型 |
xs:string |
| 使用 |
optional |
密码
证书的密码/私钥。
| Attribute |
价值 |
| 名字 |
密码 |
| 类型 |
xs:string |
| 使用 |
optional |
IsPasswordEncrypted
如果为 true,则加密密码的值。
| Attribute |
价值 |
| 名字 |
IsPasswordEncrypted |
| 类型 |
xs:boolean |
| 默认 |
假 |
名称
特定证书信息的标识符。 此名称用于在容器中设置环境变量。
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
ContainerHealthConfigType complexType
指定容器的 docker HEALTHCHECK 集成选项。
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ContainerHealthConfigType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerHealthConfigType">
<xs:annotation>
<xs:documentation>Specifies docker HEALTHCHECK integration options for the container.</xs:documentation>
</xs:annotation>
<xs:attribute name="IncludeDockerHealthStatusInSystemHealthReport" type="xs:boolean" use="optional" default="true">
<xs:annotation>
<xs:documentation>If the container has HEALTHCHECK enabled and docker reports health_status event for this container,
Service Fabric will include this as part of system reported health. When health_status is unhealthy
Service Fabric will report a health warning. By default it is set to true.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RestartContainerOnUnhealthyDockerHealthStatus" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>If the container has HEALTHCHECK enabled and docker reports health_status event for this container,
Service Fabric will restart the container when health_status reported by docker is unhealthy.
By default it is set to false.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
IncludeDockerHealthStatusInSystemHealthReport
如果容器已启用 HEALTHCHECK,并且 docker 报告此容器health_status事件,Service Fabric 会将它作为系统报告的运行状况的一部分包含。 当health_status运行不正常时,Service Fabric 将报告运行状况警告。 默认情况下它设置为 true。
| Attribute |
价值 |
| 名字 |
IncludeDockerHealthStatusInSystemHealthReport |
| 类型 |
xs:boolean |
| 使用 |
optional |
| 默认 |
是 |
RestartContainerOnUnhealthyDockerHealthStatus
如果容器已启用 HEALTHCHECK,并且 docker 报告此容器health_status事件,则当 docker 报告health_status运行不正常时,Service Fabric 将重新启动容器。
默认情况下它设置为 false。
| Attribute |
价值 |
| 名字 |
RestartContainerOnUnhealthyDockerHealthStatus |
| 类型 |
xs:boolean |
| 使用 |
optional |
| 默认 |
假 |
ContainerHostEntryPointType complexType
| Attribute |
价值 |
| 内容 |
4 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ContainerHostEntryPointType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerHostEntryPointType">
<xs:sequence>
<!--container image name-->
<xs:element name="ImageName" type="xs:string">
<xs:annotation>
<xs:documentation>The repo and image on https://hub.docker.com or Azure Container Registry.</xs:documentation>
</xs:annotation>
</xs:element>
<!--comma delimited list of commands for container-->
<xs:element name="Commands" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Pass a comma delimited list of commands to the container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EntryPoint" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="FromSource" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
内容元素详细信息
图像名称
存储库和映像位于或 Azure 容器注册表上 https://hub.docker.com 。
| Attribute |
价值 |
| 名字 |
图像名称 |
| 类型 |
xs:string |
指令
将逗号分隔的命令列表传递给容器。
| Attribute |
价值 |
| 名字 |
指令 |
| 类型 |
xs:string |
| minOccurs |
0 |
| maxOccurs |
1 |
EntryPoint
| Attribute |
价值 |
| 名字 |
EntryPoint |
| 类型 |
xs:string |
| minOccurs |
0 |
| maxOccurs |
1 |
FromSource
| Attribute |
价值 |
| 名字 |
FromSource |
| 类型 |
xs:string |
| minOccurs |
0 |
| maxOccurs |
1 |
ContainerHostPoliciesType complexType
| Attribute |
价值 |
| 内容 |
10 个元素,8 个特性(s) |
| 定义 |
全球 |
| 名字 |
ContainerHostPoliciesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerHostPoliciesType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="RepositoryCredentials" type="RepositoryCredentialsType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Credentials for container image repository to pull images from.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="HealthConfig" type="ContainerHealthConfigType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies docker HEALTHCHECK integration options for the container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PortBinding" type="PortBindingType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies which endpoint resource to bind to the exposed container port.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CertificateRef" type="ContainerCertificateType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies information for a certificate which will be exposed to the container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LogConfig" type="ContainerLoggingDriverType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the logging driver for a container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NetworkConfig" type="ContainerNetworkConfigType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the network configuration for a container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Volume" type="ContainerVolumeType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies the volume to be bound to container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SecurityOption" type="SecurityOptionsType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies securityoptions for the container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ImageOverrides" type="ImageOverridesType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Image names corresponding to OS build number to be launched.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Label" type="ContainerLabelType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies the labels for the container.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:attribute name="CodePackageRef" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="UseDefaultRepositoryCredentials" type="xs:string" use="optional" default="false">
<xs:annotation>
<xs:documentation>Use the default repository credentials specified in clusterManifest.xml
instead of the credentials specified in the "RepositoryCredentials" tag inside ApplicationManifest.xml.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UseTokenAuthenticationCredentials" type="xs:string" use="optional" default="false">
<xs:annotation>
<xs:documentation>Use MSI token authentication (or a custom specified endpoint) to obtain a token used for authentication.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Isolation" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>Isolation mode for container. Valid values are default, process or Hyper-V (only supported for Windows containers).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Hostname" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>Specify Hostname for container.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ContainersRetentionCount" use="optional" type="xs:string" default="0">
<xs:annotation>
<xs:documentation>Number of containers to leave behind when container repeatedly dies. By default this is set to 0 so no containers will be left behind.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="AutoRemove" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>Flag indicating whether removal of containers will occur automatically (true) or not (false) if the container is killed. If false SF manually remove the containers.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RunInteractive" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>Run container with interactive flag enabled. Valid values are true/false. false by default.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
CodePackageRef
| Attribute |
价值 |
| 名字 |
CodePackageRef |
| 使用 |
(必需) |
UseDefaultRepositoryCredentials
使用 clusterManifest.xml 中指定的默认存储库凭据,而不是 ApplicationManifest.xml内“RepositoryCredentials”标记中指定的凭据。
| Attribute |
价值 |
| 名字 |
UseDefaultRepositoryCredentials |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
假 |
UseTokenAuthenticationCredentials
使用 MSI 令牌身份验证(或自定义指定的终结点)获取用于身份验证的令牌。
| Attribute |
价值 |
| 名字 |
UseTokenAuthenticationCredentials |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
假 |
隔离
容器的隔离模式。 有效值为默认值、进程或 Hyper-V(仅支持 Windows 容器)。
| Attribute |
价值 |
| 名字 |
隔离 |
| 使用 |
optional |
| 类型 |
xs:string |
主机名
指定容器的主机名。
| Attribute |
价值 |
| 名字 |
主机名 |
| 使用 |
optional |
| 类型 |
xs:string |
ContainersRetentionCount
容器重复死亡时要留下的容器数。 默认情况下,此值设置为 0,因此不会留下任何容器。
| Attribute |
价值 |
| 名字 |
ContainersRetentionCount |
| 使用 |
optional |
| 类型 |
xs:string |
| 默认 |
0 |
AutoRemove
指示如果容器被终止,则是否自动(true)或不发生(false)删除容器的标志。 如果为 false SF,则手动删除容器。
| Attribute |
价值 |
| 名字 |
AutoRemove |
| 使用 |
optional |
| 类型 |
xs:string |
RunInteractive
运行启用了交互式标志的容器。 有效值为 true/false。 默认情况下为 False。
| Attribute |
价值 |
| 名字 |
RunInteractive |
| 使用 |
optional |
| 类型 |
xs:string |
内容元素详细信息
存储库凭据
用于从中拉取映像的容器映像存储库的凭据。
HealthConfig
指定容器的 docker HEALTHCHECK 集成选项。
PortBinding
指定要绑定到公开的容器端口的终结点资源。
CertificateRef
指定将公开给容器的证书的信息。
日志配置
指定容器的日志记录驱动程序。
NetworkConfig
指定容器的网络配置。
音量
指定要绑定到容器的卷。
SecurityOption
指定容器的安全选项。
ImageOverrides
与要启动的 OS 内部版本号对应的映像名称。
标签
指定容器的标签。
ContainerLabelType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ContainerLabelType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerLabelType">
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Value" type="xs:string" use="required"/>
</xs:complexType>
属性详细信息
名称
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
价值
| Attribute |
价值 |
| 名字 |
价值 |
| 类型 |
xs:string |
| 使用 |
(必需) |
ContainerLoggingDriverType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ContainerLoggingDriverType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerLoggingDriverType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="DriverOption" type="DriverOptionType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Driver options to be passed to driver.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:attribute name="Driver" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
Driver
| Attribute |
价值 |
| 名字 |
Driver |
| 使用 |
(必需) |
内容元素详细信息
DriverOption
要传递给驱动程序的驱动程序选项。
ContainerNetworkConfigType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ContainerNetworkConfigType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerNetworkConfigType">
<xs:attribute name="NetworkType" use="required" type="xs:string">
<xs:annotation>
<xs:documentation>NetworkType. Currently supported types are "Open" and "Isolated".</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
网络类型
NetworkType。 当前支持的类型为“Open”和“Isolated”。
| Attribute |
价值 |
| 名字 |
网络类型 |
| 使用 |
(必需) |
| 类型 |
xs:string |
ContainerNetworkPolicyEndpointBindingType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ContainerNetworkPolicyEndpointBindingType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerNetworkPolicyEndpointBindingType">
<xs:attribute name="EndpointRef">
<xs:annotation>
<xs:documentation>The name of the endpoint, which must be declared in the Resources section of the service manifest.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
EndpointRef
必须在服务清单的“资源”部分中声明的终结点的名称。
| Attribute |
价值 |
| 名字 |
EndpointRef |
ContainerNetworkPolicyType complexType
描述服务包与容器网络之间的关联,以及服务包终结点与容器网络之间的关联( 可选)。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ContainerNetworkPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerNetworkPolicyType">
<xs:annotation>
<xs:documentation>Describes association between a service package and a container network and optionally association between endpoints of the service package and the container network.</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="EndpointBinding" type="ContainerNetworkPolicyEndpointBindingType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies an endpoint that should be exposed on the container network.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:attribute name="NetworkRef" use="required">
<xs:annotation>
<xs:documentation>The name of the container network (case-insensitive). It has to be name of a container network already created or reserved names including "Open" or "NAT".</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
NetworkRef
容器网络的名称(不区分大小写)。 它必须是已创建或保留名称(包括“Open”或“NAT”)的容器网络的名称。
| Attribute |
价值 |
| 名字 |
NetworkRef |
| 使用 |
(必需) |
内容元素详细信息
EndpointBinding
指定应在容器网络上公开的终结点。
ContainerVolumeType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、4 个属性(s) |
| 定义 |
全球 |
| 名字 |
ContainerVolumeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerVolumeType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="DriverOption" type="DriverOptionType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Driver options to be passed to driver.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:attribute name="Source" use="required">
<xs:annotation>
<xs:documentation>The source folder which can be a folder in the VM that hosts the containers or a persistent remote store.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Destination" use="required">
<xs:annotation>
<xs:documentation>The location that the Source is mapped to within the running container. Thus, your destination can't be a location that already exists within your container.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Driver" use="optional">
<xs:annotation>
<xs:documentation>The driver name for the Azure Files volume plugin is "sfazurefile".</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="IsReadOnly" type="xs:boolean" default="false"/>
</xs:complexType>
属性详细信息
来源
源文件夹,可以是托管容器或持久性远程存储的 VM 中的文件夹。
| Attribute |
价值 |
| 名字 |
来源 |
| 使用 |
(必需) |
目的地
源映射到正在运行的容器中的位置。 因此,目标不能是容器中已存在的位置。
| Attribute |
价值 |
| 名字 |
目的地 |
| 使用 |
(必需) |
Driver
Azure 文件卷插件的驱动程序名称为“sfazurefile”。
| Attribute |
价值 |
| 名字 |
Driver |
| 使用 |
optional |
IsReadOnly
| Attribute |
价值 |
| 名字 |
IsReadOnly |
| 类型 |
xs:boolean |
| 默认 |
假 |
内容元素详细信息
DriverOption
要传递给驱动程序的驱动程序选项。
DataPackageType complexType
声明由 Name 属性命名的文件夹,该文件夹位于 PackageRoot 下,其中包含进程在运行时要使用的静态数据文件。 升级服务清单中列出的任何数据包时,Service Fabric 将回收主机中指定的所有 EXE 和 DLLHOST,并支持包。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
DataPackageType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DataPackageType">
<xs:annotation>
<xs:documentation>Declares a folder, named by the Name attribute, under PackageRoot which contains static data files to be consumed by the process at runtime. Service Fabric will recycle all EXEs and DLLHOSTs specified in the host and support packages when any of the data packages listed in the service manifest are upgraded.</xs:documentation>
</xs:annotation>
<xs:attributeGroup ref="VersionedName"/>
</xs:complexType>
DebugParametersType complexType
指定激活 codepackage 时要附加的调试器的信息。
| Attribute |
价值 |
| 内容 |
4 个元素(s)、10 个属性(s) |
| 定义 |
全球 |
| 名字 |
DebugParametersType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DebugParametersType">
<xs:annotation>
<xs:documentation>Specifies information on debugger to attach when activating codepackage.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ContainerEntryPoint" type="xs:string" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Overridden entrypoint for containers so debugger can be launched.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ContainerMountedVolume" type="xs:string" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Volumes to be mounted inside container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ContainerEnvironmentBlock" type="xs:string" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>EnvironmentBlock for containers.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ContainerLabel" type="xs:string" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Labels for containers in form key=value.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="ProgramExePath">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Arguments">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="EntryPointType" use="optional" default="Main">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Setup"/>
<xs:enumeration value="Main"/>
<xs:enumeration value="All"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="CodePackageLinkFolder">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="ConfigPackageLinkFolder">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="DataPackageLinkFolder">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="LockFile">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="WorkingFolder">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="DebugParametersFile">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="EnvironmentBlock">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
ProgramExePath
| Attribute |
价值 |
| 名字 |
ProgramExePath |
Arguments
| Attribute |
价值 |
| 名字 |
Arguments |
EntryPointType
| Attribute |
价值 |
| 名字 |
EntryPointType |
| 使用 |
optional |
| 默认 |
主要 |
CodePackageLinkFolder
| Attribute |
价值 |
| 名字 |
CodePackageLinkFolder |
ConfigPackageLinkFolder
| Attribute |
价值 |
| 名字 |
ConfigPackageLinkFolder |
DataPackageLinkFolder
| Attribute |
价值 |
| 名字 |
DataPackageLinkFolder |
LockFile
WorkingFolder
| Attribute |
价值 |
| 名字 |
WorkingFolder |
DebugParametersFile
| Attribute |
价值 |
| 名字 |
DebugParametersFile |
EnvironmentBlock
| Attribute |
价值 |
| 名字 |
EnvironmentBlock |
内容元素详细信息
ContainerEntryPoint
重写容器的入口点,以便可以启动调试器。
| Attribute |
价值 |
| 名字 |
ContainerEntryPoint |
| 类型 |
xs:string |
| minOccurs |
0 |
| maxOccurs |
无限制 |
ContainerMountedVolume
要装载到容器内的卷。
| Attribute |
价值 |
| 名字 |
ContainerMountedVolume |
| 类型 |
xs:string |
| minOccurs |
0 |
| maxOccurs |
无限制 |
ContainerEnvironmentBlock
容器的 EnvironmentBlock。
| Attribute |
价值 |
| 名字 |
ContainerEnvironmentBlock |
| 类型 |
xs:string |
| minOccurs |
0 |
| maxOccurs |
无限制 |
ContainerLabel
窗体键=value 中容器的标签。
| Attribute |
价值 |
| 名字 |
ContainerLabel |
| 类型 |
xs:string |
| minOccurs |
0 |
| maxOccurs |
无限制 |
DefaultServicesType complexType
声明每当针对此应用程序类型实例化应用程序时自动创建的服务实例。
| Attribute |
价值 |
| 内容 |
2 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
DefaultServicesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DefaultServicesType">
<xs:annotation>
<xs:documentation>Declares service instances that are automatically created whenever an application is instantiated against this application type.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Service">
<xs:annotation>
<xs:documentation>Declares a service to be created automatically when the application is instantiated.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0">
<xs:element name="StatelessService" type="StatelessServiceType"/>
<xs:element name="StatefulService" type="StatefulServiceType"/>
</xs:choice>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The service name, used to form the fully qualified application name URI. The fully qualified name URI of the service would be: fabric:/ApplicationName/ServiceName.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GeneratedIdRef" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Reference to the auto generated id used by Visual Studio tooling.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ServiceDnsName" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The DNS name of the service.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ServicePackageActivationMode" type="xs:string" use="optional" default="SharedProcess">
<xs:annotation>
<xs:documentation>ServicePackageActivationMode to be used when creating the service. Allowed values are 'SharedProcess' and 'ExclusiveProcess'. With SharedProcess mode, replica(s) or instance(s) from different partition(s) of service will share same activation of service package on a node. With ExclusiveProcess mode, each replica or instance of service will have its own dedicated activation of service package.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="ServiceGroup">
<xs:annotation>
<xs:documentation>A collection of services that are automatically located together, so they are also moved together during fail-over or resource management.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0">
<xs:element name="StatelessServiceGroup" type="StatelessServiceGroupType"/>
<xs:element name="StatefulServiceGroup" type="StatefulServiceGroupType"/>
</xs:choice>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of this service relative to this application Name URI. Fully qualified Name of the service is a combination of Name Uri of the Application and this Name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ServicePackageActivationMode" type="xs:string" use="optional" default="SharedProcess">
<xs:annotation>
<xs:documentation>ServicePackageActivationMode to be used when creating the service. Allowed values are 'SharedProcess' and 'ExclusiveProcess'. With SharedProcess mode, replica(s) or instance(s) from different partition(s) of service will share same activation of service package on a node. With ExclusiveProcess mode, each replica or instance of service will have its own dedicated activation of service package.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
内容元素详细信息
Service
声明在实例化应用程序时自动创建的服务。
ServiceGroup
自动定位在一起的服务集合,因此在故障转移或资源管理期间,它们也会一起移动。
| Attribute |
价值 |
| 名字 |
ServiceGroup |
DiagnosticsType complexType
描述应用程序的诊断设置。
| Attribute |
价值 |
| 内容 |
3 个元素,0 个特性(s) |
| 定义 |
全球 |
| 名字 |
DiagnosticsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DiagnosticsType">
<xs:annotation>
<xs:documentation>Describes the diagnostic settings for applications.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="CrashDumpSource" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies crash dump collection. Crash dumps are collected for executables that host the code packages of all services belonging to the application.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Destinations" minOccurs="0">
<xs:annotation>
<xs:documentation>Destinations to which the crash dumps need to be transferred.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LocalStore" type="LocalStoreType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="FileStore" type="FileStoreType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="AzureBlob" type="AzureBlobType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="Parameters" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="IsEnabled" type="xs:string">
<xs:annotation>
<xs:documentation>Whether or not crash dump collection is enabled. By default, it is not enabled.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="ETWSource" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies ETW trace collection. ETW traces are collected for the providers that are registered by all services belonging to the application.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Destinations" minOccurs="0">
<xs:annotation>
<xs:documentation>Destinations to which the crash dumps need to be transferred.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LocalStore" type="LocalStoreETWType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="FileStore" type="FileStoreETWType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="AzureBlob" type="AzureBlobETWType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="Parameters" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="IsEnabled" type="xs:string">
<xs:annotation>
<xs:documentation>Whether or not ETW trace collection is enabled. By default, it is not enabled.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="FolderSource" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies the collection of the contents of a particular folder on the local node.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Destinations" minOccurs="0">
<xs:annotation>
<xs:documentation>Destinations to which the folder contents need to be transferred.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LocalStore" type="LocalStoreType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="FileStore" type="FileStoreType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="AzureBlob" type="AzureBlobType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="Parameters" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="IsEnabled" type="xs:string">
<xs:annotation>
<xs:documentation>Whether or not collection of the contents of this folder is enabled. By default, it is not enabled.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="RelativeFolderPath"/>
<xs:attributeGroup ref="DataDeletionAgeInDays"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
CrashDumpSource
指定故障转储收集。 为托管属于应用程序的所有服务的代码包的可执行文件收集故障转储。
| Attribute |
价值 |
| 名字 |
CrashDumpSource |
| minOccurs |
0 |
ETWSource
指定 ETW 跟踪集合。 将为属于应用程序的所有服务注册的提供程序收集 ETW 跟踪。
| Attribute |
价值 |
| 名字 |
ETWSource |
| minOccurs |
0 |
FolderSource
指定本地节点上特定文件夹内容的集合。
| Attribute |
价值 |
| 名字 |
FolderSource |
| minOccurs |
0 |
| maxOccurs |
无限制 |
DllHostEntryPointType complexType
不支持,请勿使用。 DLL 托管支持(程序集入口点)通过 FWP.exe 过程提供。 Service Fabric 启动 Fabric 辅助角色进程(FWP.exe),并在激活过程中加载程序集。
| Attribute |
价值 |
| 内容 |
2 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
DllHostEntryPointType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DllHostEntryPointType">
<xs:annotation>
<xs:documentation>Unsupported, do not use. DLL hosting support (assembly entry point) is provided through the FWP.exe process. Service Fabric starts the Fabric Worker Process (FWP.exe) and loads the assembly as part of the activation process.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="UnmanagedDll" type="UnmanagedDllType"/>
<xs:element name="ManagedAssembly" type="ManagedAssemblyType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="IsolationPolicy" use="optional" default="DedicatedProcess">
<xs:annotation>
<xs:documentation>Unsupported, do not use. Defines the isolation policy for the Unmanaged DLLs and Managed Assemblies loaded in the DllHost. </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="SharedDomain"/>
<xs:enumeration value="DedicatedDomain"/>
<xs:enumeration value="DedicatedProcess"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
IsolationPolicy
不支持,请勿使用。 为 DllHost 中加载的非托管 DLL 和托管程序集定义隔离策略。
| Attribute |
价值 |
| 名字 |
IsolationPolicy |
| 使用 |
optional |
| 默认 |
DedicatedProcess |
内容元素详细信息
UnmanagedDll
ManagedAssembly
DriverOptionType complexType
要传递给驱动程序的驱动程序选项。 Azure 文件卷插件支持以下驱动程序选项:shareName(为容器提供卷的 Azure 文件存储文件共享)、storageAccountName(包含 Azure 文件文件共享的 Azure 存储帐户)、storageAccountKey(包含 Azure 文件文件共享的 Azure 存储帐户的访问密钥)。
这三个驱动程序选项是必需的。
| Attribute |
价值 |
| 内容 |
0 元素(s)、4 个属性(s) |
| 定义 |
全球 |
| 名字 |
DriverOptionType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DriverOptionType">
<xs:annotation>
<xs:documentation>Driver options to be passed to driver. The Azure Files volume plugin supports the following driver options:
shareName (the Azure Files file share that provides the volume for the container), storageAccountName (the Azure storage account
that contains the Azure Files file share), storageAccountKey (Access key for the Azure storage account that contains the Azure Files file share).
These three driver options are required.</xs:documentation>
</xs:annotation>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the driver option. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Value" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The value of the driver option. </xs:documentation>
</xs:annotation>
</xs:attribute>
<!-- TODO [dragosav] this needs to be deprecated; unclear if we can outright remove it, or give advance notice and remove it in an upcoming release. -->
<xs:attribute name="IsEncrypted" type="xs:string" use="optional" default="false"/>
<xs:attribute name="Type" type="xs:string" use="optional" default="PlainText">
<xs:annotation>
<xs:documentation>
This value defines the protection of the value of the attribute. It may be SecretsStoreRef/Encrypted/PlainText.
If set to SecretsStoreRef, the value references a secret stored encrypted in the cluster's SecureStore, which is de-referenced and decrypted upon activation.
If set to Encrypted, the application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
驱动程序选项的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
价值
驱动程序选项的值。
| Attribute |
价值 |
| 名字 |
价值 |
| 类型 |
xs:string |
| 使用 |
(必需) |
IsEncrypted
| Attribute |
价值 |
| 名字 |
IsEncrypted |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
假 |
类型
此值定义特性值的保护。 它可能是 SecretsStoreRef/Encrypted/PlainText。
如果设置为 SecretsStoreRef,则该值引用在群集的 SecureStore 中加密的机密,该机密在激活时将取消引用和解密。
如果设置为 Encrypted,则应用程序开发人员负责创建证书并使用 Invoke-ServiceFabricEncryptSecret cmdlet 加密敏感信息。
| Attribute |
价值 |
| 名字 |
类型 |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
PlainText |
EndpointBindingPolicyType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
EndpointBindingPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EndpointBindingPolicyType">
<xs:attribute name="EndpointRef">
<xs:annotation>
<xs:documentation>The name of the endpoint, which must be declared in the Resources section of the service manifest. When using HTTPS, do not use
the same port and certificate for different service instances (independent of the application) deployed to the same node. Upgrading two different services
using the same port in different application instances will result in an upgrade failure.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="CertificateRef" use="required">
<xs:annotation>
<xs:documentation>The name of the endpoint certificate, declared in the Certificates section, to return to the client. </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
EndpointRef
必须在服务清单的“资源”部分中声明的终结点的名称。 使用 HTTPS 时,不要对部署到同一节点的不同服务实例(独立于应用程序)使用相同的端口和证书。 在不同的应用程序实例中使用相同的端口升级两个不同的服务将导致升级失败。
| Attribute |
价值 |
| 名字 |
EndpointRef |
CertificateRef
终结点证书的名称,在“证书”部分中声明,以返回到客户端。
| Attribute |
价值 |
| 名字 |
CertificateRef |
| 使用 |
(必需) |
EndpointCertificateType complexType
指定有关用于保护终结点的 X509 证书的信息。
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
EndpointCertificateType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EndpointCertificateType">
<xs:annotation>
<xs:documentation>Specifies information about an X509 certificate used to secure an endpoint.</xs:documentation>
</xs:annotation>
<xs:attribute name="X509StoreName" type="xs:string" default="My">
<xs:annotation>
<xs:documentation>The store name for the X509 certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="X509FindValue" use="required">
<xs:annotation>
<xs:documentation>The thumbprint of the X509 certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Name" type="xs:string" use="optional"/>
</xs:complexType>
属性详细信息
X509StoreName
X509 证书的存储名称。
| Attribute |
价值 |
| 名字 |
X509StoreName |
| 类型 |
xs:string |
| 默认 |
我 |
X509FindValue
X509 证书的指纹。
| Attribute |
价值 |
| 名字 |
X509FindValue |
| 使用 |
(必需) |
名称
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
optional |
EndpointOverrideType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、6 个属性(s) |
| 定义 |
全球 |
| 名字 |
EndpointOverrideType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EndpointOverrideType">
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>The name of the endpoint to override. A string.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Port" type="xs:string">
<xs:annotation>
<xs:documentation>The port number for the endpoint. Overrides the value in the service manifest.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Protocol" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The protocol for the endpoint. Overrides the value in the service manifest. HTTPS endpoints must also have an EndpointCertificate and an EndpointBindingPolicy declared in the application manifest. The protocol cannot be changed later in an application upgrade. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Type" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The type of the endpoint. Overrides the value in the service manifest. Input endpoints are used to expose the port to the outside, internal endpoints are used for intra-application communication.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UriScheme" use="optional">
<xs:annotation>
<xs:documentation>The URI scheme. Overrides the value in the service manifest. For example, "http", "https", or "ftp".</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PathSuffix" use="optional">
<xs:annotation>
<xs:documentation>The path suffix. For example, "/myapp1". Overrides the value in the service manifest.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
要重写的终结点的名称。 字符串。
| Attribute |
价值 |
| 名字 |
名称 |
| 使用 |
(必需) |
港口
终结点的端口号。 重写服务清单中的值。
| Attribute |
价值 |
| 名字 |
港口 |
| 类型 |
xs:string |
协议
终结点的协议。 重写服务清单中的值。 HTTPS 终结点还必须在应用程序清单中声明 EndpointCertificate 和 EndpointBindingPolicy。 以后无法在应用程序升级中更改协议。
| Attribute |
价值 |
| 名字 |
协议 |
| 类型 |
xs:string |
| 使用 |
optional |
类型
终结点的类型。 重写服务清单中的值。 输入终结点用于向外部公开端口,内部终结点用于应用程序内部通信。
| Attribute |
价值 |
| 名字 |
类型 |
| 类型 |
xs:string |
| 使用 |
optional |
UriScheme
URI 方案。 重写服务清单中的值。 例如,“http”、“https”或“ftp”。
| Attribute |
价值 |
| 名字 |
UriScheme |
| 使用 |
optional |
PathSuffix
路径后缀。 例如,“/myapp1”。 重写服务清单中的值。
| Attribute |
价值 |
| 名字 |
PathSuffix |
| 使用 |
optional |
EndpointType complexType
定义服务的终结点。 可以请求特定端口。 如果未显式指定端口,则会从保留的应用程序端口范围分配端口。 可以在不同的群集节点上运行的服务副本分配不同的端口号,而在同一节点上运行的同一服务的副本共享同一端口。 服务副本可以使用此类端口,以用于各种目的,例如复制或侦听客户端请求。
| Attribute |
价值 |
| 内容 |
0 元素(s)、8 个属性(s) |
| 定义 |
全球 |
| 名字 |
端点类型 |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EndpointType">
<xs:annotation>
<xs:documentation>Defines an endpoint for the service. Specific ports can be requested. If a port is not explicitly specified, a port is assigned from the reserved application port range. Service replicas running on different cluster nodes can be assigned different port numbers, while replicas of the same service running on the same node share the same port. Such ports can be used by the service replicas for various purposes such as replication or listening for client requests.</xs:documentation>
</xs:annotation>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>The name of the endpoint.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Protocol" use="optional" default="tcp">
<xs:annotation>
<xs:documentation>The protocol for the endpoint: http, https, tcp, or udp. HTTPS endpoints must also have an EndpointCertificate and an EndpointBindingPolicy declared in the application manifest. The protocol cannot be changed later in an application upgrade. </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="http"/>
<xs:enumeration value="https"/>
<xs:enumeration value="tcp"/>
<xs:enumeration value="udp"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Type" use="optional" default="Internal">
<xs:annotation>
<xs:documentation>The type of the endpoint. Input endpoints are used to expose the port to the outside, internal endpoints are used for intra-application communication.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Input"/>
<xs:enumeration value="Internal"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="CodePackageRef" use="optional">
<xs:annotation>
<xs:documentation>The name of code Package that will use this endpoint.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="CertificateRef">
<xs:annotation>
<xs:documentation>Do not use, this attribute is not supported.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Port">
<xs:annotation>
<xs:documentation>The port will be replaced with a port determined by Azure Service Fabric after registering with Http.sys or BFE.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="65535"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="UriScheme">
<xs:annotation>
<xs:documentation>The URI scheme. For example, "http", "https", or "ftp".</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PathSuffix">
<xs:annotation>
<xs:documentation>The path suffix. For example, "/myapp1".</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
终结点的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 使用 |
(必需) |
协议
终结点的协议:http、https、tcp 或 udp。 HTTPS 终结点还必须在应用程序清单中声明 EndpointCertificate 和 EndpointBindingPolicy。 以后无法在应用程序升级中更改协议。
| Attribute |
价值 |
| 名字 |
协议 |
| 使用 |
optional |
| 默认 |
TCP |
类型
终结点的类型。 输入终结点用于向外部公开端口,内部终结点用于应用程序内部通信。
| Attribute |
价值 |
| 名字 |
类型 |
| 使用 |
optional |
| 默认 |
内部 |
CodePackageRef
将使用此终结点的代码包的名称。
| Attribute |
价值 |
| 名字 |
CodePackageRef |
| 使用 |
optional |
CertificateRef
请勿使用,不支持此属性。
| Attribute |
价值 |
| 名字 |
CertificateRef |
港口
在注册 Http.sys 或 BFE 后,端口将替换为 Azure Service Fabric 确定的端口。
UriScheme
URI 方案。 例如,“http”、“https”或“ftp”。
| Attribute |
价值 |
| 名字 |
UriScheme |
PathSuffix
路径后缀。 例如,“/myapp1”。
| Attribute |
价值 |
| 名字 |
PathSuffix |
EntryPointDescriptionType complexType
EntryPoint 指定的可执行文件通常是长时间运行的服务主机。 存在单独的设置入口点可避免长时间使用高特权运行服务主机。 EntryPoint 指定的可执行文件在 SetupEntryPoint 成功退出后运行。 如果进程终止或崩溃,则会监视并重新启动(从 SetupEntryPoint 重新开始)。
| Attribute |
价值 |
| 内容 |
3 个元素,0 个特性(s) |
| 定义 |
全球 |
| 名字 |
EntryPointDescriptionType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EntryPointDescriptionType">
<xs:annotation>
<xs:documentation>The executable specified by EntryPoint is typically the long-running service host. The presence of a separate setup entry point avoids having to run the service host with high privileges for extended periods of time. The executable specified by EntryPoint is run after SetupEntryPoint exits successfully. The resulting process is monitored and restarted (beginning again with SetupEntryPoint) if it ever terminates or crashes.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element name="ExeHost">
<xs:complexType>
<xs:complexContent>
<xs:extension base="ExeHostEntryPointType">
<xs:sequence>
<xs:element name="RunFrequency" minOccurs="0">
<xs:complexType>
<xs:attribute name="IntervalInSeconds" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="2147483647"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="DllHost" type="DllHostEntryPointType"/>
<xs:element name="ContainerHost" type="ContainerHostEntryPointType"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
内容元素详细信息
ExeHost
DllHost
ContainerHost
EnvironmentOverridesType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
EnvironmentOverridesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentOverridesType">
<xs:sequence>
<xs:element name="EnvironmentVariable" type="EnvironmentVariableOverrideType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Environment variable.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="CodePackageRef" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
CodePackageRef
| Attribute |
价值 |
| 名字 |
CodePackageRef |
| 使用 |
(必需) |
内容元素详细信息
环境变量
环境变量。
EnvironmentType complexType
| Attribute |
价值 |
| 内容 |
3 个元素,0 个特性(s) |
| 定义 |
全球 |
| 名字 |
EnvironmentType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentType">
<xs:sequence>
<xs:element name="Principals" type="SecurityPrincipalsType"/>
<xs:element name="Policies" type="ApplicationPoliciesType"/>
<xs:element name="Diagnostics" type="DiagnosticsType"/>
</xs:sequence>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
</xs:complexType>
内容元素详细信息
Principals
策略
诊断
EnvironmentVariableOverrideType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
EnvironmentVariableOverrideType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentVariableOverrideType">
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of environment variable.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Value">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Type" type="xs:string" use="optional"/>
</xs:complexType>
属性详细信息
名称
环境变量的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
价值
类型
| Attribute |
价值 |
| 名字 |
类型 |
| 类型 |
xs:string |
| 使用 |
optional |
EnvironmentVariableType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
EnvironmentVariableType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentVariableType">
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of environment variable.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Value">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Type" use="optional" default="PlainText">
<xs:annotation>
<xs:documentation>
The type for the Environment Variable. It can be PlainText/Encrypted/SecretsStoreRef.
If set to SecretsStoreRef, we retrieve the reference value from the SecretStore.
If set to Encrypted, the application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="PlainText"/>
<xs:enumeration value="Encrypted"/>
<xs:enumeration value="SecretsStoreRef"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
环境变量的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
价值
类型
环境变量的类型。 可以是 PlainText/Encrypted/SecretsStoreRef。
如果设置为 SecretsStoreRef,我们将从 SecretStore 检索引用值。
如果设置为 Encrypted,则应用程序开发人员负责创建证书并使用 Invoke-ServiceFabricEncryptSecret cmdlet 加密敏感信息。
| Attribute |
价值 |
| 名字 |
类型 |
| 使用 |
optional |
| 默认 |
PlainText |
EnvironmentVariablesType complexType
将环境变量传递给容器或 exe。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
EnvironmentVariablesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentVariablesType">
<xs:annotation>
<xs:documentation>Pass environment variables to your container or exe. </xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="EnvironmentVariable" type="EnvironmentVariableType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Environment variable.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
环境变量
环境变量。
ExeHostEntryPointType complexType
| Attribute |
价值 |
| 内容 |
4 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ExeHostEntryPointType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ExeHostEntryPointType">
<xs:sequence>
<xs:element name="Program" type="xs:string">
<xs:annotation>
<xs:documentation>The executable name. For example, "MySetup.bat" or "MyServiceHost.exe".</xs:documentation>
</xs:annotation></xs:element>
<xs:element name="Arguments" type="xs:string" minOccurs="0"/>
<xs:element name="WorkingFolder" default="Work" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Work"/>
<xs:enumeration value="CodePackage"/>
<xs:enumeration value="CodeBase"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ConsoleRedirection" minOccurs="0">
<xs:annotation>
<xs:documentation>Warning! Do not use console redirection in a production application, only use it for local development and debugging. Redirects console output from the startup script to an output file in the application folder called "log" on the cluster node where the application is deployed and run.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="FileRetentionCount" default="2">
<xs:annotation>
<xs:documentation>Sets the number of console redirection output files to retain. Must be a positive integer, the default value is "2".</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="FileMaxSizeInKb" default="20480">
<xs:annotation>
<xs:documentation>Set the maximum size of a console redirection output file. Must be a positive integer greater than 128KB, the default value is "20480".</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="128"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="IsExternalExecutable" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>True if the executable is external to the application package. Program existence check in the application package is skipped.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
IsExternalExecutable
如此 如果可执行文件在应用程序包外部。 跳过应用程序包中的程序存在检查。
| Attribute |
价值 |
| 名字 |
IsExternalExecutable |
| 类型 |
xs:boolean |
| 默认 |
假 |
内容元素详细信息
程序
可执行文件名称。 例如,“MySetup.bat”或“MyServiceHost.exe”。
| Attribute |
价值 |
| 名字 |
程序 |
| 类型 |
xs:string |
Arguments
| Attribute |
价值 |
| 名字 |
Arguments |
| 类型 |
xs:string |
| minOccurs |
0 |
WorkingFolder
| Attribute |
价值 |
| 名字 |
WorkingFolder |
| 默认 |
工作 |
| minOccurs |
0 |
ConsoleRedirection
警告! 不要在生产应用程序中使用控制台重定向,只将其用于本地开发和调试。 将控制台输出从启动脚本重定向到部署并运行应用程序的群集节点上名为“log”的应用程序文件夹中的输出文件。
| Attribute |
价值 |
| 名字 |
ConsoleRedirection |
| minOccurs |
0 |
ExtensionsType complexType
描述可应用于其他元素的扩展。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
ExtensionsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ExtensionsType">
<xs:annotation>
<xs:documentation>Describes extensions that can be applied to other elements.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Extension" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:attribute name="Name" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="GeneratedId" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
扩展
| Attribute |
价值 |
| 名字 |
扩展 |
| minOccurs |
0 |
| maxOccurs |
无限制 |
FabricCertificateType complexType
这指定证书信息。
| Attribute |
价值 |
| 内容 |
0 元素(s)、5 个属性(s) |
| 定义 |
全球 |
| 名字 |
FabricCertificateType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FabricCertificateType">
<xs:annotation>
<xs:documentation>This specifies the certificate information.</xs:documentation>
</xs:annotation>
<xs:attribute name="X509StoreName" type="xs:string" default="My">
<xs:annotation>
<xs:documentation>The store name for the X509 certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="X509FindType" default="FindByThumbprint">
<xs:annotation>
<xs:documentation>This is Used only when credential is X509. This specifies how to find the certificate whether by the name or the thumbprint </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="FindByThumbprint"/>
<xs:enumeration value="FindBySubjectName"/>
<xs:enumeration value="FindByExtension"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="X509FindValue" use="required">
<xs:annotation>
<xs:documentation>This is Used only when credential is X509. This is the actual name or thumbprint of the certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="X509FindValueSecondary" use="optional" default="">
<xs:annotation>
<xs:documentation>This is used only when credential is X509. This is the actual name or thumbprint of the certificate.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Name" type="xs:string" use="optional"/>
</xs:complexType>
属性详细信息
X509StoreName
X509 证书的存储名称。
| Attribute |
价值 |
| 名字 |
X509StoreName |
| 类型 |
xs:string |
| 默认 |
我 |
X509FindType
仅当凭据为 X509 时,才使用此功能。 这指定了如何按名称或指纹查找证书
| Attribute |
价值 |
| 名字 |
X509FindType |
| 默认 |
FindByThumbprint |
X509FindValue
仅当凭据为 X509 时,才使用此功能。 这是证书的实际名称或指纹。
| Attribute |
价值 |
| 名字 |
X509FindValue |
| 使用 |
(必需) |
X509FindValueSecondary
仅当凭据为 X509 时,才使用此功能。 这是证书的实际名称或指纹。
| Attribute |
价值 |
| 名字 |
X509FindValueSecondary |
| 使用 |
optional |
| 默认 |
|
名称
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
optional |
FabricEndpointsType complexType
| Attribute |
价值 |
| 内容 |
21 个元素,0 个属性(s) |
| 定义 |
全球 |
| 名字 |
FabricEndpointsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FabricEndpointsType">
<xs:all>
<xs:element name="ClientConnectionEndpoint" type="InputEndpointType"/>
<xs:element name="LeaseDriverEndpoint" type="InternalEndpointType"/>
<xs:element name="ClusterConnectionEndpoint" type="InternalEndpointType"/>
<xs:element name="HttpGatewayEndpoint" type="InputEndpointType" minOccurs="0"/>
<xs:element name="HttpApplicationGatewayEndpoint" type="InputEndpointType" minOccurs="0"/>
<xs:element name="ServiceConnectionEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="ClusterManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="RepairManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="NamingReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="FailoverManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="ImageStoreServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="UpgradeServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="FaultAnalysisServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="BackupRestoreServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="UpgradeOrchestrationServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="CentralSecretServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="EventStoreServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="GatewayResourceManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="DefaultReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>
<xs:element name="ApplicationEndpoints" minOccurs="0">
<xs:complexType>
<xs:attribute name="StartPort" type="xs:int" use="required"/>
<xs:attribute name="EndPort" type="xs:int" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="EphemeralEndpoints" minOccurs="0">
<xs:complexType>
<xs:attribute name="StartPort" type="xs:int" use="required"/>
<xs:attribute name="EndPort" type="xs:int" use="required"/>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
内容元素详细信息
ClientConnectionEndpoint
LeaseDriverEndpoint
ClusterConnectionEndpoint
HttpGatewayEndpoint
HttpApplicationGatewayEndpoint
ServiceConnectionEndpoint
ClusterManagerReplicatorEndpoint
RepairManagerReplicatorEndpoint
NamingReplicatorEndpoint
FailoverManagerReplicatorEndpoint
ImageStoreServiceReplicatorEndpoint
UpgradeServiceReplicatorEndpoint
FaultAnalysisServiceReplicatorEndpoint
BackupRestoreServiceReplicatorEndpoint
UpgradeOrchestrationServiceReplicatorEndpoint
CentralSecretServiceReplicatorEndpoint
EventStoreServiceReplicatorEndpoint
GatewayResourceManagerReplicatorEndpoint
DefaultReplicatorEndpoint
ApplicationEndpoints
| Attribute |
价值 |
| 名字 |
ApplicationEndpoints |
| minOccurs |
0 |
EphemeralEndpoints
| Attribute |
价值 |
| 名字 |
EphemeralEndpoints |
| minOccurs |
0 |
FabricKtlLoggerSettingsType complexType
| Attribute |
价值 |
| 内容 |
3 个元素,0 个特性(s) |
| 定义 |
全球 |
| 名字 |
FabricKtlLoggerSettingsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FabricKtlLoggerSettingsType">
<xs:all>
<xs:element name="SharedLogFilePath" minOccurs="0">
<xs:annotation>
<xs:documentation>Defines path to shared log.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="SharedLogFileId" minOccurs="0">
<xs:annotation>
<xs:documentation>Specific GUID to use as the shared log ID.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Value" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="SharedLogFileSizeInMB" minOccurs="0">
<xs:annotation>
<xs:documentation>Defines how large is the shared log.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Value" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="512"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
内容元素详细信息
SharedLogFilePath
定义共享日志的路径。
| Attribute |
价值 |
| 名字 |
SharedLogFilePath |
| minOccurs |
0 |
SharedLogFileId
用作共享日志 ID 的特定 GUID。
| Attribute |
价值 |
| 名字 |
SharedLogFileId |
| minOccurs |
0 |
SharedLogFileSizeInMB
定义共享日志的大小。
| Attribute |
价值 |
| 名字 |
SharedLogFileSizeInMB |
| minOccurs |
0 |
FabricNodeType complexType
描述 Azure Service Fabric 节点。
| Attribute |
价值 |
| 内容 |
0 元素(s)、6 个属性(s) |
| 定义 |
全球 |
| 名字 |
FabricNodeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FabricNodeType">
<xs:annotation>
<xs:documentation>Describes a Azure Service Fabric Node.</xs:documentation>
</xs:annotation>
<xs:attribute name="NodeName" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the node instance.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IPAddressOrFQDN" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The IP address or the FQDN of the machine on which to place this node.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IsSeedNode" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>A flag indicating whether or not this node is a seed node.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="NodeTypeRef" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the nodetype defined in the NodeTypes section. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="FaultDomain" type="xs:anyURI" use="optional">
<xs:annotation>
<xs:documentation>The fault domain of this node.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UpgradeDomain" type="xs:anyURI" use="optional">
<xs:annotation>
<xs:documentation>The upgrade domain of this node.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
节点名称
节点实例的名称。
| Attribute |
价值 |
| 名字 |
节点名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
IPAddressOrFQDN
放置此节点的计算机的 IP 地址或 FQDN。
| Attribute |
价值 |
| 名字 |
IPAddressOrFQDN |
| 类型 |
xs:string |
| 使用 |
(必需) |
IsSeedNode
指示此节点是否为种子节点的标志。
| Attribute |
价值 |
| 名字 |
IsSeedNode |
| 类型 |
xs:boolean |
| 默认 |
假 |
NodeTypeRef
NodeTypes 节中定义的节点类型的名称。
| Attribute |
价值 |
| 名字 |
NodeTypeRef |
| 类型 |
xs:string |
| 使用 |
(必需) |
FaultDomain
此节点的容错域。
| Attribute |
价值 |
| 名字 |
FaultDomain |
| 类型 |
xs:anyURI |
| 使用 |
optional |
UpgradeDomain
此节点的升级域。
| Attribute |
价值 |
| 名字 |
UpgradeDomain |
| 类型 |
xs:anyURI |
| 使用 |
optional |
FileStoreETWType complexType
描述 ETW 事件的文件存储目标。 仅适用于本地环境。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
FileStoreETWType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FileStoreETWType">
<xs:annotation>
<xs:documentation>Describes a file store destination for ETW events. Works only in on-premises environment.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="FileStoreType">
<xs:attributeGroup ref="LevelFilter"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
FileStoreType complexType
描述诊断数据的文件存储目标。 仅适用于独立群集环境。
| Attribute |
价值 |
| 内容 |
1 个元素,2 个特性(s) |
| 定义 |
全球 |
| 名字 |
FileStoreType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FileStoreType">
<xs:annotation>
<xs:documentation>Describes a file store destination for diagnostics data. Works only in a standalone cluster environment.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="Parameters" minOccurs="0"/>
</xs:sequence>
<xs:attributeGroup ref="IsEnabled"/>
<xs:attributeGroup ref="Path"/>
<xs:attributeGroup ref="UploadIntervalInMinutes"/>
<xs:attributeGroup ref="DataDeletionAgeInDays"/>
<xs:attribute name="AccountType" type="xs:string">
<xs:annotation>
<xs:documentation>Specifies the type of account.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="AccountCredentialsGroup"/>
<xs:attribute name="PasswordEncrypted" type="xs:string">
<xs:annotation>
<xs:documentation>Specifies if password is encrypted or plain text.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
帐户类型
指定帐户的类型。
| Attribute |
价值 |
| 名字 |
帐户类型 |
| 类型 |
xs:string |
PasswordEncrypted
指定密码是加密还是纯文本。
| Attribute |
价值 |
| 名字 |
PasswordEncrypted |
| 类型 |
xs:string |
内容元素详细信息
没有
| Attribute |
价值 |
| 参考 |
参数 |
| minOccurs |
0 |
ImageOverridesType complexType
Windows Server 容器可能无法跨不同版本的 OS 兼容。 可以为每个容器指定多个 OS 映像,并使用 OS 的生成版本对其进行标记。 通过在 Windows 命令提示符处运行“winver”获取操作系统的生成版本。 如果基础操作系统是内部版本 16299(Windows Server 版本 1709),Service Fabric 会选取使用 Os=“16299”标记的容器映像。 假设未标记的容器映像可以跨操作系统的所有版本工作,并替代服务清单中指定的映像。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
ImageOverridesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ImageOverridesType">
<xs:annotation>
<xs:documentation>Windows Server containers may not be compatible across different versions of the OS. You can specify multiple OS images per container and tag
them with the build versions of the OS. Get the build version of the OS by running "winver" at a Windows command prompt. If the underlying OS
is build version 16299 (Windows Server version 1709), Service Fabric picks the container image tagged with Os="16299". An untagged container image
is assumed to work across all versions of the OS and overrides the image specified in the service manifest.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Image" type="ImageType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Container image corresponding to OS build version number to be launched. If the Os attribute is not specified, the container image
is assumed to work across all versions of the OS and overrides the image specified in the service manifest.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
图像
与要启动的 OS 内部版本号对应的容器映像。 如果未指定 Os 属性,则假定容器映像适用于所有版本的 OS,并覆盖服务清单中指定的映像。
| Attribute |
价值 |
| 名字 |
图像 |
| 类型 |
ImageType |
| minOccurs |
0 |
| maxOccurs |
无限制 |
ImageType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ImageType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ImageType">
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of container image.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Os" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Build version of the OS. For example, the build version of Windows Server version 1709 is 16299.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
容器映像的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
操作系统
操作系统的生成版本。 例如,Windows Server 版本 1709 的生成版本为 16299。
| Attribute |
价值 |
| 名字 |
操作系统 |
| 类型 |
xs:string |
| 使用 |
optional |
包含此 Azure Service Fabric 群集的基础结构信息。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
InfrastructureInformationType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="InfrastructureInformationType">
<xs:annotation>
<xs:documentation>Contains the infrastructure information for this Azure Service Fabric cluster.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="NodeList">
<xs:complexType>
<xs:sequence>
<xs:element name="Node" type="InfrastructureNodeType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
NodeList
InfrastructureNodeType complexType
描述所需的基础结构信息。
| Attribute |
价值 |
| 内容 |
2 个元素,7 个属性(s) |
| 定义 |
全球 |
| 名字 |
InfrastructureNodeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="InfrastructureNodeType">
<xs:annotation>
<xs:documentation>Describes an Infrastructure information needed.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Endpoints" type="FabricEndpointsType" minOccurs="0">
<xs:annotation>
<xs:documentation>Describe the endpoints associated with this node type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Certificates" type="CertificatesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Describe the certificates associated with this node type</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="NodeName" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the node instance.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IPAddressOrFQDN" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The IP address or the FQDN of the machine on which to place this node.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RoleOrTierName" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the role which links to node type ref which is defined in the NodeTypes section.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="NodeTypeRef" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the node type which is defined in the NodeTypes section.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IsSeedNode" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>Indicates whether the node is a seed node.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="FaultDomain" type="xs:anyURI" use="optional">
<xs:annotation>
<xs:documentation> The fault domain of this node. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UpgradeDomain" type="xs:anyURI" use="optional">
<xs:annotation>
<xs:documentation>The upgrade domain of this node. </xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
节点名称
节点实例的名称。
| Attribute |
价值 |
| 名字 |
节点名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
IPAddressOrFQDN
放置此节点的计算机的 IP 地址或 FQDN。
| Attribute |
价值 |
| 名字 |
IPAddressOrFQDN |
| 类型 |
xs:string |
| 使用 |
(必需) |
RoleOrTierName
链接到 NodeTypes 节中定义的节点类型 ref 的角色的名称。
| Attribute |
价值 |
| 名字 |
RoleOrTierName |
| 类型 |
xs:string |
| 使用 |
(必需) |
NodeTypeRef
NodeTypes 节中定义的节点类型的名称。
| Attribute |
价值 |
| 名字 |
NodeTypeRef |
| 类型 |
xs:string |
| 使用 |
(必需) |
IsSeedNode
指示节点是否为种子节点。
| Attribute |
价值 |
| 名字 |
IsSeedNode |
| 类型 |
xs:boolean |
| 使用 |
optional |
| 默认 |
假 |
FaultDomain
此节点的容错域。
| Attribute |
价值 |
| 名字 |
FaultDomain |
| 类型 |
xs:anyURI |
| 使用 |
optional |
UpgradeDomain
此节点的升级域。
| Attribute |
价值 |
| 名字 |
UpgradeDomain |
| 类型 |
xs:anyURI |
| 使用 |
optional |
内容元素详细信息
端点
描述与此节点类型关联的终结点
证书
描述与此节点类型关联的证书
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
InputEndpointType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="InputEndpointType">
<xs:attribute name="Port" type="xs:positiveInteger" use="required"/>
<xs:attribute name="Protocol" use="optional" default="tcp">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="http"/>
<xs:enumeration value="https"/>
<xs:enumeration value="tcp"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
港口
| Attribute |
价值 |
| 名字 |
港口 |
| 类型 |
xs:positiveInteger |
| 使用 |
(必需) |
协议
| Attribute |
价值 |
| 名字 |
协议 |
| 使用 |
optional |
| 默认 |
TCP |
InternalEndpointType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
InternalEndpointType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="InternalEndpointType">
<xs:attribute name="Port" type="xs:positiveInteger" use="required"/>
<xs:attribute name="Protocol" use="optional" default="tcp">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="http"/>
<xs:enumeration value="https"/>
<xs:enumeration value="tcp"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
港口
| Attribute |
价值 |
| 名字 |
港口 |
| 类型 |
xs:positiveInteger |
| 使用 |
(必需) |
协议
| Attribute |
价值 |
| 名字 |
协议 |
| 使用 |
optional |
| 默认 |
TCP |
KeyValuePairType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
KeyValuePairType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="KeyValuePairType">
<xs:attributeGroup ref="NameValuePair"/>
</xs:complexType>
LinuxInfrastructureType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
LinuxInfrastructureType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LinuxInfrastructureType">
<xs:sequence>
<xs:element name="NodeList">
<xs:complexType>
<xs:sequence>
<xs:element name="Node" type="FabricNodeType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
NodeList
LoadMetricType complexType
此服务应均衡的资源,例如内存或 CPU 使用率。 包括有关此服务的每个副本或实例默认消耗的资源量的信息。
| Attribute |
价值 |
| 内容 |
0 元素(s)、5 个属性(s) |
| 定义 |
全球 |
| 名字 |
LoadMetricType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LoadMetricType">
<xs:annotation>
<xs:documentation>A resource that this service should be balanced on, such as memory or CPU usage. Includes information about how much of that resource each replica or instance of this service consumes by default.</xs:documentation>
</xs:annotation>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>A unique identifier for the metric within the cluster from the Cluster Resource Manager's perspective.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="DefaultLoad" type="xs:long" use="optional" default="0">
<xs:annotation>
<xs:documentation>The default amount of load that this stateless service creates for this metric.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PrimaryDefaultLoad" type="xs:long" use="optional" default="0">
<xs:annotation>
<xs:documentation>The default amount of load that this service will exert for this metric when it's a primary replica.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="SecondaryDefaultLoad" type="xs:long" use="optional" default="0">
<xs:annotation>
<xs:documentation>The default amount of load that this service will exert for this metric when it's a secondary replica.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Weight">
<xs:annotation>
<xs:documentation>Determines the metric weight relative to the other metrics that are configured for this service. During runtime, if two metrics end up in conflict, the Cluster Resource Manager prefers the metric with the higher weight. Zero disables load balancing for this metric.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Zero"/>
<xs:enumeration value="Low"/>
<xs:enumeration value="Medium"/>
<xs:enumeration value="High"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
从群集资源管理器的角度来看,群集中指标的唯一标识符。
| Attribute |
价值 |
| 名字 |
名称 |
| 使用 |
(必需) |
DefaultLoad
此无状态服务为此指标创建的默认负载量。
| Attribute |
价值 |
| 名字 |
DefaultLoad |
| 类型 |
xs:long |
| 使用 |
optional |
| 默认 |
0 |
PrimaryDefaultLoad
当此服务是主要副本时,此服务为此指标执行的默认负载量。
| Attribute |
价值 |
| 名字 |
PrimaryDefaultLoad |
| 类型 |
xs:long |
| 使用 |
optional |
| 默认 |
0 |
SecondaryDefaultLoad
此服务作为次要副本时为此指标执行的默认负载量。
| Attribute |
价值 |
| 名字 |
SecondaryDefaultLoad |
| 类型 |
xs:long |
| 使用 |
optional |
| 默认 |
0 |
重量
确定与为此服务配置的其他指标的指标权重。 在运行时,如果两个指标最终冲突,群集资源管理器首选权重较高的指标。 零会禁用此指标的负载均衡。
LocalStoreETWType complexType
描述 ETW 事件的节点中的存储目标。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
LocalStoreETWType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LocalStoreETWType">
<xs:annotation>
<xs:documentation>Describes a store destination within the node for ETW events.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="LocalStoreType">
<xs:attributeGroup ref="LevelFilter"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
LocalStoreType complexType
描述诊断数据的节点中的存储目标。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
LocalStoreType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LocalStoreType">
<xs:annotation>
<xs:documentation>Describes a store destination within the node for diagnostic data.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="Parameters" minOccurs="0"/>
</xs:sequence>
<xs:attributeGroup ref="IsEnabled"/>
<xs:attributeGroup ref="RelativeFolderPath"/>
<xs:attributeGroup ref="DataDeletionAgeInDays"/>
</xs:complexType>
内容元素详细信息
没有
| Attribute |
价值 |
| 参考 |
参数 |
| minOccurs |
0 |
LogicalDirectoryType complexType
描述 LogicalDirectoryType。
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
LogicalDirectoryType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LogicalDirectoryType">
<xs:annotation>
<xs:documentation>Describes a LogicalDirectoryType.</xs:documentation>
</xs:annotation>
<xs:attribute name="LogicalDirectoryName" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the LogicalDirectory.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MappedTo" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The path of the LogicalDirectory.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Context" use="optional" default="application">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="application"/>
<xs:enumeration value="node"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
LogicalDirectoryName
LogicalDirectory 的名称。
| Attribute |
价值 |
| 名字 |
LogicalDirectoryName |
| 类型 |
xs:string |
| 使用 |
(必需) |
MappedTo
LogicalDirectory 的路径。
| Attribute |
价值 |
| 名字 |
MappedTo |
| 类型 |
xs:string |
| 使用 |
(必需) |
背景
| Attribute |
价值 |
| 名字 |
背景 |
| 使用 |
optional |
| 默认 |
应用程序 |
ManagedAssemblyType complexType
不支持,请勿使用。 要承载的托管程序集的名称(例如,Queue.dll)。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ManagedAssemblyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ManagedAssemblyType">
<xs:annotation>
<xs:documentation>Unsupported, do not use. The name of managed assembly (for example, Queue.dll), to host.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>
NetworkPoliciesType complexType
描述网络策略,包括服务包的容器网络策略。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
NetworkPoliciesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NetworkPoliciesType">
<xs:annotation>
<xs:documentation>Describes network policies including container network policies for the service package.</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="ContainerNetworkPolicy" type="ContainerNetworkPolicyType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Describes container network policies for the service package.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
内容元素详细信息
ContainerNetworkPolicy
描述服务包的容器网络策略。
PaaSRoleType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
PaaSRoleType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PaaSRoleType">
<xs:attribute name="RoleName" type="xs:string" use="required"/>
<xs:attribute name="NodeTypeRef" type="xs:string" use="required"/>
<xs:attribute name="RoleNodeCount" type="xs:int" use="required"/>
</xs:complexType>
属性详细信息
角色名称
| Attribute |
价值 |
| 名字 |
角色名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
NodeTypeRef
| Attribute |
价值 |
| 名字 |
NodeTypeRef |
| 类型 |
xs:string |
| 使用 |
(必需) |
RoleNodeCount
| Attribute |
价值 |
| 名字 |
RoleNodeCount |
| 类型 |
xs:int |
| 使用 |
(必需) |
PaaSVoteType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
PaaSVoteType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PaaSVoteType">
<xs:attribute name="NodeName" use="required"/>
<xs:attribute name="IPAddressOrFQDN" use="required"/>
<xs:attribute name="Port" type="xs:int" use="required"/>
</xs:complexType>
属性详细信息
节点名称
| Attribute |
价值 |
| 名字 |
节点名称 |
| 使用 |
(必需) |
IPAddressOrFQDN
| Attribute |
价值 |
| 名字 |
IPAddressOrFQDN |
| 使用 |
(必需) |
港口
| Attribute |
价值 |
| 名字 |
港口 |
| 类型 |
xs:int |
| 使用 |
(必需) |
PackageSharingPolicyType complexType
指示是否应在同一服务类型的服务实例之间共享代码、配置或数据包。
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
PackageSharingPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PackageSharingPolicyType">
<xs:annotation>
<xs:documentation>Indicates if a code, config or data package should be shared across service instances of the same service type.</xs:documentation>
</xs:annotation>
<xs:attribute name="PackageRef">
<xs:annotation>
<xs:documentation>The name of the code, config, or data package to be shared. Must match the name of the package defined in the service manifest.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Scope" default="None">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="None"/>
<xs:enumeration value="All"/>
<xs:enumeration value="Code"/>
<xs:enumeration value="Config"/>
<xs:enumeration value="Data"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
PackageRef
要共享的代码、配置或数据包的名称。 必须与服务清单中定义的包的名称匹配。
| Attribute |
价值 |
| 名字 |
PackageRef |
Scope
| Attribute |
价值 |
| 名字 |
Scope |
| 默认 |
没有 |
ParameterType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
参数类型 |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ParameterType">
<xs:attributeGroup ref="NameValuePair"/>
<xs:attribute name="IsEncrypted" type="xs:string">
<xs:annotation>
<xs:documentation>If true, the value of this parameter is encrypted</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
IsEncrypted
如果为 true,则此参数的值已加密
| Attribute |
价值 |
| 名字 |
IsEncrypted |
| 类型 |
xs:string |
ParametersType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
ParametersType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ParametersType">
<xs:sequence>
<xs:element name="Parameter" type="ParameterType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
内容元素详细信息
参数
PortBindingType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
PortBindingType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PortBindingType">
<xs:attribute name="ContainerPort" type="xs:int" use="required">
<xs:annotation>
<xs:documentation>Container port number.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="EndpointRef">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
容器端口
容器端口号。
| Attribute |
价值 |
| 名字 |
容器端口 |
| 类型 |
xs:int |
| 使用 |
(必需) |
EndpointRef
| Attribute |
价值 |
| 名字 |
EndpointRef |
RepositoryCredentialsType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
RepositoryCredentialsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="RepositoryCredentialsType">
<xs:attributeGroup ref="AccountCredentialsGroup"/>
<xs:attribute name="PasswordEncrypted" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies if password is encrypted or plain text. This attribute is deprecated. Please use the 'Type' attribute to indicate encrypted password.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Email">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Type" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
This value defines the type of password you have specified in the 'Password' Attribute. It can be SecretsStoreRef/Encrypted/PlainText.
If set to SecretsStoreRef, we retrieve the reference value from the SecretStore.
If set to Encrypted, the application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
PasswordEncrypted
指定密码是加密还是纯文本。 此属性已弃用。 请使用“Type”属性来指示加密的密码。
| Attribute |
价值 |
| 名字 |
PasswordEncrypted |
| 类型 |
xs:boolean |
| 使用 |
optional |
Email
类型
此值定义在“Password”属性中指定的密码类型。 它可以是 SecretsStoreRef/Encrypted/PlainText。
如果设置为 SecretsStoreRef,我们将从 SecretStore 检索引用值。
如果设置为 Encrypted,则应用程序开发人员负责创建证书并使用 Invoke-ServiceFabricEncryptSecret cmdlet 加密敏感信息。
| Attribute |
价值 |
| 名字 |
类型 |
| 类型 |
xs:string |
| 使用 |
optional |
ResourceGovernancePolicyType complexType
限制可在主机上使用的资源,并声明服务代码包的资源限制。
| Attribute |
价值 |
| 内容 |
0 元素(s)、12 个特性(s) |
| 定义 |
全球 |
| 名字 |
ResourceGovernancePolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ResourceGovernancePolicyType">
<xs:annotation>
<xs:documentation>Restricts the resources that can be used on the host and declares resource limits for a service code package.</xs:documentation>
</xs:annotation>
<xs:attribute name="CodePackageRef" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="MemoryInMB" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Memory limits in MB. Must be a positive integer. Code packages (containers or processes) are not able to allocate more memory than this limit, and attempting to do so results in an out-of-memory exception.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MemorySwapInMB" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>The total amount of swap memory that can be used, in MB. Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MemoryReservationInMB" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>The soft limit (in MB) for memory governance that is enforced only when memory contention is detected on the node. Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="CpuShares" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Relative CPU weight. Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="CpuPercent" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Usable percentage of available CPUs (Windows only). Must be a positive integer. If CPU limits are specified for the service package, this parameter is effectively ignored.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MaximumIOps" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Maximum IO rate (read and write) in terms of IOPS that can be used. Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MaximumIOBandwidth" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>The maximum IO (bytes per second) that can be used (read and write). Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="BlockIOWeight" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Block IO weight, relative to other code packages. Must be a positive integer between 10 and 1000.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DiskQuotaInMB" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Disk quota for containers. Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="KernelMemoryInMB" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Kernel memory limits in bytes. Must be a positive integer. Note this is Linux specific and docker on windows will error out if this is set.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ShmSizeInMB" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Size of /dev/shm in bytes. If omitted, the system uses 64MB. Must be a positive integer. Note this is Linux specific, however, docker will NOT error out if specified. It is simply ignored.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
CodePackageRef
| Attribute |
价值 |
| 名字 |
CodePackageRef |
| 使用 |
(必需) |
MemoryInMB
内存限制(以 MB 为单位)。 必须是正整数。 代码包(容器或进程)无法分配超过此限制的内存,并且尝试这样做会导致内存不足异常。
| Attribute |
价值 |
| 名字 |
MemoryInMB |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
MemorySwapInMB
可以使用的交换内存总量(以 MB 为单位)。 必须是正整数。
| Attribute |
价值 |
| 名字 |
MemorySwapInMB |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
MemoryReservationInMB
仅当节点上检测到内存争用时,才会对内存治理实施软限制(以 MB 为单位)。 必须是正整数。
| Attribute |
价值 |
| 名字 |
MemoryReservationInMB |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
CpuShares
相对 CPU 权重。 必须是正整数。
| Attribute |
价值 |
| 名字 |
CpuShares |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
CpuPercent
可用 CPU(仅限 Windows)的可用百分比。 必须是正整数。 如果为服务包指定了 CPU 限制,则会有效地忽略此参数。
| Attribute |
价值 |
| 名字 |
CpuPercent |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
MaximumIOps
可以使用的 IOPS 的最大 IO 速率(读取和写入)。 必须是正整数。
| Attribute |
价值 |
| 名字 |
MaximumIOps |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
MaximumIOBandwidth
可以使用的最大 IO(每秒字节数)(读取和写入)。 必须是正整数。
| Attribute |
价值 |
| 名字 |
MaximumIOBandwidth |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
BlockIOWeight
块 IO 权重,相对于其他代码包。 必须是介于 10 和 1000 之间的正整数。
| Attribute |
价值 |
| 名字 |
BlockIOWeight |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
DiskQuotaInMB
容器的磁盘配额。 必须是正整数。
| Attribute |
价值 |
| 名字 |
DiskQuotaInMB |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
KernelMemoryInMB
内核内存限制(以字节为单位)。 必须是正整数。 请注意,这是特定于 Linux 的,如果设置了 Windows 上的 docker,则会出错。
| Attribute |
价值 |
| 名字 |
KernelMemoryInMB |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
ShmSizeInMB
/dev/shm 的大小(以字节为单位)。 如果省略此项,系统会使用 64MB。 必须是正整数。 请注意,这是特定于 Linux 的,但是,如果指定了 docker,则不会出错。 它将被忽略。
| Attribute |
价值 |
| 名字 |
ShmSizeInMB |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
ResourceOverridesType complexType
指定服务清单资源中声明的终结点的资源替代。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
ResourceOverridesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ResourceOverridesType">
<xs:annotation>
<xs:documentation>Specifies resource overrides for endpoints declared in service manifest resources.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Endpoints" minOccurs="0">
<xs:annotation>
<xs:documentation>The service endpoint(s) to override.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Endpoint" type="EndpointOverrideType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The endpoint, declared in the service manifest, to override.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
端点
要重写的服务终结点。
| Attribute |
价值 |
| 名字 |
端点 |
| minOccurs |
0 |
ResourcesType complexType
描述此服务使用的资源,可以在不修改已编译代码的情况下声明这些资源,并在部署服务时进行更改。 通过应用程序清单的“主体和策略”部分控制对这些资源的访问。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
ResourcesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ResourcesType">
<xs:annotation>
<xs:documentation>Describes the resources used by this service, which can be declared without modifying compiled code and changed when the service is deployed. Access to these resources is controlled through the Principals and Policies sections of the application manifest.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Endpoints" minOccurs="0">
<xs:annotation>
<xs:documentation>Defines endpoints for the service.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Endpoint" type="EndpointType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
端点
定义服务的终结点。
| Attribute |
价值 |
| 名字 |
端点 |
| minOccurs |
0 |
RunAsPolicyType complexType
指定服务代码包将作为其运行方式的本地用户或本地系统帐户。 Microsoft Entra ID 可用的 Windows Server 部署支持域帐户。 默认情况下,应用程序在运行 Fabric.exe 进程的帐户下运行。 应用程序还可以作为其他帐户运行,这些帐户必须在 Principals 节中声明。 如果将 RunAs 策略应用于服务,并且服务清单使用 HTTP 协议声明终结点资源,则还必须指定 SecurityAccessPolicy,以确保为运行服务的 RunAs 用户帐户正确列出了分配给这些终结点的端口。 对于 HTTPS 终结点,还必须定义 EndpointBindingPolicy 以指示要返回到客户端的证书的名称。
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
RunAsPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="RunAsPolicyType">
<xs:annotation>
<xs:documentation>Specifies the local user or local system account that a service code package will run as. Domain accounts are supported on Windows Server deployments where Azure Active Directory is available. By default, applications run under the account that the Fabric.exe process runs under. Applications can also run as other accounts, which must be declared in the Principals section. If you apply a RunAs policy to a service, and the service manifest declares endpoint resources with the HTTP protocol, you must also specify a SecurityAccessPolicy to ensure that ports allocated to these endpoints are correctly access-control listed for the RunAs user account that the service runs under. For an HTTPS endpoint, you also have to define a EndpointBindingPolicy to indicate the name of the certificate to return to the client.</xs:documentation>
</xs:annotation>
<xs:attribute name="CodePackageRef" use="required">
<xs:annotation>
<xs:documentation>The name of the code package. Must match the name of the CodePackage specified in the service manifest.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="UserRef" use="required">
<xs:annotation>
<xs:documentation>The user account that the service code package will run as. The user account must be declared in the Principals section. Often it is preferable to run the setup entry point using a local system account rather than an administrators account.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="EntryPointType" use="optional" default="Main">
<xs:annotation>
<xs:documentation>Setup is the SetupEntryPoint declared in the service manifest, the privileged entry point that runs before any other entry point. Main is the EntryPoint declared in the service manifest, typically the long-running service host. All is all entry points.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Setup"/>
<xs:enumeration value="Main"/>
<xs:enumeration value="All"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
CodePackageRef
代码包的名称。 必须与服务清单中指定的 CodePackage 的名称匹配。
| Attribute |
价值 |
| 名字 |
CodePackageRef |
| 使用 |
(必需) |
UserRef
服务代码包将作为其运行方式的用户帐户。 必须在 Principals 节中声明用户帐户。 通常最好使用本地系统帐户而不是管理员帐户运行设置入口点。
| Attribute |
价值 |
| 名字 |
UserRef |
| 使用 |
(必需) |
EntryPointType
安装程序是在服务清单中声明的 SetupEntryPoint,是在任何其他入口点之前运行的特权入口点。 Main 是在服务清单中声明的 EntryPoint,通常是长时间运行的服务主机。 全部都是入口点。
| Attribute |
价值 |
| 名字 |
EntryPointType |
| 使用 |
optional |
| 默认 |
主要 |
ScalingPolicyType complexType
由触发器和缩放机制组成的缩放策略说明。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ScalingPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ScalingPolicyType">
<xs:annotation>
<xs:documentation>A scaling policy description consisting of a trigger and a mechanism for scaling. </xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="ScalingPolicyTriggerGroup"/>
<xs:group ref="ScalingPolicyMechanismGroup"/>
</xs:sequence>
</xs:complexType>
SecurityAccessPolicyType complexType
向服务清单中定义的资源(例如终结点)上的主体授予访问权限。 通常,控制和限制服务对不同资源的访问非常有用,以最大程度地降低安全风险。 当应用程序从由不同开发人员开发的市场中生成的服务集合生成时,这一点尤其重要。
| Attribute |
价值 |
| 内容 |
0 元素(s)、4 个属性(s) |
| 定义 |
全球 |
| 名字 |
SecurityAccessPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SecurityAccessPolicyType">
<xs:annotation>
<xs:documentation>Grants access permissions to a principal on a resource (such as an endpoint) defined in a service manifest. Typically, it is very useful to control and restrict access of services to different resources in order to minimize security risks. This is especially important when the application is built from a collection of services from a marketplace which are developed by different developers.</xs:documentation>
</xs:annotation>
<xs:attribute name="ResourceRef" use="required">
<xs:annotation>
<xs:documentation>The resource being granted access to, declared and configured in the service manifest.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="PrincipalRef" use="required">
<xs:annotation>
<xs:documentation>The user or group being assigned access rights to a resource, must be declared in the Principals section.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="GrantRights" default="Read">
<xs:annotation>
<xs:documentation>The rights to grant: Read, Change, or Full. The default is Read.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Read"/>
<xs:enumeration value="Change"/>
<xs:enumeration value="Full"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="ResourceType" use="optional" default="Endpoint">
<xs:annotation>
<xs:documentation>The type of resource, defined in the Resources section of the service manifest. Either Endpoint or Certificate.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Endpoint"/>
<xs:enumeration value="Certificate"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
ResourceRef
在服务清单中授予对、声明和配置的资源的访问权限。
| Attribute |
价值 |
| 名字 |
ResourceRef |
| 使用 |
(必需) |
PrincipalRef
必须在 Principals 节中声明要分配对资源的访问权限的用户或组。
| Attribute |
价值 |
| 名字 |
PrincipalRef |
| 使用 |
(必需) |
GrantRights
授予的权限:读取、更改或完全。 默认值为 Read。
| Attribute |
价值 |
| 名字 |
GrantRights |
| 默认 |
阅读 |
资源类型
服务清单的“资源”部分中定义的资源类型。 终结点或证书。
| Attribute |
价值 |
| 名字 |
资源类型 |
| 使用 |
optional |
| 默认 |
终结点 |
SecurityOptionsType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
SecurityOptionsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SecurityOptionsType">
<xs:attribute name="Value" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
价值
| Attribute |
价值 |
| 名字 |
价值 |
| 使用 |
(必需) |
SecurityPrincipalsType complexType
介绍此应用程序运行服务和保护资源所需的安全主体(用户、组)。 策略部分中引用主体。
| Attribute |
价值 |
| 内容 |
2 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
SecurityPrincipalsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SecurityPrincipalsType">
<xs:annotation>
<xs:documentation>Describes the security principals (users, groups) required for this application to run services and secure resources. Principals are referenced in the policies sections.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Groups" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares a set of groups as security principals, which can be referenced in policies. Groups are useful if there are multiple users for different service entry points and they need to have certain common privileges that are available at the group level.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Group" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Declares a group as a security principal, which can be referenced in policies.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="NTLMAuthenticationPolicy" minOccurs="0">
<xs:complexType>
<xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
</xs:complexType>
</xs:element>
<xs:element name="Membership" minOccurs="0">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="DomainGroup" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="DomainUser" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the local group account. The name will be prefixed with the application ID.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Users" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares a set of users as security principals, which can be referenced in policies.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="User" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Declares a user as a security principal, which can be referenced in policies.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="NTLMAuthenticationPolicy" minOccurs="0">
<xs:complexType>
<xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
<xs:attribute name="PasswordSecret" type="xs:string" use="required"/>
<xs:attribute name="PasswordSecretEncrypted" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="X509StoreLocation" use="optional" default="LocalMachine">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="LocalMachine"/>
<xs:enumeration value="CurrentUser"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="X509StoreName" default="My">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="X509Thumbprint" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="MemberOf" minOccurs="0">
<xs:annotation>
<xs:documentation>Users can be added to any existing membership group, so it can inherit all the properties and security settings of that membership group. The membership group can be used to secure external resources that need to be accessed by different services or the same service (on a different machine).</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The system group to add the user to. The system group must be defined in the Groups section.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the system group.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Group" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The group to add the user to. The group must be defined in the Groups section.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="NameRef" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the group.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the user account.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="AccountType" use="optional" default="LocalUser">
<xs:annotation>
<xs:documentation>Specifies the type of account: LocalUser, DomainUser, NetworkService, LocalService, ManagedServiceAccount, or LocalSystem. The default is LocalUser. Local user accounts are created on the machines where the application is deployed. By default, these accounts do not have the same names as those specified here. Instead, they are dynamically generated and have random passwords. Supported local system account types are LocalUser, NetworkService, LocalService and LocalSystem. Domain accounts are supported on Windows Server deployments where Azure Active Directory is available.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="LocalUser"/>
<xs:enumeration value="DomainUser"/>
<xs:enumeration value="NetworkService"/>
<xs:enumeration value="LocalService"/>
<xs:enumeration value="ManagedServiceAccount"/>
<xs:enumeration value="LocalSystem"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="LoadUserProfile" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="PerformInteractiveLogon" type="xs:boolean" use="optional" default="false"/>
<xs:attributeGroup ref="AccountCredentialsGroup"/>
<xs:attribute name="PasswordEncrypted" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>True if the password is encrypted; false if in plain text.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
Groups
将一组组声明为可在策略中引用的安全主体。 如果有多个用户用于不同的服务入口点,并且组级别需要具有某些通用权限,则组非常有用。
| Attribute |
价值 |
| 名字 |
Groups |
| minOccurs |
0 |
用户
将一组用户声明为安全主体,可在策略中引用这些主体。
| Attribute |
价值 |
| 名字 |
用户 |
| minOccurs |
0 |
ServiceAndServiceGroupTypesType complexType
| Attribute |
价值 |
| 内容 |
4 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceAndServiceGroupTypesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceAndServiceGroupTypesType">
<xs:choice maxOccurs="unbounded">
<xs:element name="StatefulServiceType" type="StatefulServiceTypeType"/>
<xs:element name="StatelessServiceType" type="StatelessServiceTypeType"/>
<xs:element name="StatefulServiceGroupType" type="StatefulServiceGroupTypeType"/>
<xs:element name="StatelessServiceGroupType" type="StatelessServiceGroupTypeType"/>
</xs:choice>
</xs:complexType>
内容元素详细信息
StatefulServiceType
StatelessServiceType
StatefulServiceGroupType
StatelessServiceGroupType
ServiceDiagnosticsType complexType
描述此服务清单组件的诊断设置。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
ServiceDiagnosticsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceDiagnosticsType">
<xs:annotation>
<xs:documentation>Describes the diagnostic settings for the components of this service manifest.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ETW" minOccurs="0">
<xs:annotation>
<xs:documentation>Describes the ETW settings for the components of this service manifest.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ProviderGuids" minOccurs="0">
<xs:annotation>
<xs:documentation>Lists the ETW provider GUIDs for the components of this service manifest.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ProviderGuid" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Value" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ManifestDataPackages" minOccurs="0">
<xs:annotation>
<xs:documentation>Lists the data packages containing ETW manifests for the components of this service manifest. The data package containing ETW manifests should not contain any other files. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ManifestDataPackage" type="DataPackageType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
ETW
描述此服务清单组件的 ETW 设置。
| Attribute |
价值 |
| 名字 |
ETW |
| minOccurs |
0 |
ServiceFabricRuntimeAccessPolicyType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceFabricRuntimeAccessPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceFabricRuntimeAccessPolicyType">
<xs:attribute name="RemoveServiceFabricRuntimeAccess" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Indicates if Fabric Runtime specific information should be exposed to the Code packages in the Service package.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UseServiceFabricReplicatedStore" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Indicates if Service Fabric replicated blockstore should be used to provide volume for containers in service package.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
移除ServiceFabric运行时访问权限
指示是否应向服务包中的代码包公开 Fabric 运行时特定信息。
| Attribute |
价值 |
| 名字 |
移除ServiceFabric运行时访问权限 |
| 类型 |
xs:boolean |
| 默认 |
假 |
UseServiceFabricReplicatedStore
指示是否应使用 Service Fabric 复制的块存储为服务包中的容器提供卷。
| Attribute |
价值 |
| 名字 |
UseServiceFabricReplicatedStore |
| 类型 |
xs:boolean |
| 默认 |
假 |
ServiceGroupMemberType complexType
| Attribute |
价值 |
| 内容 |
1 个元素,2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceGroupMemberType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceGroupMemberType">
<xs:sequence>
<xs:element name="LoadMetrics" minOccurs="0">
<xs:annotation>
<xs:documentation>Load metrics reported by this service.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ServiceTypeName" use="required">
<xs:annotation>
<xs:documentation>Type of the service group member.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>Name of the service group member relative to the name of the service group.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
服务类型名称
服务组成员的类型。
| Attribute |
价值 |
| 名字 |
服务类型名称 |
| 使用 |
(必需) |
名称
相对于服务组的名称的服务组成员的名称。
| Attribute |
价值 |
| 名字 |
名称 |
| 使用 |
(必需) |
内容元素详细信息
LoadMetrics
此服务报告的负载指标。
| Attribute |
价值 |
| 名字 |
LoadMetrics |
| minOccurs |
0 |
ServiceGroupTypeType complexType
描述有状态或无状态 ServiceGroupType 的基类型。
| Attribute |
价值 |
| 内容 |
4 个元素,2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceGroupTypeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceGroupTypeType">
<xs:annotation>
<xs:documentation>Base type that describes a stateful or a stateless ServiceGroupType.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="LoadMetrics" minOccurs="0">
<xs:annotation>
<xs:documentation>Load metrics reported by this service.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PlacementConstraints" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Constraints for the placement of services that are part of this package.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceGroupMembers" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Member types of this service group type.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="ServiceGroupTypeMember" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="Extensions" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ServiceGroupTypeName" use="required">
<xs:annotation>
<xs:documentation>User-defined type identifier for a service group, For example, "ActorQueueSGType". This value is used in the ApplicationManifest.xml file to identify the service group.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="UseImplicitFactory" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies whether the service group instance is created by the implicit factory. If false (default), one of the code packages must register the service group factory</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
ServiceGroupTypeName
服务组的用户定义类型标识符,例如“ActorQueueSGType”。 此值在 ApplicationManifest.xml 文件中用于标识服务组。
| Attribute |
价值 |
| 名字 |
ServiceGroupTypeName |
| 使用 |
(必需) |
UseImplicitFactory
指定服务组实例是否由隐式工厂创建。 如果为 false(默认值),则其中一个代码包必须注册服务组工厂
| Attribute |
价值 |
| 名字 |
UseImplicitFactory |
| 类型 |
xs:boolean |
| 使用 |
optional |
内容元素详细信息
LoadMetrics
此服务报告的负载指标。
| Attribute |
价值 |
| 名字 |
LoadMetrics |
| minOccurs |
0 |
PlacementConstraints
作为此包一部分的服务放置的约束。
| Attribute |
价值 |
| 名字 |
PlacementConstraints |
| 类型 |
xs:string |
| minOccurs |
0 |
ServiceGroupMembers
此服务组类型的成员类型。
| Attribute |
价值 |
| 名字 |
ServiceGroupMembers |
| minOccurs |
0 |
| maxOccurs |
1 |
没有
| Attribute |
价值 |
| 参考 |
Extensions |
| minOccurs |
0 |
ServiceManifestImportPoliciesType complexType
描述要应用于导入服务清单的策略(终结点绑定、包共享、运行方式和安全访问)。
| Attribute |
价值 |
| 内容 |
11 个元素,0 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceManifestImportPoliciesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceManifestImportPoliciesType">
<xs:annotation>
<xs:documentation>Describes policies (end-point binding, package sharing, run-as, and security access) to be applied on the imported service manifest.</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="RunAsPolicy" type="RunAsPolicyType" minOccurs="0"/>
<xs:element name="SecurityAccessPolicy" type="SecurityAccessPolicyType" minOccurs="0"/>
<xs:element name="PackageSharingPolicy" type="PackageSharingPolicyType" minOccurs="0"/>
<xs:element name="EndpointBindingPolicy" type="EndpointBindingPolicyType" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies a certificate that should be returned to a client for an HTTPS endpoint.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceFabricRuntimeAccessPolicy" type="ServiceFabricRuntimeAccessPolicyType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies policies that determine how the service fabric runtime is exposed to the replicas.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServicePackageResourceGovernancePolicy" type="ServicePackageResourceGovernancePolicyType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Defines the resource governance policy that is applied at the level of the entire service package.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies resource limits for a codepackage.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServicePackageContainerPolicy" type="ServicePackageContainerPolicyType" minOccurs="0" maxOccurs="1"/>
<xs:element name="ContainerHostPolicies" type="ContainerHostPoliciesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies policies for activating container hosts.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ConfigPackagePolicies" type="ConfigPackagePoliciesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Config Packages to be mounted inside the container.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NetworkPolicies" type="NetworkPoliciesType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies network policies including container network policies.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
内容元素详细信息
RunAsPolicy
SecurityAccessPolicy
PackageSharingPolicy
EndpointBindingPolicy
指定应返回到 HTTPS 终结点的客户端的证书。
ServiceFabricRuntimeAccessPolicy
指定用于确定 Service Fabric 运行时如何向副本公开的策略。
ServicePackageResourceGovernancePolicy
定义在整个服务包级别应用的资源治理策略。
ResourceGovernancePolicy
指定代码包的资源限制。
ServicePackageContainerPolicy
ContainerHostPolicies
指定用于激活容器主机的策略。
ConfigPackagePolicies
要装载到容器内的配置包。
NetworkPolicies
指定包括容器网络策略在内的网络策略。
ServiceManifestRefType complexType
按引用导入服务清单。 当前,服务清单文件(ServiceManifest.xml)必须存在于生成包中。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceManifestRefType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceManifestRefType">
<xs:annotation>
<xs:documentation>Imports the service manifest by reference. Currently the service manifest file (ServiceManifest.xml) must be present in the build package.</xs:documentation>
</xs:annotation>
<xs:attributeGroup ref="ServiceManifestIdentifier"/>
</xs:complexType>
ServiceManifestType complexType
以声明方式描述服务类型和版本。 其中列出了独立可升级的代码、配置和数据包,这些包共同组成服务包以支持一个或多个服务类型。 还指定了资源、诊断设置和服务元数据,例如服务类型、运行状况属性和负载均衡指标。
| Attribute |
价值 |
| 内容 |
7 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ServiceManifestType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceManifestType">
<xs:annotation>
<xs:documentation>Declaratively describes the service type and version. It lists the independently upgradeable code, configuration, and data packages that together compose a service package to support one or more service types. Resources, diagnostics settings, and service metadata, such as service type, health properties, and load-balancing metrics, are also specified.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Description" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Text describing this service.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceTypes" type="ServiceAndServiceGroupTypesType">
<xs:annotation>
<xs:documentation>Defines what service types are supported by a CodePackage in this manifest. When a service is instantiated against one of these service types, all code packages declared in this manifest are activated by running their entry points. Service types are declared at the manifest level and not the code package level.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CodePackage" type="CodePackageType" maxOccurs="unbounded"/>
<xs:element name="ConfigPackage" type="ConfigPackageType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DataPackage" type="DataPackageType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Resources" type="ResourcesType" minOccurs="0"/>
<xs:element name="Diagnostics" type="ServiceDiagnosticsType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ManifestId" use="optional" default="" type="xs:string">
<xs:annotation>
<xs:documentation>The identifier of this service manifest, an unstructured string.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="VersionedName"/>
<xs:anyAttribute processContents="skip"/> <!-- Allow unknown attributes to be used. -->
</xs:complexType>
属性详细信息
ManifestId
此服务清单的标识符,非结构化字符串。
| Attribute |
价值 |
| 名字 |
ManifestId |
| 使用 |
optional |
| 默认 |
|
| 类型 |
xs:string |
内容元素详细信息
说明
描述此服务的文本。
| Attribute |
价值 |
| 名字 |
说明 |
| 类型 |
xs:string |
| minOccurs |
0 |
ServiceTypes
定义此清单中的 CodePackage 支持哪些服务类型。 当针对其中一种服务类型实例化服务时,此清单中声明的所有代码包都通过运行入口点来激活。 服务类型在清单级别声明,而不是代码包级别。
CodePackage
ConfigPackage
DataPackage
资源
诊断
ServicePackageContainerPolicyType complexType
| Attribute |
价值 |
| 内容 |
1 个元素,2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServicePackageContainerPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePackageContainerPolicyType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="PortBinding" type="PortBindingType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies which endpoint resource to bind container exposed port.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:attribute name="Hostname" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>Specify Hostname for container.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Isolation" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>Isolation mode for container. Valid values are "default", "process" or "hyperv".</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
主机名
指定容器的主机名。
| Attribute |
价值 |
| 名字 |
主机名 |
| 使用 |
optional |
| 类型 |
xs:string |
隔离
容器的隔离模式。 有效值为“default”、“process”或“hyperv”。
| Attribute |
价值 |
| 名字 |
隔离 |
| 使用 |
optional |
| 类型 |
xs:string |
内容元素详细信息
PortBinding
指定要绑定容器公开端口的终结点资源。
ServicePackageResourceGovernancePolicyType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServicePackageResourceGovernancePolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePackageResourceGovernancePolicyType">
<xs:attribute name="CpuCores" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>CPU limit in number of logical cores. Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MemoryInMB" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Memory limits in MB. Must be a positive integer.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
CpuCores
逻辑核心数的 CPU 限制。 必须是正整数。
| Attribute |
价值 |
| 名字 |
CpuCores |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
MemoryInMB
内存限制(以 MB 为单位)。 必须是正整数。
| Attribute |
价值 |
| 名字 |
MemoryInMB |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
ServicePackageType complexType
ServicePackage 表示部署和激活的版本控制单元。 ServicePackage 的版本根据清单版本和替代版本确定。
| Attribute |
价值 |
| 内容 |
11 个元素,4 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServicePackageType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePackageType">
<xs:annotation>
<xs:documentation>ServicePackage represents a versioned unit of deployment and activation. The version of the ServicePackage is determined based on the manifest version and the version of the overrides.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Description" type="xs:string" minOccurs="0"/>
<xs:element name="ServicePackageResourceGovernancePolicy" type="ServicePackageResourceGovernancePolicyType" minOccurs="0" maxOccurs="1"/>
<xs:element name="ServicePackageContainerPolicy" type="ServicePackageContainerPolicyType" minOccurs="0" maxOccurs="1"/>
<xs:element name="ServiceFabricRuntimeAccessPolicy" type="ServiceFabricRuntimeAccessPolicyType" minOccurs="0" maxOccurs="1"/>
<xs:element name="DigestedServiceTypes">
<xs:complexType>
<xs:sequence>
<xs:element name="ServiceTypes" type="ServiceTypesType"/>
</xs:sequence>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
</xs:complexType>
</xs:element>
<xs:element name="DigestedCodePackage" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="CodePackage" type="CodePackageType"/>
<xs:element name="RunAsPolicy" type="RunAsPolicyType" minOccurs="0" maxOccurs="2"/>
<xs:element name="DebugParameters" type="DebugParametersType" minOccurs="0" maxOccurs="1"/>
<xs:element name="ContainerHostPolicies" type="ContainerHostPoliciesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies policies for activating container hosts.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies resource limits for codepackage.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ConfigPackagePolicies" type="ConfigPackagePoliciesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Specifies config policies for mounts.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
<xs:attribute name="ContentChecksum" type="xs:string"/>
<xs:attribute name="IsShared" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="DigestedConfigPackage" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ConfigPackage" type="ConfigPackageType"/>
<xs:element name="ConfigOverride" type="ConfigOverrideType" minOccurs="0"/>
<xs:element name="DebugParameters" type="DebugParametersType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
<xs:attribute name="ContentChecksum" type="xs:string"/>
<xs:attribute name="IsShared" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="DigestedDataPackage" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="DataPackage" type="DataPackageType"/>
<xs:element name="DebugParameters" type="DebugParametersType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
<xs:attribute name="ContentChecksum" type="xs:string"/>
<xs:attribute name="IsShared" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="DigestedResources" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="DigestedEndpoints" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="DigestedEndpoint" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Endpoint" type="EndpointType"/>
<xs:element name="SecurityAccessPolicy" type="SecurityAccessPolicyType" minOccurs="0"/>
<xs:element name="EndpointBindingPolicy" type="EndpointBindingPolicyType" minOccurs="0"/>
<xs:element name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DigestedCertificates" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
</xs:complexType>
</xs:element>
<xs:element name="NetworkPolicies" type="NetworkPoliciesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Diagnostics" type="ServiceDiagnosticsType"/>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="ManifestVersion" type="xs:string" use="required"/>
<xs:attributeGroup ref="VersionedItemAttrGroup"/>
<xs:attribute name="ManifestChecksum" type="xs:string">
<xs:annotation>
<xs:documentation>Checksum value of the ServiceManifest file.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ContentChecksum" type="xs:string">
<xs:annotation>
<xs:documentation>Checksum value of this ServicePackage content.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
名称
| Attribute |
价值 |
| 名字 |
名称 |
| 类型 |
xs:string |
| 使用 |
(必需) |
ManifestVersion
| Attribute |
价值 |
| 名字 |
ManifestVersion |
| 类型 |
xs:string |
| 使用 |
(必需) |
ManifestChecksum
ServiceManifest 文件的校验和值。
| Attribute |
价值 |
| 名字 |
ManifestChecksum |
| 类型 |
xs:string |
ContentChecksum
此 ServicePackage 内容的校验和值。
| Attribute |
价值 |
| 名字 |
ContentChecksum |
| 类型 |
xs:string |
内容元素详细信息
说明
| Attribute |
价值 |
| 名字 |
说明 |
| 类型 |
xs:string |
| minOccurs |
0 |
ServicePackageResourceGovernancePolicy
ServicePackageContainerPolicy
ServiceFabricRuntimeAccessPolicy
DigestedServiceTypes
| Attribute |
价值 |
| 名字 |
DigestedServiceTypes |
DigestedCodePackage
| Attribute |
价值 |
| 名字 |
DigestedCodePackage |
| maxOccurs |
无限制 |
DigestedConfigPackage
| Attribute |
价值 |
| 名字 |
DigestedConfigPackage |
| minOccurs |
0 |
| maxOccurs |
无限制 |
DigestedDataPackage
| Attribute |
价值 |
| 名字 |
DigestedDataPackage |
| minOccurs |
0 |
| maxOccurs |
无限制 |
DigestedResources
| Attribute |
价值 |
| 名字 |
DigestedResources |
| minOccurs |
1 |
NetworkPolicies
诊断
ServiceTemplatesType complexType
| Attribute |
价值 |
| 内容 |
4 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceTemplatesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTemplatesType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="StatelessService" type="StatelessServiceType"/>
<xs:element name="StatefulService" type="StatefulServiceType"/>
<xs:element name="StatelessServiceGroup" type="StatelessServiceGroupType"/>
<xs:element name="StatefulServiceGroup" type="StatefulServiceGroupType"/>
</xs:choice>
</xs:complexType>
内容元素详细信息
StatelessService
StatefulService
StatelessServiceGroup
StatefulServiceGroup
ServiceType complexType
定义 Azure Service Fabric 服务的基类型。
| Attribute |
价值 |
| 内容 |
5 个元素,2 个特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceType">
<xs:annotation>
<xs:documentation>Base type that defines a Azure Service Fabric service.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="PartitionDescriptionGroup"/>
<xs:element name="LoadMetrics" minOccurs="0">
<xs:annotation>
<xs:documentation>Load metrics reported by this service, used for resource balancing services.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PlacementConstraints" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Used to control which nodes in the cluster a service can run on. A key/value pair which describes the node property name and the service's requirements for the value. Individual statements can be grouped together with simple boolean logic to create the necessary constraint. For example, "(FirmwareVersion>12 && InDMZ == True)".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceCorrelations" minOccurs="0">
<xs:annotation>
<xs:documentation>Defines affinity relationships between services.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ServiceCorrelation" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Defines an affinity relationship with another service. Useful when splitting a previously-monolithic application into microservices. One service has a local dependency on another service and both services need to run on the same node in order to work.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="ServiceName" use="required">
<xs:annotation>
<xs:documentation>The name of the other service as a URI. Example, "fabric:/otherApplication/parentService".</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Scheme" use="required">
<xs:annotation>
<xs:documentation>In NonAlignedAffinity the replicas or instances of the different services are placed on the same nodes. AlignedAffinity is used with stateful services. Configuring one stateful service as having aligned affinity with another stateful service ensures that the primaries of those services are placed on the same nodes as each other, and that each pair of secondaries are also placed on the same nodes.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Affinity"/>
<xs:enumeration value="AlignedAffinity"/>
<xs:enumeration value="NonAlignedAffinity"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ServicePlacementPolicies" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares placement policies for a service. Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ServicePlacementPolicy" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Defines a service placement policy, which specifies that the service should or should not run in certain cluster fault domains. Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="DomainName">
<xs:annotation>
<xs:documentation>The fault domain where the service should or should not be placed, depending on the Type value.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Type" use="required">
<xs:annotation>
<xs:documentation>InvalidDomain allows you to specify that a particular Fault Domain is invalid for this workload. RequiredDomain requires that all of the replicas be present in the specified domain. Multiple required domains can be specified. PreferredPrimaryDomain specifies the preferred Fault Domain for primary replicas. Useful in geographically spanned clusters where you are using other locations for redundancy, but would prefer that the primary replicas be placed in a certain location in order to provider lower latency for operations which go to the primary. RequiredDomainDistribution specifies that replicas are required to be distributed among the available fault domains. NonPartiallyPlace controls if the service replicas will be partially place if not all of them can be placed.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="InvalidDomain"/>
<xs:enumeration value="RequiredDomain"/>
<xs:enumeration value="PreferredPrimaryDomain"/>
<xs:enumeration value="RequiredDomainDistribution"/>
<xs:enumeration value="NonPartiallyPlace"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ServiceScalingPolicies" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares scaling policies for a service. Useful for dynamically scaling the service based on needs. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ScalingPolicy" type="ScalingPolicyType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TagsRequiredToPlace" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares tags required for placement of a service. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="TagRequiredToPlace" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TagsRequiredToRun" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares tags required for placement and running of a service. <xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="TagRequiredToRun" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ServiceTypeName" use="required">
<xs:annotation>
<xs:documentation>Name of the service type, declared in the service manifest, that will be instantiated.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="DefaultMoveCost">
<xs:annotation>
<xs:documentation>Specifies default move cost for this service.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Zero"/>
<xs:enumeration value="Low"/>
<xs:enumeration value="Medium"/>
<xs:enumeration value="High"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
服务类型名称
将在服务清单中声明的服务类型的名称,将实例化。
| Attribute |
价值 |
| 名字 |
服务类型名称 |
| 使用 |
(必需) |
DefaultMoveCost
指定此服务的默认移动成本。
| Attribute |
价值 |
| 名字 |
DefaultMoveCost |
内容元素详细信息
LoadMetrics
此服务报告的负载指标,用于资源均衡服务。
| Attribute |
价值 |
| 名字 |
LoadMetrics |
| minOccurs |
0 |
PlacementConstraints
用于控制服务可以在群集中运行的节点。 一个键/值对,描述节点属性名称和服务对值的要求。 可以将单个语句与简单的布尔逻辑组合在一起,以创建必要的约束。 例如,“(FirmwareVersion>12 && InDMZ == True)”。
| Attribute |
价值 |
| 名字 |
PlacementConstraints |
| 类型 |
xs:string |
| minOccurs |
0 |
ServiceCorrelations
定义服务之间的相关性关系。
| Attribute |
价值 |
| 名字 |
ServiceCorrelations |
| minOccurs |
0 |
ServicePlacementPolicies
声明服务的放置策略。 当群集跨越地理距离或/或地缘政治区域时非常有用。
| Attribute |
价值 |
| 名字 |
ServicePlacementPolicies |
| minOccurs |
0 |
ServiceScalingPolicies
声明服务的缩放策略。 可用于根据需求动态缩放服务。
| Attribute |
价值 |
| 名字 |
ServiceScalingPolicies |
| minOccurs |
0 |
声明放置服务所需的标记。 可用于动态影响服务放置。
| Attribute |
价值 |
| 名字 |
TagsRequiredToPlace |
| minOccurs |
0 |
TagRequiredToRun
声明放置和运行服务所需的标记。 可用于动态影响服务放置和运行。
| Attribute |
价值 |
| 名字 |
TagRequiredToRun |
| minOccurs |
0 |
ServiceTypeExtensionPolicyPropertiesType complexType
定义持久性和逐出策略的属性。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
ServiceTypeExtensionPolicyPropertiesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTypeExtensionPolicyPropertiesType">
<xs:annotation>
<xs:documentation>Defines Properties for the Persistence and Eviction policies.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Property" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
财产
| Attribute |
价值 |
| 名字 |
财产 |
| minOccurs |
0 |
| maxOccurs |
无限制 |
ServiceTypeHealthPolicyType complexType
| Attribute |
价值 |
| 内容 |
0 元素(s)、3 个属性(s) |
| 定义 |
全球 |
| 名字 |
ServiceTypeHealthPolicyType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTypeHealthPolicyType">
<xs:attribute name="MaxPercentUnhealthyServices" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Specifies the maximum tolerated percentage of unhealthy services before the application is considered unhealthy. Default percentage: 0.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MaxPercentUnhealthyPartitionsPerService" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Specifies the maximum tolerated percentage of unhealthy partitions before a service is considered unhealthy. Default percentage: 0.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MaxPercentUnhealthyReplicasPerPartition" type="xs:string" use="optional" default="0">
<xs:annotation>
<xs:documentation>Specifies the maximum tolerated percentage of unhealthy replicas before a partition is considered unhealthy. Default percentage: 0.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
MaxPercentUnhealthyServices
指定在应用程序被视为不正常之前允许的最大不正常服务的百分比。 默认百分比:0。
| Attribute |
价值 |
| 名字 |
MaxPercentUnhealthyServices |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
MaxPercentUnhealthyPartitionsPerService
指定服务被视为不正常之前不正常分区的最大容忍百分比。 默认百分比:0。
| Attribute |
价值 |
| 名字 |
MaxPercentUnhealthyPartitionsPerService |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
MaxPercentUnhealthyReplicasPerPartition
指定分区被视为不正常之前不正常副本的最大容忍百分比。 默认百分比:0。
| Attribute |
价值 |
| 名字 |
MaxPercentUnhealthyReplicasPerPartition |
| 类型 |
xs:string |
| 使用 |
optional |
| 默认 |
0 |
ServiceTypeType complexType
描述有状态或无状态 ServiceType 的基类型。
| Attribute |
价值 |
| 内容 |
4 个元素(s)、1 个属性(s) |
| 定义 |
全球 |
| 名字 |
ServiceTypeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTypeType">
<xs:annotation>
<xs:documentation>Base type that describes a stateful or a stateless ServiceType.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="LoadMetrics" minOccurs="0">
<xs:annotation>
<xs:documentation>Load metrics reported by this service.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PlacementConstraints" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Used to control which nodes in the cluster a service can run on. A key/value pair which describes the node property name and the service's requirements for the value. Individual statements can be grouped together with simple boolean logic to create the necessary constraint. For example, "(FirmwareVersion>12 && InDMZ == True)".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServicePlacementPolicies" minOccurs="0">
<xs:annotation>
<xs:documentation>Declares placement policies for a service. Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ServicePlacementPolicy" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Defines a service placement policy, which specifies that the service should or should not run in certain cluster fault domains. Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="DomainName">
<xs:annotation>
<xs:documentation>The fault domain where the service should or should not be placed, depending on the Type value.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Type" use="required">
<xs:annotation>
<xs:documentation>InvalidDomain allows you to specify that a particular Fault Domain is invalid for this workload. RequiredDomain requires that all of the replicas be present in the specified domain. Multiple required domains can be specified. PreferredPrimaryDomain specifies the preferred Fault Domain for primary replicas. Useful in geographically spanned clusters where you are using other locations for redundancy, but would prefer that the primary replicas be placed in a certain location in order to provider lower latency for operations which go to the primary. RequiredDomainDistribution specifies that replicas are required to be distributed among the available fault domains. NonPartiallyPlace controls if the service replicas will be partially place if not all of them can be placed. </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="InvalidDomain"/>
<xs:enumeration value="RequiredDomain"/>
<xs:enumeration value="PreferredPrimaryDomain"/>
<xs:enumeration value="RequiredDomainDistribution"/>
<xs:enumeration value="NonPartiallyPlace"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="Extensions" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ServiceTypeName" use="required">
<xs:annotation>
<xs:documentation>User-defined type identifier for a service. For example, "QueueType" or "CalculatorType". This value is used in the ApplicationManifest.xml file to identify the service.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
属性详细信息
服务类型名称
服务的用户定义的类型标识符。 例如,“QueueType”或“CalculatorType”。 此值在 ApplicationManifest.xml 文件中用于标识服务。
| Attribute |
价值 |
| 名字 |
服务类型名称 |
| 使用 |
(必需) |
内容元素详细信息
LoadMetrics
此服务报告的负载指标。
| Attribute |
价值 |
| 名字 |
LoadMetrics |
| minOccurs |
0 |
PlacementConstraints
用于控制服务可以在群集中运行的节点。 一个键/值对,描述节点属性名称和服务对值的要求。 可以将单个语句与简单的布尔逻辑组合在一起,以创建必要的约束。 例如,“(FirmwareVersion>12 && InDMZ == True)”。
| Attribute |
价值 |
| 名字 |
PlacementConstraints |
| 类型 |
xs:string |
| minOccurs |
0 |
ServicePlacementPolicies
声明服务的放置策略。 当群集跨越地理距离或/或地缘政治区域时非常有用。
| Attribute |
价值 |
| 名字 |
ServicePlacementPolicies |
| minOccurs |
0 |
没有
| Attribute |
价值 |
| 参考 |
Extensions |
| minOccurs |
0 |
ServiceTypesType complexType
| Attribute |
价值 |
| 内容 |
2 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
ServiceTypesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTypesType">
<xs:choice maxOccurs="unbounded">
<xs:element name="StatefulServiceType" type="StatefulServiceTypeType">
<xs:annotation>
<xs:documentation>Describes a stateful ServiceType.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="StatelessServiceType" type="StatelessServiceTypeType">
<xs:annotation>
<xs:documentation>Describes a stateless ServiceType.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
内容元素详细信息
StatefulServiceType
描述有状态 ServiceType。
StatelessServiceType
描述无状态 ServiceType。
SettingsOverridesType complexType
声明要重写的服务清单中的配置设置。 它由一个或多个键值对部分组成。 可以使用 Invoke-ServiceFabricEncryptSecret cmdlet 对参数值进行加密。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
SettingsOverridesType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SettingsOverridesType">
<xs:annotation>
<xs:documentation>Declares configuration settings in a service manifest to be overridden. It consists of one or more sections of key-value pairs. Parameter values can be encrypted using the Invoke-ServiceFabricEncryptSecret cmdlet.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Section" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A section in the Settings.xml file to override.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Parameter" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The setting to override.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attributeGroup ref="NameValuePair"/>
<xs:attribute name="IsEncrypted" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>
If true, the value of this parameter is encrypted. The application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information. The certificate information that will be used to encrypt the value is specified in the Certificates section. This attribute is deprecated. Please use Type attribute.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Type" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
This value defines the type of value you have specified in the 'Value' Attribute. It can be SecretsStoreRef/Encrypted/PlainText.
If set to SecretsStoreRef, we retrieve the reference value from the SecretStore.
If set to Encrypted, the application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>The name of the section in the Settings.xml file to override.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
章节
要重写的 Settings.xml 文件中的一部分。
| Attribute |
价值 |
| 名字 |
章节 |
| maxOccurs |
无限制 |
SettingsType complexType
描述 ServiceComponent 或 Application 的用户定义设置。 它由一个或多个键值对部分组成。
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
SettingsType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SettingsType">
<xs:annotation>
<xs:documentation>Describes user-defined settings for a ServiceComponent or an Application. It consists of one or more sections of key-value pairs.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A user-defined named section.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Parameter" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Value" type="xs:string" use="required"/>
<xs:attribute name="MustOverride" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>If true, the value of this parameter must be overridden by higher level configuration.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IsEncrypted" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>If true, the value of this parameter is encrypted.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Type" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
章节
用户定义的命名节。
| Attribute |
价值 |
| 名字 |
章节 |
| minOccurs |
0 |
| maxOccurs |
无限制 |
StatefulServiceGroupType complexType
定义有状态服务组。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatefulServiceGroupType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulServiceGroupType">
<xs:annotation>
<xs:documentation>Defines a stateful service group.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="StatefulServiceType">
<xs:sequence>
<xs:element name="Members" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Member services of this service group</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Member" type="ServiceGroupMemberType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
StatefulServiceGroupTypeType complexType
描述有状态服务组类型。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatefulServiceGroupTypeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulServiceGroupTypeType">
<xs:annotation>
<xs:documentation>Describes a stateful service group type.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ServiceGroupTypeType">
<xs:attribute name="HasPersistedState" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>True if the service group has state that needs to be persisted.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
StatefulServiceType complexType
定义有状态服务。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatefulServiceType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulServiceType">
<xs:annotation>
<xs:documentation>Defines a stateful service.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ServiceType">
<xs:attribute name="TargetReplicaSetSize" type="xs:string" default="1">
<xs:annotation>
<xs:documentation>Desired replica set size for the partitions of this stateful service. Must be a positive integer. This is a target size; a replica set is still functional with less members. The quorum is a majority based quorum.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MinReplicaSetSize" type="xs:string" default="1">
<xs:annotation>
<xs:documentation>Minimum number of replicas required in the replica set to allow writes. Must be positive integer less than TargetReplicaSetSize. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ReplicaRestartWaitDurationSeconds" type="xs:string" use="optional" default="">
<xs:annotation>
<xs:documentation>The duration between when a replica goes down and when a new replica is created. When a persistent replica goes down, this timer starts. When it expires Service Fabric will create a new replica on any node in the cluster.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="QuorumLossWaitDurationSeconds" type="xs:string" use="optional" default="">
<xs:annotation>
<xs:documentation>The maximum duration for which a partition is allowed to be in a state of quorum loss. If the partition is still in quorum loss after this duration, the partition is recovered from quorum loss by considering the down replicas as lost. Note that this can potentially incur data loss.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="StandByReplicaKeepDurationSeconds" type="xs:string" use="optional" default="">
<xs:annotation>
<xs:documentation>How long StandBy replicas should be maintained before being removed. Sometimes a replica will be down for longer than the ReplicaRestartWaitDuration. In these cases a new replica will be built to replace it. Sometimes however the loss is not permanent and the persistent replica is eventually recovered. This now constitutes a StandBy replica.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
StatefulServiceTypeType complexType
描述有状态服务类型。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatefulServiceTypeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulServiceTypeType">
<xs:annotation>
<xs:documentation>Describes a stateful service type.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ServiceTypeType">
<xs:attribute name="HasPersistedState" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>True if the service has state that needs to be persisted on the local disk.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UseImplicitHost" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Specifies if the service type should be implemented implicitly as a guest executable. Guest executables are used for hosting any type of applications (such as Node.js or Java) or legacy applications that do not implement the Service Fabric service interfaces.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
StatelessServiceGroupType complexType
定义无状态服务组。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatelessServiceGroupType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessServiceGroupType">
<xs:annotation>
<xs:documentation>Defines a stateless service group.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="StatelessServiceType">
<xs:sequence>
<xs:element name="Members" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Member services of this service group</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Member" type="ServiceGroupMemberType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
StatelessServiceGroupTypeType complexType
描述无状态服务组类型。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatelessServiceGroupTypeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessServiceGroupTypeType">
<xs:annotation>
<xs:documentation>Describes a stateless service group type.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ServiceGroupTypeType"/>
</xs:complexContent>
</xs:complexType>
StatelessServiceType complexType
定义无状态服务。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatelessServiceType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessServiceType">
<xs:annotation>
<xs:documentation>Defines a stateless service.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ServiceType">
<xs:attribute name="InstanceCount" type="xs:string" default="1">
<xs:annotation>
<xs:documentation>Number of instances required for this stateless service (positive integer).</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
StatelessServiceTypeType complexType
描述无状态服务类型。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
StatelessServiceTypeType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessServiceTypeType">
<xs:annotation>
<xs:documentation>Describes a stateless service type.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ServiceTypeType">
<xs:attribute name="UseImplicitHost" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Specifies if the service type should be implemented implicitly as a guest executable. Guest executables are used for hosting any type of applications (such as Node.js or Java) or legacy applications that do not implement the Service Fabric service interfaces.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
| Attribute |
价值 |
| 内容 |
2 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
TargetInformationType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="TargetInformationType">
<xs:all>
<xs:element name="CurrentInstallation" type="WindowsFabricDeploymentInformation" minOccurs="0"/>
<xs:element name="TargetInstallation" type="WindowsFabricDeploymentInformation" minOccurs="1"/>
</xs:all>
</xs:complexType>
内容元素详细信息
CurrentInstallation
TargetInstallation
UnmanagedDllType complexType
不支持,请勿使用。 要托管的非托管程序集(例如,Queue.dll)的名称。
| Attribute |
价值 |
| 内容 |
0 元素(s)、0 特性(s) |
| 定义 |
全球 |
| 名字 |
UnmanagedDllType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="UnmanagedDllType">
<xs:annotation>
<xs:documentation>Unsupported, do not use. The name of unmanaged assembly (for example, Queue.dll), to host.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>
| Attribute |
价值 |
| 内容 |
0 元素(s)、11 个特性(s) |
| 定义 |
全球 |
| 名字 |
WindowsFabricDeploymentInformation |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="WindowsFabricDeploymentInformation">
<xs:attribute name="InstanceId" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>This is the target instance of the node.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="MSILocation" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>This is the full path to the MSI location.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ClusterManifestLocation" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>This is the full path to the Cluster Manifest Location.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="InfrastructureManifestLocation" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>This location of the infrastructure manifest that is internally generated.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="TargetVersion" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>This is the Target Version of the deployment.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="NodeName" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>This is the name of the Node to which the Fabric Upgrade is to happen</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RemoveNodeState" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>A flag indicating if RemoveNodeState Api should be called after removing node configuration.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UpgradeEntryPointExe" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Name of the exe used by the installer service to upgrade </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UpgradeEntryPointExeParameters" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Parameters to the Setup Entry point exe</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UndoUpgradeEntryPointExe" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Name of the exe used by the installer service to undo the upgrade</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UndoUpgradeEntryPointExeParameters" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Parameters to the Setup Entry point exe</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
属性详细信息
实例ID
这是节点的目标实例。
| Attribute |
价值 |
| 名字 |
实例ID |
| 类型 |
xs:string |
| 使用 |
optional |
MSILocation
这是 MSI 位置的完整路径。
| Attribute |
价值 |
| 名字 |
MSILocation |
| 类型 |
xs:string |
| 使用 |
optional |
ClusterManifestLocation
这是群集清单位置的完整路径。
| Attribute |
价值 |
| 名字 |
ClusterManifestLocation |
| 类型 |
xs:string |
| 使用 |
optional |
InfrastructureManifestLocation
内部生成的基础结构清单的此位置。
| Attribute |
价值 |
| 名字 |
InfrastructureManifestLocation |
| 类型 |
xs:string |
| 使用 |
optional |
TargetVersion
这是部署的目标版本。
| Attribute |
价值 |
| 名字 |
TargetVersion |
| 类型 |
xs:string |
| 使用 |
optional |
节点名称
这是结构升级要执行到的节点的名称
| Attribute |
价值 |
| 名字 |
节点名称 |
| 类型 |
xs:string |
| 使用 |
optional |
RemoveNodeState
一个标志,指示删除节点配置后是否应调用 RemoveNodeState Api。
| Attribute |
价值 |
| 名字 |
RemoveNodeState |
| 类型 |
xs:boolean |
| 使用 |
optional |
| 默认 |
假 |
UpgradeEntryPointExe
安装程序服务用于升级的 exe 的名称
| Attribute |
价值 |
| 名字 |
UpgradeEntryPointExe |
| 类型 |
xs:string |
| 使用 |
optional |
UpgradeEntryPointExeParameters
设置入口点 exe 的参数
| Attribute |
价值 |
| 名字 |
UpgradeEntryPointExeParameters |
| 类型 |
xs:string |
| 使用 |
optional |
UndoUpgradeEntryPointExe
安装程序服务用于撤消升级的 exe 的名称
| Attribute |
价值 |
| 名字 |
UndoUpgradeEntryPointExe |
| 类型 |
xs:string |
| 使用 |
optional |
UndoUpgradeEntryPointExeParameters
设置入口点 exe 的参数
| Attribute |
价值 |
| 名字 |
UndoUpgradeEntryPointExeParameters |
| 类型 |
xs:string |
| 使用 |
optional |
WindowsInfrastructureType complexType
| Attribute |
价值 |
| 内容 |
1 个元素(s)、0 个属性(s) |
| 定义 |
全球 |
| 名字 |
WindowsInfrastructureType |
XML 源
<xs:complexType xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="WindowsInfrastructureType">
<xs:sequence>
<xs:element name="NodeList">
<xs:complexType>
<xs:sequence>
<xs:element name="Node" type="FabricNodeType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
内容元素详细信息
NodeList