Long Running Operation
Warning
The functions are not fully tested yet. Use with caution. Please report any issues to the GitHub repository.
long_running_operation_get_state
long_running_operation_get_state(operation_id: str, preview: bool = True) -> requests.Response
Get the state of the long running operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
operation_id
|
str
|
The ID of the long running operation. |
required |
preview
|
bool
|
Whether to preview the request. You will be asked to confirm the request before it is executed. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
Response
|
The response from the request. |
long_running_operation_get_result
long_running_operation_get_result(operation_id: str, preview: bool = True) -> requests.Response
Get the result of the long running operation. Only available when the operation status is Succeeded
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
operation_id
|
str
|
The ID of the long running operation. |
required |
preview
|
bool
|
Whether to preview the request. You will be asked to confirm the request before it is executed. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
Response
|
The response from the request. |