## Get a relay `moq.relays.get(strrelay_id, RelayGetParams**kwargs) -> RelayGetResponse` **get** `/accounts/{account_id}/moq/relays/{relay_id}` Retrieves a single MoQ relay including config and status. Tokens are NOT included. ### Parameters - `account_id: str` Cloudflare account identifier. - `relay_id: str` ### Returns - `class RelayGetResponse: …` Full relay details (no tokens). - `config: Config` origin_fallback and lingering_subscribe are mutually exclusive. - `lingering_subscribe: Optional[ConfigLingeringSubscribe]` - `enabled: Optional[bool]` - `max_timeout_ms: Optional[int]` Relay-level ceiling on lingering subscribe timeout (ms). Default 30000. - `origin_fallback: Optional[ConfigOriginFallback]` - `enabled: Optional[bool]` - `origins: Optional[List[ConfigOriginFallbackOrigin]]` Ordered list of upstream origin relays. Each entry is an object (not a bare string) so per-origin configuration can be added in the future without another breaking change. - `url: Optional[str]` Upstream origin relay URL. - `created: datetime` - `modified: datetime` - `name: str` - `uid: str` - `status: Optional[Literal["connected"]]` "connected" when active, omitted otherwise. - `"connected"` ### 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 ) relay = client.moq.relays.get( relay_id="a1b2c3d4e5f67890a1b2c3d4e5f67890", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(relay.uid) ``` #### Response ```json { "errors": [ { "code": 0, "message": "message" } ], "messages": [ { "code": 0, "message": "message" } ], "success": true, "result": { "config": { "lingering_subscribe": { "enabled": true, "max_timeout_ms": 0 }, "origin_fallback": { "enabled": true, "origins": [ { "url": "url" } ] } }, "created": "2019-12-27T18:11:19.117Z", "modified": "2019-12-27T18:11:19.117Z", "name": "Production Live Stream", "uid": "a1b2c3d4e5f67890a1b2c3d4e5f67890", "status": "connected" } } ```