List
zones.secrets.list(strzone_id, SecretListParams**kwargs) -> SecretListResponse
GET/zones/{zone_id}/secrets
Parameters
zone_id: str
A globally unique opaque identifier
minLength1
entity_id: Optional[str]
The entity to list all secrets for
x_client_request_id: Optional[str]
formatuuid
Returns
List
from keycardai_api import KeycardAPI
client = KeycardAPI()
secrets = client.zones.secrets.list(
zone_id="x",
)
print(secrets)[
{
"id": "x",
"created_at": "2019-12-27T18:11:19.117Z",
"entity_id": "x",
"name": "name",
"type": "token",
"updated_at": "2019-12-27T18:11:19.117Z",
"version": 1,
"zone_id": "x",
"description": "description",
"metadata": {}
}
]Returns Examples
[
{
"id": "x",
"created_at": "2019-12-27T18:11:19.117Z",
"entity_id": "x",
"name": "name",
"type": "token",
"updated_at": "2019-12-27T18:11:19.117Z",
"version": 1,
"zone_id": "x",
"description": "description",
"metadata": {}
}
]