## Get domains `pages.projects.domains.list(strproject_name, DomainListParams**kwargs) -> SyncSinglePage[DomainListResponse]` **get** `/accounts/{account_id}/pages/projects/{project_name}/domains` Fetch a list of all domains associated with a Pages project. ### Parameters - `account_id: str` Identifier. - `project_name: str` Name of the project. ### Returns - `class DomainListResponse: …` - `id: str` - `certificate_authority: Literal["google", "lets_encrypt"]` - `"google"` - `"lets_encrypt"` - `created_on: str` - `domain_id: str` - `name: str` The domain name. - `status: Literal["initializing", "pending", "active", 3 more]` - `"initializing"` - `"pending"` - `"active"` - `"deactivated"` - `"blocked"` - `"error"` - `validation_data: ValidationData` - `method: Literal["http", "txt"]` - `"http"` - `"txt"` - `status: Literal["initializing", "pending", "active", 2 more]` - `"initializing"` - `"pending"` - `"active"` - `"deactivated"` - `"error"` - `error_message: Optional[str]` - `txt_name: Optional[str]` - `txt_value: Optional[str]` - `verification_data: VerificationData` - `status: Literal["pending", "active", "deactivated", 2 more]` - `"pending"` - `"active"` - `"deactivated"` - `"blocked"` - `"error"` - `error_message: Optional[str]` - `zone_tag: str` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) page = client.pages.projects.domains.list( project_name="this-is-my-project-01", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) page = page.result[0] print(page.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "id": "id", "certificate_authority": "lets_encrypt", "created_on": "created_on", "domain_id": "domain_id", "name": "this-is-my-domain-01.com", "status": "initializing", "validation_data": { "method": "http", "status": "initializing", "error_message": "error_message", "txt_name": "txt_name", "txt_value": "txt_value" }, "verification_data": { "status": "pending", "error_message": "error_message" }, "zone_tag": "zone_tag" } ], "success": true, "result_info": { "count": 1, "page": 1, "per_page": 20, "total_count": 2000, "total_pages": 100 } } ```