AppFabric Cmdlet을 사용하여 서비스 메타데이터 구성
다음 cmdlet을 사용하여 서비스 메타데이터 구성 설정을 설정하거나 가져오거나 지울 수 있습니다.
Cmdlet |
설명 |
Get-ASAppServiceMetadata |
지정한 범위와 연결된 구성 파일에서 serviceMetadata 요소의 httpGetEnabled 및 httpGetUrl 특성 값을 가져옵니다. |
Set-ASAppServiceMetadata |
지정한 범위와 연결된 구성 파일에서 serviceMetadata 요소의 httpGetEnabled 특성 값을 설정합니다. serviceMetadata 요소가 없는 경우 cmdlet은 요소를 추가하고 요소에 대한 httpGetEnabled 특성 값을 설정합니다. |
Clear-ASAppServiceMetadata |
지정한 범위와 연결된 구성 파일에서 serviceMetadata 요소를 제거합니다. |
Get-ASAppServiceMetadata cmdlet의 구문 옵션
// to get service-metadata settings at the root level
Get-ASAppServiceMetadata –root
// Web site level
Get-ASAppServiceMetadata -SiteName <String>
Example:
Get-ASAppServiceMetadata –SiteName “Default Web Site”
// At the level pointed by the virtual path
Get-ASAppServiceMetadata -SiteName <String> -VirtualPath <string>
Examples:
Get-ASAppServiceMetadata –SiteName “Default Web Site” –VirtualPath /SampleApp
Get-ASAppServiceMetadata –SiteName “Default Web Site” –VirtualPath “/SampleApp/SampleService.xamlx”
// At the level pointed by the URI
Get-ASAppServiceMetadata –Uri <Uri>
Examples:
Get-ASAppServiceMetadata –Uri https://localhost
Get-ASAppServiceMetadata –Uri https://localhost/SampleService
Get-ASAppServiceMetadata –Uri https://localhost/SampleService/SampleService.xamlx
// At the application level specified by using the ApplicationObject
Get-ASAppServiceMetadata –ApplicationObject <ApplicationInfo>
Example:
Get-ASApplication -SiteName "Default Web Site" -VirtualPath /SampleApp | Get-ASAppServiceMetadata
// At the service level specified by using the ServiceInfo object
Get-ASAppServiceMetadata –ServiceObject <ServiceInfo>
Example:
Get-ASAppService –SiteName “Default Web Site” –VirtualPath “/SampleApp/SampleService.xamlx” | Get-ASAppServiceMetadata
Set-ASAppServiceMetadata cmdlet의 구문 옵션
// to set service-metadata settings at the root level
Set-ASAppServiceMetadata –root –httpGetEnabled <Boolean>
Example:
Set-ASAppServiceMetadata –root –httpGetEnabled 1
// Web site level
Set-ASAppServiceMetadata -SiteName <String> –httpGetEnabled 1
Example:
Set-ASAppServiceMetadata –SiteName “Default Web Site” –httpGetEnabled 1
// At the level pointed by the virtual path
Set-ASAppServiceMetadata -SiteName <String> -VirtualPath <string> –httpGetEnabled <Boolean>
Examples:
Set-ASAppServiceMetadata –SiteName “Default Web Site” –VirtualPath /SampleApp –httpGetEnabled 1
Set-ASAppServiceMetadata –SiteName “Default Web Site” –VirtualPath “/SampleApp/SampleService.xamlx” –httpGetEnabled 1
// At the level pointed by the URI
Set-ASAppServiceMetadata –Uri <Uri> –httpGetEnabled <Boolean>
Examples:
Set-ASAppServiceMetadata –Uri https://localhost –httpGetEnabled 1
Set-ASAppServiceMetadata –Uri https://localhost/SampleService -httpGetEnabled 1
Set-ASAppServiceMetadata –Uri https://localhost/SampleService/SampleService.xamlx -httpGetEnabled 1
// At the application level specified by using the ApplicationObject
Set-ASAppServiceMetadata –ApplicationObject <ApplicationInfo> –httpGetEnabled <Boolean>
Example:
Get-ASApplication -SiteName "Default Web Site" -VirtualPath /SampleApp | Set-ASAppServiceMetadata –httpGetEnabled 1
// At the service level specified by using the ServiceInfo object
Set-ASAppServiceMetadata –ServiceObject <ServiceInfo> –httpGetEnabled <Boolean>
Example:
Get-ASAppService –SiteName “Default Web Site” –VirtualPath “/SampleApp/SampleService.xamlx” | Set-ASAppServiceMetadata –httpGetEnabled 1
Set-ASAppServiceMetadata cmdlet 관련 매개 변수
매개 변수 | 설명 |
---|---|
httpGetEnabled |
HTTP 프로토콜을 통해 서비스의 메타데이터에 액세스할 수 있는지 여부를 지정합니다. |
Clear-ASAppServiceMetadata cmdlet의 구문 옵션
// to clear service-metadata settings at the root level
Clear-ASAppServiceMetadata –root
// Web site level
Clear-ASAppServiceMetadata -SiteName <String>
Example:
Clear-ASAppServiceMetadata –SiteName “Default Web Site”
// At the level pointed by the virtual path
Clear-ASAppServiceMetadata -SiteName <String> -VirtualPath <string>
Examples:
Clear-ASAppServiceMetadata –SiteName “Default Web Site” –VirtualPath /SampleApp
Clear-ASAppServiceMetadata –SiteName “Default Web Site” –VirtualPath “/SampleApp/SampleService.xamlx”
// At the level pointed by the URI
Clear-ASAppServiceMetadata –Uri <Uri>
Examples:
Clear-ASAppServiceMetadata –Uri https://localhost
Clear-ASAppServiceMetadata –Uri https://localhost/SampleService
Clear-ASAppServiceMetadata –Uri https://localhost/SampleService/SampleService.xamlx
// At the application level specified by using the ApplicationObject
Clear-ASAppServiceMetadata –ApplicationObject <ApplicationInfo>
Example:
Get-ASApplication -SiteName "Default Web Site" -VirtualPath /SampleApp | Clear-ASAppServiceMetadata
// At the service level specified by using the ServiceInfo object
Clear-ASAppServiceMetadata –ServiceObject <ServiceInfo>
Example:
Get-ASAppService –SiteName “Default Web Site” –VirtualPath “/SampleApp/SampleService.xamlx” | Clear-ASAppServiceMetadata
2011-12-05