client.credentials.post_temporary
A method of the Credentials endpoint.
- post_temporary(id: int, *, duration: int = None) Response
Generate a temporary credential for accessing S3
API URL:
POST /credentials/{id}/temporaryimport civis client = civis.APIClient() response = client.credentials.post_temporary(...)
- Parameters:
- idint
The ID of the credential.
- durationint, optional
The number of seconds the temporary credential should be valid. Defaults to 15 minutes. Must not be less than 15 minutes or greater than 36 hours.
- Returns:
civis.Response- access_keystr
The identifier of the credential.
- secret_access_keystr
The secret part of the credential.
- session_tokenstr
The session token identifier.