Get Website Aliases (WSM 4.5.7.0+ only)

Obtains aliases for a given website.

URL

/api/v1/website/[website_id]/aliases

HTTP Method

GET

URL Parameters

Parameter

Required

Type

Description

website_id

true

integer

Specifies the website ID to return aliases for.

Response Parameters

Returns an array of strings containing aliases. An empty array will be returned if no aliases exist.

Example: Get Website Aliases

Request

GET

/api/v1/website/[website_id]/aliases

cURL

curl -kv \
-u api_ninja:ninja_password \
-X GET \
https://172.31.1.172:4849/api/v1/website/1/aliases

Response

[
"www.example.com",
"another.example.com"
]