使用 Windows Server AppFabric Cmdlet 显示终结点数据
本主题介绍如何使用 Windows Server AppFabric cmdlet 显示有关终结点的信息。
备注
要手动执行 AppFabric cmdlet,请打开 AppFabric 的 Windows PowerShell 控制台,输入相应的 cmdlet,然后按 Enter。有关执行 cmdlet 的详细信息,请参阅运行 Windows Server AppFabric Cmdlet。有关本文档的语法说明中使用的任何类或通用参数的信息,请参阅 Windows PowerShell for Windows Server AppFabric 参考。
获取服务的终结点
在 AppFabric 的 Windows PowerShell 控制台中,执行 Get-ASAppServiceEndpoint cmdlet,以查看有关指定作用域中可用服务所公开的终结点的信息。
Get-ASAppServiceEndpoint cmdlet 的语法选项:
语法 1
Get-ASAppServiceEndpoint [-SiteName <String>] [-VirtualPath <String>]
语法 2
Get-ASAppServiceEndpoint [-Uri <String>]
语法 3
Get-ASAppServiceEndpoint [-ServiceObject <ServiceInfo>]
参数 | 描述 |
---|---|
-SiteName(可选) |
指定站点的名称。如果指定该参数,则不得指定 -Uri 或 –ServiceObject。使用此参数时,cmdlet 将返回指定站点中服务的终结点。
|
-VirtualPath(可选) |
指定指向服务或应用程序的虚拟路径,例如 /MyDir1/MyApp1/POService.svc。这是一个可选参数,在未指定 –Uri 或 –ServiceObject 时与 -SiteName 一起使用。 |
-Uri(可选) |
指定站点、应用程序或服务的 URI。如果指定该参数,则不得指定 –SiteName、-VirtualPath 或 –ServiceObject。使用此参数时,cmdlet 将返回指定 URI 作用域中包含的服务的终结点。
|
-ServiceObject(可选) |
指定 ServiceObject 对象,该对象用于确定要为其返回信息的服务实例。如果指定该参数,则不得指定 –SiteName、-VirtualPath 或 –Uri。有关详细信息,请参阅 Windows PowerShell for Windows Server AppFabric 参考。此参数主要用于管道传输方案。
|
有关此 cmdlet 的详细信息,请参阅 Get-ASAppServiceEndpoint。
获取服务的终结点传输配额数据
在 AppFabric Windows PowerShell 控制台中,执行 Get-ASAppServiceEndpointTransportQuota cmdlet,以查看给定服务的终结点传输配额配置。
Get-ASAppServiceEndpointTransportQuota cmdlet 的语法选项:
语法 1
Get-ASAppServiceEndpointTransportQuota -SiteName <string> -VirtualPath <string> -Address <string> -Binding <string> –Contract <string>
语法 2
Get-ASAppServiceEndpointTransportQuota -Uri <string> -Address <string> -Binding <string> –Contract <string>
语法 3
Get-ASAppServiceEndpointTransportQuota -ServiceObject <ServiceInfo> -Address <string> -Binding <string> –Contract <string>
参数 | 描述 |
---|---|
-Address、-Binding 和 -Contract |
必需(如果未指定 ServiceEndpointObject 参数) |
-SiteName(可选) |
指定站点的名称。如果指定该参数,则不得指定 -Uri 或 –ServiceObject。使用此参数时,仅返回站点中的服务的终结点。 |
-VirtualPath(可选) |
指定指向服务或应用程序的虚拟路径,例如 /MyDir1/MyApp1/POService.svc。这是一个可选参数,在未指定 –Uri 或 –ServiceObject 时与 -SiteName 一起使用。 |
-Uri(可选) |
指定站点、应用程序或服务的 URI。如果指定该参数,则不得指定 –SiteName、-VirtualPath 或 –ServiceObject。 |
-ServiceObject(可选) |
指定 ServiceObject 对象,该对象用于确定要为其返回信息的服务实例。如果指定该参数,则不得指定 –SiteName、-VirtualPath 或 –Uri。有关详细信息,请参阅 Windows PowerShell for Windows Server AppFabric 参考。 |
有关此 cmdlet 的详细信息,请参阅 Get-ASAppServiceEndpointTransportQuota。
获取服务的终结点身份验证数据
在 AppFabric Windows PowerShell 控制台中,执行 Get-ASAppServiceEndpointAuthentication cmdlet,以返回当前为与该绑定一起使用的终结点设置的身份验证属性。
Get-ASAppServiceEndpointAuthentication cmdlet 的语法选项:
语法 1
Get-ASAppServiceEndpointAuthentication [-SiteName] <String> [-VirtualPath] <String> [[-Address] <String>] [-Binding
] <String> [-Contract] <String> [<CommonParameters>]
语法 2
Get-ASAppServiceEndpointAuthentication [-Uri] <Uri> [[-Address] <String>] [-Binding] <String> [-Contract] <String>
[<CommonParameters>]
语法 3
Get-ASAppServiceEndpointAuthentication [[-Address] <String>] [-Binding] <String> [-Contract] <String> -ServiceObjec
t <ServiceInfo> [<CommonParameters>]
参数 | 描述 |
---|---|
-SiteName(可选) |
指定站点的名称。如果指定该参数,则不得指定 -Uri 或 –ServiceObject。 |
-VirtualPath(可选) |
指定指向服务或应用程序的虚拟路径,例如 /MyDir1/MyApp1/POService.svc。这是一个可选参数,在未指定 –Uri 或 –ServiceObject 时与 -SiteName 一起使用。 |
-Uri(可选) |
指定站点、应用程序或服务的 URI。如果指定该参数,则不得指定 –SiteName、-VirtualPath 或 –ServiceObject。使用此参数时,仅返回此 URI 下的服务实例。 |
-ServiceObject(可选) |
指定 ServiceObject 对象,该对象用于确定要为其返回信息的服务实例。如果指定该参数,则不得指定 –SiteName、-VirtualPath 或 –Uri。有关详细信息,请参阅 Windows PowerShell for Windows Server AppFabric 参考。 |
有关此 cmdlet 的详细信息,请参阅 Get-ASAppServiceEndpointAuthentication。
2011-12-05