Edge rules

Deployment protection: password (HTTP basic auth) and IP allow-list

get/projects/{projectId}/protection

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/protection
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required

Response

Protection settings

projectIdstring uuid required
hostScope'all' | 'all_except_custom_domains' | 'default_and_previews'

all: every domain; all_except_custom_domains / default_and_previews: only the project's default hostnames (custom domains stay open)

updatedAtstring nullable required

ISO-8601 timestamp

Changes

No recorded changes to this operation across all 1 revision of this API.