Skip to content
Start here

DOH

Get your Zero Trust organization DoH settings
zero_trust.organizations.doh.get(DOHGetParams**kwargs) -> DOHGetResponse
GET/accounts/{account_id}/access/organizations/doh
Update your Zero Trust organization DoH settings
zero_trust.organizations.doh.update(DOHUpdateParams**kwargs) -> DOHUpdateResponse
PUT/accounts/{account_id}/access/organizations/doh
ModelsExpand Collapse
class DOHGetResponse:
id: Optional[str]

The ID of the service token.

maxLength36
client_id: Optional[str]

The Client ID for the service token. Access will check for this value in the CF-Access-Client-ID request header.

doh_jwt_duration: Optional[str]

The duration the DoH JWT is valid for. Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. Note that the maximum duration for this setting is the same as the key rotation period on the account.

duration: Optional[str]

The duration for how long the service token will be valid. Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h).

expires_at: Optional[datetime]
formatdate-time
name: Optional[str]

The name of the service token.

class DOHUpdateResponse:
id: Optional[str]

The ID of the service token.

maxLength36
client_id: Optional[str]

The Client ID for the service token. Access will check for this value in the CF-Access-Client-ID request header.

doh_jwt_duration: Optional[str]

The duration the DoH JWT is valid for. Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. Note that the maximum duration for this setting is the same as the key rotation period on the account. Default expiration is 24h

duration: Optional[str]

The duration for how long the service token will be valid. Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h).

expires_at: Optional[datetime]
formatdate-time
name: Optional[str]

The name of the service token.