post
Send a POST request to the provided Rubrik Mosaic API endpoint.
def post(api_endpoint, config, timeout=15)Arguments
Name
Type
Description
Choices
api_endpoint
str
The endpoint of the Rubrik Mosaic API to call (ex. /listjobs).
Keyword Arguments
Name
Type
Description
Choices
Default
timeout
int
The number of seconds to wait to establish a connection the Rubrik Mosaic cluster before returning a timeout error.
15
Returns
Type
Return Value
dict
The response body of the API call.
Example
import rubrik_mosaic
mosaic = rubrik_mosaic.Connect()
mosaic.post('/retrieve', '{}')Last updated
Was this helpful?