Get registration
zero_trust.devices.registrations.get(strregistration_id, RegistrationGetParams**kwargs) -> RegistrationGetResponse
GET/accounts/{account_id}/devices/registrations/{registration_id}
Fetches a single WARP registration.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Parameters
Get registration
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
registration = client.zero_trust.devices.registrations.get(
registration_id="registration_id",
account_id="account_id",
)
print(registration.id){
"errors": [
{
"code": 0,
"message": "message"
}
],
"messages": [
{
"code": 0,
"message": "message"
}
],
"result": {
"id": "11ffb86f-3f0c-4306-b4a2-e62f872b166a",
"created_at": "2025-02-14T13:17:00Z",
"device": {
"id": "32aa0404-78f1-49a4-99e0-97f575081356",
"name": "My Device",
"client_version": "1.0.0"
},
"key": "U+QTP50RsWfeLGHF4tlGDnmGeuwtsz46KCHr5OyhWq00Rsdfl45mgnQAuEJ6CO0YrkyTl9FUf5iB0bwYR3g4EEFEHhtu6jFaqfMrBMBSz6itv9HQXkaR9OieKQ==",
"last_seen_at": "2025-02-14T13:17:00Z",
"updated_at": "2025-02-14T13:17:00Z",
"deleted_at": "2025-02-14T13:17:00Z",
"key_type": "secp256r1",
"policy": {
"id": "11ffb86f-3f0c-4306-b4a2-e62f872b166a",
"default": true,
"deleted": true,
"name": "name",
"updated_at": "2025-02-14T13:17:00Z"
},
"revoked_at": "2025-02-14T13:17:00Z",
"tunnel_type": "masque",
"user": {
"id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"email": "user@example.com",
"name": "John Appleseed"
}
},
"success": true
}Returns Examples
{
"errors": [
{
"code": 0,
"message": "message"
}
],
"messages": [
{
"code": 0,
"message": "message"
}
],
"result": {
"id": "11ffb86f-3f0c-4306-b4a2-e62f872b166a",
"created_at": "2025-02-14T13:17:00Z",
"device": {
"id": "32aa0404-78f1-49a4-99e0-97f575081356",
"name": "My Device",
"client_version": "1.0.0"
},
"key": "U+QTP50RsWfeLGHF4tlGDnmGeuwtsz46KCHr5OyhWq00Rsdfl45mgnQAuEJ6CO0YrkyTl9FUf5iB0bwYR3g4EEFEHhtu6jFaqfMrBMBSz6itv9HQXkaR9OieKQ==",
"last_seen_at": "2025-02-14T13:17:00Z",
"updated_at": "2025-02-14T13:17:00Z",
"deleted_at": "2025-02-14T13:17:00Z",
"key_type": "secp256r1",
"policy": {
"id": "11ffb86f-3f0c-4306-b4a2-e62f872b166a",
"default": true,
"deleted": true,
"name": "name",
"updated_at": "2025-02-14T13:17:00Z"
},
"revoked_at": "2025-02-14T13:17:00Z",
"tunnel_type": "masque",
"user": {
"id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"email": "user@example.com",
"name": "John Appleseed"
}
},
"success": true
}