Skip to content
Start here

Routes

List Routes
workers.routes.list(RouteListParams**kwargs) -> SyncSinglePage[RouteListResponse]
GET/zones/{zone_id}/workers/routes
Get Route
workers.routes.get(strroute_id, RouteGetParams**kwargs) -> RouteGetResponse
GET/zones/{zone_id}/workers/routes/{route_id}
Create Route
workers.routes.create(RouteCreateParams**kwargs) -> RouteCreateResponse
POST/zones/{zone_id}/workers/routes
Update Route
workers.routes.update(strroute_id, RouteUpdateParams**kwargs) -> RouteUpdateResponse
PUT/zones/{zone_id}/workers/routes/{route_id}
Delete Route
workers.routes.delete(strroute_id, RouteDeleteParams**kwargs) -> RouteDeleteResponse
DELETE/zones/{zone_id}/workers/routes/{route_id}
ModelsExpand Collapse
class RouteListResponse:
id: str

Identifier.

maxLength32
pattern: str

Pattern to match incoming requests against. Learn more.

script: Optional[str]

Name of the script to run if the route matches.

class RouteGetResponse:
id: str

Identifier.

maxLength32
pattern: str

Pattern to match incoming requests against. Learn more.

script: Optional[str]

Name of the script to run if the route matches.

class RouteCreateResponse:
id: str

Identifier.

maxLength32
pattern: str

Pattern to match incoming requests against. Learn more.

script: Optional[str]

Name of the script to run if the route matches.

class RouteUpdateResponse:
id: str

Identifier.

maxLength32
pattern: str

Pattern to match incoming requests against. Learn more.

script: Optional[str]

Name of the script to run if the route matches.

class RouteDeleteResponse:
id: Optional[str]

Identifier.

maxLength32