All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
create_pdf_export | POST /api/v1/actions/workspaces/{workspaceId}/export/visual | Create visual - pdf export request |
get_exported_file | GET /api/v1/actions/workspaces/{workspaceId}/export/visual/{exportId} | Retrieve exported files |
get_metadata | GET /api/v1/actions/workspaces/{workspaceId}/export/visual/{exportId}/metadata | Retrieve metadata context |
ExportResponse create_pdf_export(workspace_id, visual_export_request)
Create visual - pdf export request
An visual export job will be created based on the export request and put to queue to be executed. The result of the operation will be an exportResult identifier that will be assembled by the client into a url that can be polled.
import time
import gooddata_api_client
from gooddata_api_client.api import visual_export_api
from gooddata_api_client.model.export_response import ExportResponse
from gooddata_api_client.model.visual_export_request import VisualExportRequest
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gooddata_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = visual_export_api.VisualExportApi(api_client)
workspace_id = "workspaceId_example" # str |
visual_export_request = VisualExportRequest(
dashboard_id="761cd28b-3f57-4ac9-bbdc-1c552cc0d1d0",
file_name="filename",
metadata={},
) # VisualExportRequest |
# example passing only required values which don't have defaults set
try:
# Create visual - pdf export request
api_response = api_instance.create_pdf_export(workspace_id, visual_export_request)
pprint(api_response)
except gooddata_api_client.ApiException as e:
print("Exception when calling VisualExportApi->create_pdf_export: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | str | ||
visual_export_request | VisualExportRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Visual export request created successfully. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_exported_file(workspace_id, export_id)
Retrieve exported files
Returns 202 until original POST export request is not processed.Returns 200 with exported data once the export is done.
import time
import gooddata_api_client
from gooddata_api_client.api import visual_export_api
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gooddata_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = visual_export_api.VisualExportApi(api_client)
workspace_id = "workspaceId_example" # str |
export_id = "exportId_example" # str |
# example passing only required values which don't have defaults set
try:
# Retrieve exported files
api_instance.get_exported_file(workspace_id, export_id)
except gooddata_api_client.ApiException as e:
print("Exception when calling VisualExportApi->get_exported_file: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | str | ||
export_id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/pdf
Status code | Description | Response headers |
---|---|---|
200 | Binary export result. | * Content-Disposition - |
202 | Request is accepted, provided exportId exists, but export is not yet ready. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_metadata(workspace_id, export_id)
Retrieve metadata context
This endpoint serves as a cache for user-defined metadata of the export for the front end UI to retrieve it, if one was created using the POST ../export/visual endpoint. The metadata structure is not verified.
import time
import gooddata_api_client
from gooddata_api_client.api import visual_export_api
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gooddata_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = visual_export_api.VisualExportApi(api_client)
workspace_id = "workspaceId_example" # str |
export_id = "exportId_example" # str |
# example passing only required values which don't have defaults set
try:
# Retrieve metadata context
api_instance.get_metadata(workspace_id, export_id)
except gooddata_api_client.ApiException as e:
print("Exception when calling VisualExportApi->get_metadata: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | str | ||
export_id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Json metadata representation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]