Retrieve
zones.secrets.retrieve(strid, SecretRetrieveParams**kwargs) -> SecretRetrieveResponse
GET/zones/{zone_id}/secrets/{id}
Parameters
zone_id: str
A globally unique opaque identifier
minLength1
id: str
x_client_request_id: Optional[str]
formatuuid
Returns
Retrieve
from keycardai_api import KeycardAPI
client = KeycardAPI()
secret = client.zones.secrets.retrieve(
id="id",
zone_id="x",
)
print(secret.id){
"id": "x",
"created_at": "2019-12-27T18:11:19.117Z",
"data": {
"token": "token",
"type": "token"
},
"entity_id": "x",
"name": "name",
"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",
"data": {
"token": "token",
"type": "token"
},
"entity_id": "x",
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z",
"version": 1,
"zone_id": "x",
"description": "description",
"metadata": {}
}