All URIs are relative to https://localhost/api/v45
Method | HTTP request | Description |
---|---|---|
execute | POST /batch | Executes a batch of API requests in one database transaction. |
ApiBatchResponse execute(body=body)
Executes a batch of API requests in one database transaction.
Executes a batch of API requests in one database transaction. If any request fails, execution halts and the transaction is rolled back.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.BatchResourceApi(cm_client.ApiClient(configuration))
body = cm_client.ApiBatchRequest() # ApiBatchRequest | Batch of request to execute. (optional)
try:
# Executes a batch of API requests in one database transaction.
api_response = api_instance.execute(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling BatchResourceApi->execute: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ApiBatchRequest | Batch of request to execute. | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]