Retrieve the Publishing Profile XML for a Site
Applies To: Windows Azure Pack
Retrieves the publishing profile XML for a specific site.
Request
Replace {ServiceMgmt} with your Service Management API endpoint address. Replace {Port} with either 30005 for the tenant API or 30006 for the Public Tenant API. Replace {SUBSCRIPTIONID} with the required subscription identifier. Replace {WEBSPACENAME}, and {NAME} with the corresponding values for your website.
Method |
Request URI |
HTTP version |
---|---|---|
GET |
https://<ServiceMgmt>:<Port>/{SUBSCRIPTIONID}/services/webspaces/{WEBSPACENAME}/sites/{NAME}/publishxml |
HTTP/1.1 |
URI Parameters
None.
Request Headers
The following table describes required and optional request headers.
Request header |
Description |
---|---|
x-ms-version |
Required. Specifies the version of the operation to use for this request. This header should be set to 2012-10-10 or the current version. |
accept: application/json |
Optional. Use this header to receive the response in JSON format. |
Request Body
None.
Response
The response includes an HTTP status code, a set of response headers, and a response body.
Status Code
A successful operation returns status code 200 (OK).
For information about status codes, see Error Codes (Web Sites Service REST API).
Response Headers
The response for this operation includes the following headers. The response can also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.
Response header |
Description |
---|---|
x-ms-request-id |
A value that uniquely identifies the request that is made against the management service. |
Response Body
The response body is the publishing profile XML for the site.