Download OpenAPI specification:Download
Welcome to the CloudQuery Platform API documentation! This API can be used to interact with the CloudQuery platform. As a user, the API allows you to search the CloudQuery asset inventory, run SQL queries against the data warehouse, save and load searches, and much more. As an administrator, it allows you to manage your teams, syncs, and other objects.
The API is secured using bearer tokens. To get started, you can generate an API key for your Platform deployment from your platform dashboard. For a step-by-step guide, see: https://docs.cloudquery.io/docs/deployment/generate-api-key. The base URL for the API depends on where your CloudQuery Platform is hosted. If running locally, this is usually http://localhost:3000/api. In a production deployment it should be an HTTPS URL. For purposes of illustration, we will assume the platform instance is available at https://cloudquery.mycompany.com. In this case, the base API endpoint will be https://cloudquery.mycompany.com/api.
To test your connection to the API, we can use the /plugins
endpoint. For example:
curl -v -H "Authorization: Bearer $CLOUDQUERY_API_KEY" \ https://cloudquery.mycompany.com/api/plugins
Get the current authenticated user from the OAuth token
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "event_identifiers": { },
- "group_identifier": "string",
- "registered_team_name": "string",
- "registered_team_internal": true
}
Update attributes for the current authenticated user from the OAuth token
name | string (PlatformUserName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}][a-zA-Z\p{L} \-']*$ The unique name for the user. |
tracking_opt_in | boolean Whether to opt in or out of anonymous user tracking |
{- "name": "Sarah O'Connor",
- "tracking_opt_in": true
}
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string"
}
Start a session using ID token
id_token required | string |
{- "id_token": "string"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List of the current user's unaccepted invitations
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "team_name": "cloudquery",
- "role": "admin",
- "created_at": "2017-07-14T16:53:42Z",
- "token": "b5507016-7da2-4777-a161-1e8042a6a377"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get memberships that the user has accepted.
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "roles": [
- "admin:write"
], - "team": {
- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "display_name": "CloudQuery",
- "plan": "free",
- "is_trial_active": false,
- "internal": false
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get the current authenticated local user
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true,
- "teams": [
- {
- "role": "admin:read",
- "roles": [
- "admin:read"
], - "team_name": "cloudquery",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Authenticate a user with password
email required | string |
password required | string |
{- "email": "string",
- "password": "string"
}
{- "id_token": "string"
}
Reset user password with token
email required | string |
reset_token required | string |
new_password required | string |
{- "email": "string",
- "reset_token": "string",
- "new_password": "string"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Change user password
email required | string |
old_password required | string |
new_password required | string |
{- "email": "string",
- "old_password": "string",
- "new_password": "string"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List all users
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Add new user
email required | string |
name required | string |
is_admin | boolean Deprecated DEPRECATED. Use roles instead |
password | string |
roles required | Array of strings >= 0 items Items Enum: "admin:write" "admin:read" Global roles for the user |
{- "email": "string",
- "name": "string",
- "is_admin": true,
- "password": "string",
- "roles": [
- "admin:write"
]
}
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true
}
Get user details
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true,
- "teams": [
- {
- "role": "admin:read",
- "roles": [
- "admin:read"
], - "team_name": "cloudquery",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Update user
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
string | |
name | string |
password | string |
enabled | boolean |
is_admin | boolean Deprecated DEPRECATED. Use roles instead |
roles | Array of strings Items Enum: "admin:write" "admin:read" Global roles for the user |
{- "email": "string",
- "name": "string",
- "password": "string",
- "enabled": true,
- "is_admin": true,
- "roles": [
- "admin:write"
]
}
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true
}
Delete user
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Create password reset token for user
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
{- "reset_token": "string"
}
List all teams
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create a team owned by the current user.
name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ The unique name for the team. |
display_name required | string [ 1 .. 255 ] characters The team's display name |
{- "name": "cloudquery",
- "display_name": "string"
}
{- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
Get a team by name
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
{- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
Update team attributes
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
display_name | string The team's display name |
{- "display_name": "string"
}
{- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
Get URLs to upload images for a given team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
required | Array of objects (Create Team Image Request) non-empty |
{- "images": [
- {
- "name": "string",
- "checksum": "stringstringstringstringstringstringstri",
- "content_type": "image/png"
}
]
}
{- "items": [
- {
- "name": "string",
- "checksum": "string",
- "url": "string",
- "upload_url": "string",
- "required_headers": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get memberships to the team.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "roles": [
- "admin:write"
], - "user": {
- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z"
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Remove a user from the team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
email required | string |
{- "email": "string"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Remove a user from the team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
email required |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List of open invitations to the team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "team_name": "cloudquery",
- "role": "admin",
- "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Delete an invitation to the team, preventing the user becoming a team member
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
email required | string <email> |
{- "email": "[email protected]"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Accept an invitation to the team, creating a user membership
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
token required | string <uuid> |
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377"
}
{- "role": "admin:read",
- "roles": [
- "admin:read"
], - "team": {
- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
}
List all users in the current team.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List all team API Keys
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "name": "cli-api-key",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "key": "1234567890abcdef1234567890abcdef",
- "created_at": "2017-07-14T16:53:42Z",
- "expires_at": "2017-07-14T16:53:42Z",
- "last_access_at": "2017-07-14T16:53:42Z",
- "expired": false,
- "roles": [
- {
- "team": "cloudquery",
- "role": "admin:write"
}
]
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}, - "allowed_roles": [
- {
- "team": "cloudquery",
- "role": "admin:write"
}
]
}
Create new team API Key.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
name required | string (PlatformAPIKeyName) [ 1 .. 255 ] characters ^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$ Name of the API key |
expires_at required | string <date-time> |
Array of objects (PlatformAPIKeyTeamRole) |
{- "name": "cli-api-key",
- "expires_at": "2019-08-24T14:15:22Z",
- "roles": [
- {
- "team": "cloudquery",
- "role": "admin:write"
}
]
}
{- "name": "cli-api-key",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "key": "1234567890abcdef1234567890abcdef",
- "created_at": "2017-07-14T16:53:42Z",
- "expires_at": "2017-07-14T16:53:42Z",
- "last_access_at": "2017-07-14T16:53:42Z",
- "expired": false,
- "roles": [
- {
- "team": "cloudquery",
- "role": "admin:write"
}
]
}
Delete API Key. This will remove any future access by this API Key.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
apikey_id required | string <uuid> (PlatformAPIKeyID) Example: 12345678-1234-1234-1234-1234567890ab ID of the API key |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Create an interactive onboarding for AWS
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "issuer_url": "string",
- "audience": "string",
- "subject": "string",
- "notify_path": "string",
- "template_url": "string",
- "notify_token": "string"
}
Query an interactive onboarding for AWS
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
onboarding_id required | string <uuid> (PlatformOnboardingID) Example: 12345678-1234-1234-1234-1234567890ab ID of the cloud provider onboarding session |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "stage": "string",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "issuer_url": "string",
- "audience": "string",
- "subject": "string",
- "management_role_arn": "string",
- "failure_reason": "string"
}
Update onboarding state
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
onboarding_id required | string <uuid> (PlatformOnboardingID) Example: 12345678-1234-1234-1234-1234567890ab ID of the cloud provider onboarding session |
status required | string Enum: "deployed" "failed" "started" |
management_role_arn | string ARN of the role to use for account management (required if status is |
reason | string Reason for deployment failure (required if status is |
{- "status": "deployed",
- "management_role_arn": "string",
- "reason": "string"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Query AWS accounts under organization root
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
onboarding_id required | string <uuid> (PlatformOnboardingID) Example: 12345678-1234-1234-1234-1234567890ab ID of the cloud provider onboarding session |
{- "id": "string",
- "arn": "string",
- "type": "OU",
- "name": "string",
- "children": [
- { }
]
}
Query AWS accounts under a specifc Organizational Unit
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
onboarding_id required | string <uuid> (PlatformOnboardingID) Example: 12345678-1234-1234-1234-1234567890ab ID of the cloud provider onboarding session |
aws_orgunit_id required | string (PlatformOrganizationalUnitID) ^ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}$ Example: ou-7f3s-j8zfa1ao ID of an organizational unit in AWS |
{- "id": "string",
- "arn": "string",
- "type": "OU",
- "name": "string",
- "children": [
- { }
]
}
Get a summary of usage for the specified time range.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
metrics | Array of strings Default: "paid_rows" Items Enum: "paid_rows" "cloud_vcpu_seconds" "cloud_vram_byte_seconds" "network_egress_bytes" A list of metrics to include in the response. Each metric must be one of the predefined valid values. If not provided, only |
start | string <date-time> A valid ISO-8601-formatted date and time, indicating the inclusive start of the query time range. Defaults to 30 days ago. |
end | string <date-time> A valid ISO-8601-formatted date and time, indicating the exclusive end of the query time range. Defaults to the current time. |
aggregation_period | string Default: "day" Enum: "day" "month" An aggregation period to sum data over. In other words, data will be returned at this granularity. Currently only supports day and month. |
{- "groups": [
- {
- "name": "plugin",
- "value": "cloudquery/source/aws"
}, - {
- "name": "plugin",
- "value": "cloudquery/source/gcp"
}
], - "values": [
- {
- "timestamp": "2021-01-01T00:00:00Z",
- "paid_rows": [
- 100,
- 200
]
}, - {
- "timestamp": "2021-01-02T00:00:00Z",
- "paid_rows": [
- 150,
- 300
]
}
], - "metadata": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "aggregation_period": "day",
- "metrics": [
- "paid_rows"
]
}
}
Get a grouped summary of usage for the specified time range.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
group_by required | string Enum: "price_category" "plugin" "sync_id" Group by usage summary. |
metrics | Array of strings Default: "paid_rows" Items Enum: "paid_rows" "cloud_vcpu_seconds" "cloud_vram_byte_seconds" "network_egress_bytes" A list of metrics to include in the response. Each metric must be one of the predefined valid values. If not provided, only |
start | string <date-time> A valid ISO-8601-formatted date and time, indicating the inclusive start of the query time range. Defaults to 30 days ago. |
end | string <date-time> A valid ISO-8601-formatted date and time, indicating the exclusive end of the query time range. Defaults to the current time. |
aggregation_period | string Default: "day" Enum: "day" "month" An aggregation period to sum data over. In other words, data will be returned at this granularity. Currently only supports day and month. |
{- "groups": [
- {
- "name": "plugin",
- "value": "cloudquery/source/aws"
}, - {
- "name": "plugin",
- "value": "cloudquery/source/gcp"
}
], - "values": [
- {
- "timestamp": "2021-01-01T00:00:00Z",
- "paid_rows": [
- 100,
- 200
]
}, - {
- "timestamp": "2021-01-02T00:00:00Z",
- "paid_rows": [
- 150,
- 300
]
}
], - "metadata": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "aggregation_period": "day",
- "metrics": [
- "paid_rows"
]
}
}
List all teams
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get a team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
{- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
Delete a team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List team members
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "role": "admin:read",
- "roles": [
- "admin:read"
], - "user": {
- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string"
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Add team member
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
user_id required | string <uuid> ID of the User |
roles required | Array of strings Items Enum: "admin:write" "admin:read" "general:read" "general:write" |
{- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "roles": [
- "admin:write"
]
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Remove team member
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
user_id required | string <uuid> ID of the User |
{- "user_id": "12345678-1234-1234-1234-1234567890ab"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List all plugins
sort_by | string Enum: "created_at" "updated_at" "name" "downloads" The field to sort by |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
include_release_stages | Array of strings (PlatformPluginReleaseStage) Items Enum: "coming-soon" "preview" "ga" "deprecated" Include these release stages in the response |
exclude_release_stages | Array of strings (PlatformPluginReleaseStage) Default: "deprecated" Items Enum: "coming-soon" "preview" "ga" "deprecated" Exclude these release stages from the response |
{- "items": [
- {
- "name": "aws",
- "kind": "source",
- "team_name": "cloudquery",
- "display_name": "AWS Source Plugin",
- "category": "cloud-infrastructure",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "official": true,
- "short_description": "Sync data from AWS to any destination",
- "tier": "paid",
- "usd_per_row": "0.00123",
- "free_rows_per_month": 10000,
- "release_stage": "preview"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create a plugin owned by the specified team. User must be part of that team.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ The unique name for the team. |
kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" The kind of plugin, ie. source or destination. |
name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ The unique name for the plugin. |
category required | string (PlatformPluginCategory) Enum: "cloud-infrastructure" "databases" "sales-marketing" "engineering-analytics" "marketing-analytics" "shipment-tracking" "product-analytics" "cloud-finops" "project-management" "fleet-management" "security" "data-warehouses" "human-resources" "finance" "customer-support" "other" Supported categories for plugins |
price_category | string (PlatformPluginPriceCategory) Enum: "api" "database" "free" Supported price categories for billing |
tier | string (PlatformPluginTier) Deprecated Enum: "free" "paid" "open-core" This field is deprecated, refer to
|
display_name required | string [ 1 .. 50 ] characters The plugin's display name, as shown in the CloudQuery Hub. |
short_description required | string [ 1 .. 512 ] characters Short description of the plugin. This will be shown in the CloudQuery Hub. |
homepage | string |
public required | boolean Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the team. |
repository | string |
release_stage | string (PlatformPluginReleaseStageCreate) Enum: "coming-soon" "preview" "ga" Official plugins can go through three release stages: Coming Soon, Preview, and GA. The Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready. Both Preview and GA plugins follow semantic versioning. The main differences between the two stages are: Preview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage. |
logo | string <url> URL to the plugin's logo. This will be shown in the CloudQuery Hub. |
usd_per_row | string^\d+(?:\.\d{1,10})?$ Deprecated Deprecated. Use |
free_rows_per_month | integer <int64> Deprecated Deprecated. Use |
{- "team_name": "cloudquery",
- "kind": "source",
- "name": "aws-source",
- "category": "cloud-infrastructure",
- "price_category": "api",
- "tier": "free",
- "display_name": "AWS Source Plugin",
- "short_description": "Sync data from AWS to any destination",
- "public": true,
- "release_stage": "coming-soon",
- "usd_per_row": "0.00001",
- "free_rows_per_month": 10000
}
{- "team_name": "cloudquery",
- "name": "aws-source",
- "kind": "source",
- "category": "cloud-infrastructure",
- "price_category": "api",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "display_name": "AWS Source Plugin",
- "official": true,
- "release_stage": "coming-soon",
- "short_description": "Sync data from AWS to any destination",
- "tier": "free",
- "public": true,
- "usd_per_row": "0.0001",
- "free_rows_per_month": 1000,
- "minimum_cloud_version": "v1.2.3"
}
Get details about a given plugin.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
{- "team_name": "cloudquery",
- "name": "aws-source",
- "kind": "source",
- "category": "cloud-infrastructure",
- "price_category": "api",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "display_name": "AWS Source Plugin",
- "official": true,
- "release_stage": "coming-soon",
- "short_description": "Sync data from AWS to any destination",
- "tier": "free",
- "public": true,
- "usd_per_row": "0.0001",
- "free_rows_per_month": 1000,
- "minimum_cloud_version": "v1.2.3",
- "latest_version": "string",
- "pinned_version": {
- "name": "string",
- "range": "string",
- "initialized": false,
- "mirroring": false
}
}
Update a plugin
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
category | string (PlatformPluginCategory) Enum: "cloud-infrastructure" "databases" "sales-marketing" "engineering-analytics" "marketing-analytics" "shipment-tracking" "product-analytics" "cloud-finops" "project-management" "fleet-management" "security" "data-warehouses" "human-resources" "finance" "customer-support" "other" Supported categories for plugins |
price_category | string (PlatformPluginPriceCategory) Enum: "api" "database" "free" Supported price categories for billing |
tier | string (PlatformPluginTier) Deprecated Enum: "free" "paid" "open-core" This field is deprecated, refer to
|
display_name | string [ 1 .. 50 ] characters The plugin's display name, as shown in the CloudQuery Hub. |
short_description | string [ 1 .. 512 ] characters Short description of the plugin. This will be shown in the CloudQuery Hub. |
homepage | string |
repository | string |
logo | string <url> URL to the plugin's logo. This will be shown in the CloudQuery Hub. |
public | boolean If plugin is not public, it won't be visible to other teams in the CloudQuery Hub. |
release_stage | string (PlatformPluginReleaseStageUpdate) Enum: "coming-soon" "preview" "ga" "deprecated" Official plugins can go through three release stages: Coming Soon, Preview, and GA. The Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready. Both Preview and GA plugins follow semantic versioning. The main differences between the two stages are: Preview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage. |
usd_per_row | string^\d+(?:\.\d{1,10})?$ Deprecated Deprecated. Update |
free_rows_per_month | integer <int64> Deprecated Deprecated. Update |
{- "category": "cloud-infrastructure",
- "price_category": "api",
- "tier": "free",
- "display_name": "AWS Source Plugin",
- "short_description": "Sync data from AWS to any destination",
- "public": true,
- "release_stage": "coming-soon",
- "usd_per_row": "0.0001",
- "free_rows_per_month": 1000
}
{- "team_name": "cloudquery",
- "name": "aws-source",
- "kind": "source",
- "category": "cloud-infrastructure",
- "price_category": "api",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "display_name": "AWS Source Plugin",
- "official": true,
- "release_stage": "coming-soon",
- "short_description": "Sync data from AWS to any destination",
- "tier": "free",
- "public": true,
- "usd_per_row": "0.0001",
- "free_rows_per_month": 1000,
- "minimum_cloud_version": "v1.2.3"
}
Delete plugin by team and plugin name
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List all versions for a given plugin
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
sort_by | string Value: "created_at" The field to sort by |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
include_drafts | boolean Whether to include draft versions |
include_prereleases | boolean Whether to include prerelease versions |
version_filter | string (PlatformVersionFilter) ^[^~]?v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(... A version filter in semantic version format with prefix ranges. |
{- "items": [
- {
- "created_at": "2017-07-14T16:53:42Z",
- "published_at": "2017-07-14T16:53:42Z",
- "name": "string",
- "message": "- Added support for AWS S3 - Added support for AWS EC2",
- "draft": true,
- "retracted": true,
- "protocols": [
- 3
], - "supported_targets": [
- "linux_arm64",
- "darwin_amd64",
- "windows_amd64"
], - "checksums": [
- "string"
], - "package_type": "native"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get details about a given plugin version.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
{- "created_at": "2017-07-14T16:53:42Z",
- "published_at": "2017-07-14T16:53:42Z",
- "name": "string",
- "message": "- Added support for AWS S3 - Added support for AWS EC2",
- "draft": true,
- "retracted": true,
- "protocols": [
- 3
], - "supported_targets": [
- "linux_arm64",
- "darwin_amd64",
- "windows_amd64"
], - "checksums": [
- "string"
], - "package_type": "native",
- "spec_json_schema": "string",
- "connector_required": true,
- "connector_types": [
- "string"
], - "example_config": "string",
- "ui_base_url": "string"
}
Create a new plugin version, or update a draft version
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
message required | string [ 1 .. 30000 ] characters A message describing what's new or changed in this version. This message will be displayed to users in the plugin's changelog. Supports limited markdown syntax. |
protocols required | Array of integers (PlatformPluginProtocols) Items Value: 3 The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins). |
supported_targets required | Array of strings The targets supported by this plugin version, formatted as |
checksums required | Array of strings List of SHA-256 checksums for this plugin version, one for each supported target. |
package_type required | string (PlatformPluginPackageType) Enum: "native" "docker" The package type of the plugin assets |
spec_json_schema | string (PlatformPluginSpecJSONSchema) The specification of the plugin. This is a JSON schema that describes the configuration of the plugin. |
{- "message": "string",
- "protocols": [
- 3
], - "supported_targets": [
- "linux_arm64",
- "darwin_amd64",
- "windows_amd64"
], - "checksums": [
- "string"
], - "package_type": "native",
- "spec_json_schema": "string"
}
{- "created_at": "2017-07-14T16:53:42Z",
- "published_at": "2017-07-14T16:53:42Z",
- "name": "string",
- "message": "- Added support for AWS S3 - Added support for AWS EC2",
- "draft": true,
- "retracted": true,
- "protocols": [
- 3
], - "supported_targets": [
- "linux_arm64",
- "darwin_amd64",
- "windows_amd64"
], - "checksums": [
- "string"
], - "package_type": "native",
- "spec_json_schema": "string",
- "connector_required": true,
- "connector_types": [
- "string"
]
}
Update a given plugin version
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
message | string Description of what's new or changed in this version (supports markdown) |
draft | boolean If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version. Once draft is set to false, only certain fields can be updated. |
retracted | boolean If a plugin version is retracted, assets will still be available for download, but the version will be marked as retracted to discourage use. |
protocols | Array of integers (PlatformPluginProtocols) Items Value: 3 The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins). |
supported_targets | Array of strings |
checksums | Array of strings The SHA-256 checksums of the plugin binaries, one per supported target. |
package_type | string The package type of the plugin binaries |
spec_json_schema | string (PlatformPluginSpecJSONSchema) The specification of the plugin. This is a JSON schema that describes the configuration of the plugin. |
{- "message": "- Added support for *AWS S3* - Added support for *AWS EC2*",
- "draft": true,
- "retracted": true,
- "protocols": [
- 3
], - "supported_targets": [
- "string"
], - "checksums": [
- "string"
], - "package_type": "string",
- "spec_json_schema": "string"
}
{- "created_at": "2017-07-14T16:53:42Z",
- "published_at": "2017-07-14T16:53:42Z",
- "name": "string",
- "message": "- Added support for AWS S3 - Added support for AWS EC2",
- "draft": true,
- "retracted": true,
- "protocols": [
- 3
], - "supported_targets": [
- "linux_arm64",
- "darwin_amd64",
- "windows_amd64"
], - "checksums": [
- "string"
], - "package_type": "native",
- "spec_json_schema": "string",
- "connector_required": true,
- "connector_types": [
- "string"
]
}
List all documentation pages for a given plugin version
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "name": "overview",
- "content": "# Getting Started\n\nThis is the getting started page."
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create or update one or more plugin version docs pages
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
required | Array of objects (CloudQuery Plugin Documentation Page) |
{- "pages": [
- {
- "name": "overview",
- "content": "# Getting Started\n\nThis is the getting started page."
}
]
}
{- "names": [
- "overview"
]
}
Replace (override) multiple plugin version docs pages
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
required | Array of objects (CloudQuery Plugin Documentation Page) |
{- "pages": [
- {
- "name": "overview",
- "content": "# Getting Started\n\nThis is the getting started page."
}
]
}
{- "names": [
- "overview"
]
}
Delete one or more plugin version docs pages.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
names required | Array of strings (PlatformPluginDocsPageName) [^[\w,\s-]+$] |
{- "names": [
- "overview"
]
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List tables for a given plugin version. This only applies to source plugins.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "description": "AWS S3 Buckets",
- "is_incremental": true,
- "name": "aws_ec2_instances",
- "parent": "nil",
- "relations": [
- "aws_s3_bucket_cors_rules"
], - "title": "AWS S3 Buckets",
- "is_paid": true
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create or update one or more plugin version tables. This only applies to source plugins, and can only be done if the plugin version is in draft.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
required | Array of objects (CloudQuery Plugin Table) |
{- "tables": [
- {
- "description": "AWS S3 Buckets",
- "is_incremental": true,
- "name": "aws_ec2_instances",
- "parent": "nil",
- "relations": [
- "aws_s3_bucket_cors_rules"
], - "permissions_needed": [
- "storage.buckets.list"
], - "title": "AWS S3 Buckets",
- "is_paid": true,
- "columns": [
- {
- "description": "string",
- "incremental_key": true,
- "name": "string",
- "not_null": true,
- "primary_key": true,
- "type": "string",
- "type_schema": "string",
- "unique": true
}
]
}
]
}
{- "names": [
- "aws_ec2_instances"
]
}
Delete one or more plugin version tables.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
names required | Array of strings (PlatformPluginTableName) [^[a-z](_?[a-z0-9]+)+$] |
{- "names": [
- "aws_ec2_instances"
]
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Get schema for a given table and plugin version. This only applies to source plugins.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
table_name required | string |
{- "columns": [
- {
- "description": "string",
- "incremental_key": true,
- "name": "string",
- "not_null": true,
- "primary_key": true,
- "type": "string",
- "type_schema": "string",
- "unique": true
}
], - "description": "string",
- "is_incremental": true,
- "name": "string",
- "parent": "string",
- "relations": [
- "string"
], - "title": "string",
- "is_paid": true,
- "permissions_needed": [
- "storage.buckets.list"
]
}
Download an asset for a given plugin version and target
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
target_name required | string |
Accept | string |
{- "checksum": "string",
}
Get a URL to upload an asset for a given plugin version and target
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
target_name required | string |
{- "url": "string"
}
Get URLs to upload UI assets for a given plugin version
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
ui_id | string <uuid> |
required | Array of objects (CloudQuery Plugin UI Asset Upload Request) |
{- "ui_id": "afb63387-f196-483b-9a66-289f136bad88",
- "assets": [
- {
- "name": "scripts/main.js",
- "content_type": "application/json"
}
]
}
{- "ui_id": "string",
- "assets": [
- {
- "name": "string",
- "upload_url": "string"
}
]
}
Finalize UI asset upload
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
ui_id required | string ID representing the finished upload |
{- "ui_id": "string"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Remove UI assets for a given plugin version
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List all plugins for the team.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
include_private | boolean Whether to include private plugins |
{- "items": [
- {
- "name": "aws-source",
- "kind": "source",
- "team_name": "cloudquery",
- "display_name": "AWS Source Plugin",
- "category": "cloud-infrastructure",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "official": true,
- "short_description": "Sync data from AWS to any destination",
- "tier": "paid",
- "usd_per_row": "0.00123",
- "free_rows_per_month": 10000,
- "release_stage": "preview"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Download an asset for a given plugin version as the current team.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_team required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
plugin_kind required | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: source The kind of plugin, ie. source or destination. |
plugin_name required | string (PlatformPluginName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: aws-source The unique name for the plugin. |
version_name required | string (PlatformVersionName) ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-... The version in semantic version format. |
target_name required | string |
Accept | string |
{- "checksum": "string",
}
List plugin mirror jobs
status | Array of strings (PlatformPluginMirrorRunStatus) Items Enum: "completed" "failed" "started" "cancelled" "created" Plugin mirror run status filters |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}, - "mirroring_available": true
}
Spawn a plugin mirroring job
required | Array of objects (PlatformPluginMirrorRunVersion) |
{- "versions": [
- {
- "team_name": "cloudquery",
- "name": "aws-source",
- "kind": "source",
- "version": "string"
}
]
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed"
}
Get a plugin mirror job
plugin_mirror_id required | string <uuid> (PlatformPluginMirrorRunID) Example: 12345678-1234-1234-1234-1234567890ab ID of mirror run |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "versions": [
- {
- "team_name": "cloudquery",
- "name": "aws-source",
- "kind": "source",
- "version": "string"
}
]
}
Upload a plugin bundle
{- "items": [
- {
- "name": "aws",
- "kind": "source",
- "team_name": "cloudquery",
- "display_name": "AWS Source Plugin",
- "category": "cloud-infrastructure",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "official": true,
- "short_description": "Sync data from AWS to any destination",
- "tier": "paid",
- "usd_per_row": "0.00123",
- "free_rows_per_month": 10000,
- "release_stage": "preview"
}
]
}
Get a URL to upload image that will be publicly accessible
content_type required | string (PlatformContentType) Enum: "image/jpeg" "image/png" "image/webp" The HTTP Content-Type of the image or asset |
{- "content_type": "image/png"
}
{- "required_headers": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
Performs authentication and authorization for our image registry.
account | string Username used for |
service | string Service requesting the JWT token |
scope | string Multi-value string containing the repository being access and the operation type (push/pull) |
X-Meta-Plugin-Version | string Example: v1.0.0 Plugin version name |
X-Meta-User-Team-Name | string User's team name |
{- "access_token": "string",
- "token": "string"
}
Create a test source connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
path required | string (PlatformSyncPluginPath) ^cloudquery/[^/]+ Plugin path in CloudQuery registry |
source_name | string Name of an existing source |
version required | string Version of the plugin |
object <Plugin parameters, specific to each plugin> | |
Array of objects (PlatformSyncEnvCreate) Environment variables for the plugin. All environment variables will be stored as secrets. | |
connector_id | string <uuid> (PlatformConnectorID) ID of the connector that will be used to authenticate the destination. |
{- "path": "string",
- "source_name": "string",
- "version": "v1.2.3",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "connector_id": "12345678-1234-1234-1234-1234567890ab"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Get a sync source test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_test_connection_id required | string <uuid> (PlatformSyncSourceTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Source Test Connection |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Update a sync source test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_test_connection_id required | string <uuid> (PlatformSyncSourceTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Source Test Connection |
status required | string (PlatformSyncTestConnectionStatus) Enum: "completed" "failed" "started" "created" The status of the sync run |
failure_reason | string Reason for failure |
failure_code | string Code for failure |
{- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Get logs for a sync source test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_test_connection_id required | string <uuid> (PlatformSyncSourceTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Source Test Connection |
Accept | string |
{
}
Promote a sync source test connection to a sync source.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_test_connection_id required | string <uuid> (PlatformSyncSourceTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Source Test Connection |
name required | string^[a-zA-Z0-9_-]+$ Descriptive, unique name for the source |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
tables required | Array of strings Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified. |
skip_tables | Array of strings Tables matched by |
overwrite_source | boolean Set this to allow overwriting an existing sync source. Defaults to true to preserve compatibility. |
{- "name": "my-source-definition",
- "display_name": "Human Readable Name",
- "tables": [
- "string"
], - "skip_tables": [
- "string"
], - "overwrite_source": true
}
{- "name": "my-source-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "tables": [
- "string"
], - "skip_tables": [
- "string"
], - "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
Create a test destination connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
path required | string (PlatformSyncPluginPath) ^cloudquery/[^/]+ Plugin path in CloudQuery registry |
destination_name | string Name of an existing destination |
version required | string Version of the plugin |
write_mode | string (PlatformSyncDestinationWriteMode) Enum: "append" "overwrite" "overwrite-delete-stale" Write mode for the destination |
migrate_mode | string (PlatformSyncDestinationMigrateMode) Enum: "safe" "forced" Migrate mode for the destination |
object <Plugin parameters, specific to each plugin> | |
Array of objects (PlatformSyncEnvCreate) Environment variables for the plugin. All environment variables will be stored as secrets. | |
connector_id | string <uuid> (PlatformConnectorID) ID of the connector that will be used to authenticate the destination. |
{- "path": "string",
- "destination_name": "string",
- "version": "v1.2.3",
- "write_mode": "append",
- "migrate_mode": "safe",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "connector_id": "12345678-1234-1234-1234-1234567890ab"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Get a sync destination test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_test_connection_id required | string <uuid> (PlatformSyncDestinationTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Destination Test Connection |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Update a sync destination test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_test_connection_id required | string <uuid> (PlatformSyncDestinationTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Destination Test Connection |
status required | string (PlatformSyncTestConnectionStatus) Enum: "completed" "failed" "started" "created" The status of the sync run |
failure_reason | string Reason for failure |
failure_code | string Code for failure |
{- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Get logs for a sync destination test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_test_connection_id required | string <uuid> (PlatformSyncDestinationTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Destination Test Connection |
Accept | string |
{
}
Promote a sync destination test connection to a sync destination.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_test_connection_id required | string <uuid> (PlatformSyncDestinationTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Destination Test Connection |
name required | string^[a-zA-Z0-9_-]+$ Descriptive, unique name for the destination |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
write_mode | string (PlatformSyncDestinationWriteMode) Enum: "append" "overwrite" "overwrite-delete-stale" Write mode for the destination |
migrate_mode | string (PlatformSyncDestinationMigrateMode) Enum: "safe" "forced" Migrate mode for the destination |
sync_group_id | string |
send_sync_summary | boolean |
overwrite_destination | boolean Set this to allow overwriting an existing sync destination. Defaults to true to preserve compatibility. |
{- "name": "my-destination-definition",
- "display_name": "Human Readable Name",
- "write_mode": "append",
- "migrate_mode": "safe",
- "sync_group_id": "string",
- "send_sync_summary": true,
- "overwrite_destination": true
}
{- "name": "my-destination-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "write_mode": "append",
- "migrate_mode": "safe",
- "sync_group_id": "string",
- "send_sync_summary": true,
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "transformers": [
- "string"
], - "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
Create a test transformer connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
path required | string (PlatformSyncPluginPath) ^cloudquery/[^/]+ Plugin path in CloudQuery registry |
transformer_name | string Name of an existing transformer |
version required | string Version of the plugin |
object <Plugin parameters, specific to each plugin> | |
Array of objects (PlatformSyncEnvCreate) Environment variables for the plugin. All environment variables will be stored as secrets. | |
connector_id | string <uuid> (PlatformConnectorID) ID of the connector that will be used to authenticate the destination. |
{- "path": "string",
- "transformer_name": "string",
- "version": "v1.2.3",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "connector_id": "12345678-1234-1234-1234-1234567890ab"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Get a sync transformer test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_test_connection_id required | string <uuid> (PlatformSyncTransformerTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Transformer Test Connection |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Update a sync transformer test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_test_connection_id required | string <uuid> (PlatformSyncTransformerTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Transformer Test Connection |
status required | string (PlatformSyncTestConnectionStatus) Enum: "completed" "failed" "started" "created" The status of the sync run |
failure_reason | string Reason for failure |
failure_code | string Code for failure |
{- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string"
}
Get logs for a sync transformer test connection.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_test_connection_id required | string <uuid> (PlatformSyncTransformerTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Transformer Test Connection |
Accept | string |
{
}
Promote a sync transformer test connection to a sync transformer.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_test_connection_id required | string <uuid> (PlatformSyncTransformerTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Sync Transformer Test Connection |
name required | string^[a-zA-Z0-9_-]+$ Descriptive, unique name for the transformer |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
overwrite_transformer | boolean Set this to allow overwriting an existing sync transformer. Defaults to true to preserve compatibility. |
{- "name": "my-transformer-definition",
- "display_name": "Human Readable Name",
- "overwrite_transformer": true
}
{- "name": "my-transformer-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true
}
List all version upgrades for syncs
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings Items Enum: "kind" "path" "prev_version" "new_version" "created_at" Sort by options |
sort_dir | Array of strings (SyncSortDirection) Items Enum: "asc" "desc" Sync sort direction options |
path | string (PlatformSyncPluginPath) ^cloudquery/[^/]+ Example: path=cloudquery/aws Filter by plugin path |
kind | string (PlatformPluginKind) Enum: "source" "destination" "transformer" Example: kind=source Filter by plugin kind |
platform_version | string Example: platform_version=v1.1.0 Filter by platform version |
{- "items": [
- {
- "path": "string",
- "kind": "source",
- "prev_version": "v1.2.3",
- "new_version": "v1.3.0",
- "platform_version": "v1.1.0",
- "created_at": "2023-07-14T16:53:42Z",
- "sync_source_destination_names": [
- "string"
], - "sync_source_destination_display_names": [
- "string"
]
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List all sync source definitions.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
filter | string^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-']*$... Filter by name or display name |
sort_by | Array of strings (SyncGenericSortBy) Items Enum: "name" "display_name" "path" "version" "created_at" "updated_at" "draft" Sort by options |
sort_dir | Array of strings (SyncSortDirection) Items Enum: "asc" "desc" Sync sort direction options |
{- "items": [
- {
- "name": "my-source-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "tables": [
- "string"
], - "skip_tables": [
- "string"
], - "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get a single sync source definition.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync source |
{- "name": "my-source-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "tables": [
- "string"
], - "skip_tables": [
- "string"
], - "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
Update a Sync Source definition.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync source |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
tables | Array of strings Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified. |
skip_tables | Array of strings Tables matched by |
last_update_source | string (PlatformSyncLastUpdateSource) Enum: "yaml" "ui" How was the source or destination been created or updated last |
{- "display_name": "Human Readable Name",
- "tables": [
- "string"
], - "skip_tables": [
- "string"
], - "last_update_source": "yaml"
}
{- "name": "my-source-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "tables": [
- "string"
], - "skip_tables": [
- "string"
], - "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
Delete a Sync Source definition. Any syncs relying on this source must be deleted first.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync source |
{- "message": "string",
- "status": 0
}
Run migrations on all syncs which use this Sync Source.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync source |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Get test connection details for sync source.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync source |
sync_test_connection_id required | string <uuid> (PlatformSyncTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab unique ID of the test connection |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string",
- "plugin_kind": "source"
}
List all Syncs for a given sync source.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_source_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync source |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (SyncSortBy) Items Enum: "cpu" "created_at" "created_by" "destinations" "disabled" "display_name" "memory" "name" "schedule" "source" "updated_at" "last_run_created_at" "last_run_updated_at" "last_run_completed_at" "last_run_errors" "last_run_warnings" "last_run_total_rows" "last_run_status" "last_run_migration" Sort by options |
sort_dir | Array of strings (SyncSortDirection) Items Enum: "asc" "desc" Sync sort direction options |
filter | string^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-']*$... Filter by name or display name |
{- "items": [
- {
- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "disabled": true,
- "schedule": "string",
- "cpu": "1",
- "memory": "2Gi",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "last_run": {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "status_reason": "error",
- "migration": true,
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "total_rows": 0,
- "warnings": 0,
- "errors": 0
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List all sync destination definitions.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
filter | string^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-']*$... Filter by name or display name |
sort_by | Array of strings (SyncGenericSortBy) Items Enum: "name" "display_name" "path" "version" "created_at" "updated_at" "draft" Sort by options |
sort_dir | Array of strings (SyncSortDirection) Items Enum: "asc" "desc" Sync sort direction options |
{- "items": [
- {
- "name": "my-destination-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "write_mode": "append",
- "migrate_mode": "safe",
- "sync_group_id": "string",
- "send_sync_summary": true,
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "transformers": [
- "string"
], - "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get a single sync destination definition.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync destination |
{- "name": "my-destination-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "write_mode": "append",
- "migrate_mode": "safe",
- "sync_group_id": "string",
- "send_sync_summary": true,
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "transformers": [
- "string"
], - "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
Update a Sync Destination definition.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync destination |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
write_mode | string (PlatformSyncDestinationWriteModeUpdate) Enum: "append" "overwrite" "overwrite-delete-stale" Write mode for the destination, for updating |
migrate_mode | string (PlatformSyncDestinationMigrateModeUpdate) Enum: "safe" "forced" Migrate mode for the destination, for updating |
sync_group_id | string |
send_sync_summary | boolean |
last_update_source | string (PlatformSyncLastUpdateSource) Enum: "yaml" "ui" How was the source or destination been created or updated last |
transformers | Array of strings[^[a-zA-Z0-9_-]+$] |
{- "display_name": "Human Readable Name",
- "write_mode": "append",
- "migrate_mode": "safe",
- "sync_group_id": "string",
- "send_sync_summary": true,
- "last_update_source": "yaml",
- "transformers": [
- "string"
]
}
{- "name": "my-destination-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "write_mode": "append",
- "migrate_mode": "safe",
- "sync_group_id": "string",
- "send_sync_summary": true,
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "transformers": [
- "string"
], - "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
Delete a Sync Destination definition. Any syncs relying on this destination must be deleted first.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync destination |
{- "message": "string",
- "status": 0
}
Run migrations on all syncs which use this Sync Destination.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync destination |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Get test connection details for sync destination.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync destination |
sync_test_connection_id required | string <uuid> (PlatformSyncTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab unique ID of the test connection |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string",
- "plugin_kind": "source"
}
List all Syncs for a given sync destination.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_destination_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync destination |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (SyncSortBy) Items Enum: "cpu" "created_at" "created_by" "destinations" "disabled" "display_name" "memory" "name" "schedule" "source" "updated_at" "last_run_created_at" "last_run_updated_at" "last_run_completed_at" "last_run_errors" "last_run_warnings" "last_run_total_rows" "last_run_status" "last_run_migration" Sort by options |
sort_dir | Array of strings (SyncSortDirection) Items Enum: "asc" "desc" Sync sort direction options |
filter | string^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-']*$... Filter by name or display name |
{- "items": [
- {
- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "disabled": true,
- "schedule": "string",
- "cpu": "1",
- "memory": "2Gi",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "last_run": {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "status_reason": "error",
- "migration": true,
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "total_rows": 0,
- "warnings": 0,
- "errors": 0
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List all sync transformer definitions.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
filter | string^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-']*$... Filter by name or display name |
sort_by | Array of strings (SyncGenericSortBy) Items Enum: "name" "display_name" "path" "version" "created_at" "updated_at" "draft" Sort by options |
sort_dir | Array of strings (SyncSortDirection) Items Enum: "asc" "desc" Sync sort direction options |
{- "items": [
- {
- "name": "my-transformer-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get a single sync transformer definition.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync transformer |
{- "name": "my-transformer-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true
}
Update a Sync Transformer definition.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync transformer |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
last_update_source | string (PlatformSyncLastUpdateSource) Enum: "yaml" "ui" How was the source or destination been created or updated last |
{- "display_name": "Human Readable Name",
- "last_update_source": "yaml"
}
{- "name": "my-transformer-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true
}
Delete a Sync Transformer definition. Any syncs relying on this transformer must be deleted first.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync transformer |
{- "message": "string",
- "status": 0
}
Get test connection details for sync transformer.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync transformer |
sync_test_connection_id required | string <uuid> (PlatformSyncTestConnectionID) Example: 12345678-1234-1234-1234-1234567890ab unique ID of the test connection |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "failure_reason": "password authentication failed for user \"exampleuser\"",
- "failure_code": "INVALID_CREDENTIALS",
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "plugin_path": "string",
- "plugin_version": "string",
- "plugin_kind": "source"
}
List all Syncs for a given sync transformer.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync transformer |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "disabled": true,
- "schedule": "string",
- "cpu": "1",
- "memory": "2Gi",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_by": "string"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List all Sync Destinations for a given sync transformer.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_transformer_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync transformer |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "name": "my-destination-definition",
- "display_name": "Human Readable Name",
- "path": "string",
- "version": "v1.2.3",
- "write_mode": "append",
- "migrate_mode": "safe",
- "sync_group_id": "string",
- "send_sync_summary": true,
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "last_update_source": "yaml",
- "connector_id": "12345678-1234-1234-1234-1234567890ab",
- "transformers": [
- "string"
], - "created_at": "2023-07-14T16:53:42Z",
- "updated_at": "2023-07-14T16:53:42Z",
- "draft": true,
- "previous_version": "v1.2.2"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List all Syncs.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (SyncSortBy) Items Enum: "cpu" "created_at" "created_by" "destinations" "disabled" "display_name" "memory" "name" "schedule" "source" "updated_at" "last_run_created_at" "last_run_updated_at" "last_run_completed_at" "last_run_errors" "last_run_warnings" "last_run_total_rows" "last_run_status" "last_run_migration" Sort by options |
sort_dir | Array of strings (SyncSortDirection) Items Enum: "asc" "desc" Sync sort direction options |
filter | string^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-']*$... Filter by name or display name |
{- "items": [
- {
- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "disabled": true,
- "schedule": "string",
- "cpu": "1",
- "memory": "2Gi",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "last_run": {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "status_reason": "error",
- "migration": true,
- "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "total_rows": 0,
- "warnings": 0,
- "errors": 0
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create new Sync definition. Sync runs can be scheduled automatically, or triggered manually after sync is created.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
name required | string^[a-zA-Z0-9_-]+$ Descriptive, unique name for the sync |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
source required | string^[a-zA-Z0-9_-]+$ Unique name of the source |
destinations required | Array of strings non-empty [^[a-zA-Z0-9_-]+$] |
schedule | string Cron schedule for the sync |
disabled | boolean Default: false Whether the sync is disabled |
cpu | string Default: "1" CPU quota for the sync |
memory | string Default: "2Gi" Memory quota for the sync |
{- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "schedule": "string",
- "disabled": false,
- "cpu": "1",
- "memory": "2Gi"
}
{- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "disabled": true,
- "schedule": "string",
- "cpu": "1",
- "memory": "2Gi",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_by": "string"
}
Get a Sync
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
{- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "disabled": true,
- "schedule": "string",
- "cpu": "1",
- "memory": "2Gi",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_by": "string"
}
Update a Sync
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
display_name | string (PlatformDisplayName) [ 1 .. 255 ] characters ^[a-zA-Z\p{L}\p{N}_][a-zA-Z\p{L}\p{N}_ \-'\(\... A human-readable display name |
source | string^[a-zA-Z0-9_-]+$ Unique name of the source |
destinations | Array of strings non-empty [^[a-zA-Z0-9_-]+$] |
schedule | string Cron schedule for the sync |
disabled | boolean Default: false Whether the sync is disabled |
Array of objects (PlatformSyncEnv) Environment variables for the sync | |
cpu | string Default: "1" CPU quota for the sync |
memory | string Default: "2Gi" Memory quota for the sync |
{- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "schedule": "string",
- "disabled": false,
- "env": [
- {
- "name": "string"
}
], - "cpu": "1",
- "memory": "2Gi"
}
{- "name": "string",
- "display_name": "Human Readable Name",
- "source": "string",
- "destinations": [
- "string"
], - "disabled": true,
- "schedule": "string",
- "cpu": "1",
- "memory": "2Gi",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "created_by": "string"
}
Delete Sync. This will delete Sync configuration and all associated sync runs, but will not delete the associated source and destination(s). These will need to be deleted separately.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List all Sync Runs.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
migration_filter | boolean Filter by migration |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "sync_name": "string",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "status_reason": "error",
- "workers": [
- {
- "phase": "Pending",
- "reason": "string"
}
], - "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "total_rows": 0,
- "warnings": 0,
- "errors": 0,
- "migration": true
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create new SyncRun. This will trigger a manual job run.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
{- "sync_name": "string",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "status_reason": "error",
- "workers": [
- {
- "phase": "Pending",
- "reason": "string"
}
], - "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "total_rows": 0,
- "warnings": 0,
- "errors": 0,
- "migration": true
}
Get a Sync Run.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
sync_run_id required | string <uuid> (PlatformSyncRunID) Example: 12345678-1234-1234-1234-1234567890ab ID of the SyncRun |
{- "sync_name": "string",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "status_reason": "error",
- "workers": [
- {
- "phase": "Pending",
- "reason": "string"
}
], - "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "total_rows": 0,
- "warnings": 0,
- "errors": 0,
- "migration": true,
- "cpu_seconds": 0.1,
- "memory_byte_seconds": 0.1,
- "network_egress_bytes": 0.1
}
Update a SyncRun
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
sync_run_id required | string <uuid> (PlatformSyncRunID) Example: 12345678-1234-1234-1234-1234567890ab ID of the SyncRun |
status | string (PlatformSyncRunStatus) Enum: "completed" "failed" "started" "cancelled" "created" "pending" The status of the sync run |
status_reason | string (PlatformSyncRunStatusReason) Enum: "error" "oom_killed" "partial_success" The reason for the status |
{- "status": "completed",
- "status_reason": "error"
}
{- "sync_name": "string",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "status": "completed",
- "status_reason": "error",
- "workers": [
- {
- "phase": "Pending",
- "reason": "string"
}
], - "created_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "total_rows": 0,
- "warnings": 0,
- "errors": 0,
- "migration": true
}
Get logs for a sync run.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
sync_run_id required | string <uuid> (PlatformSyncRunID) Example: 12345678-1234-1234-1234-1234567890ab ID of the SyncRun |
table | string Table name to filter logs by. Use a single dash ("-") as input to exclude all table-specific log lines. |
Accept | string |
{
}
List all configured connectors
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
filter_type | string Filter connectors by a given type. |
filter_plugin | string Example: filter_plugin=cloudquery/source/googleanalytics Filter connectors by a given plugin reference. Mutually exclusive with |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "type": "string",
- "name": "string",
- "status": "created",
- "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create new connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
type required | string Type of the connector |
name required | string Name of the connector |
{- "type": "string",
- "name": "string"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "type": "string",
- "name": "string",
- "status": "created",
- "created_at": "2017-07-14T16:53:42Z"
}
Get a configured connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "type": "string",
- "name": "string",
- "status": "created",
- "created_at": "2017-07-14T16:53:42Z"
}
Update a connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
name | string Name of the connector |
{- "name": "string"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "type": "string",
- "name": "string",
- "status": "created",
- "created_at": "2017-07-14T16:53:42Z"
}
Revoke authentication for a given connector. Any syncs relying on this connector will stop running until the connector is reauthenticated or sync references are updated.
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
{- "message": "string",
- "status": 0
}
Get authentication status for the given AWS connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
{- "role_arn": "string",
- "external_id": "string"
}
Authenticate or reauthenticate the given AWS connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
plugin_team required | string Team that owns the plugin we are authenticating the connector for |
plugin_kind required | string Kind of the plugin |
plugin_name required | string Name of the plugin |
plugin_version | string Version of the plugin |
object <Plugin parameters, specific to each plugin> | |
Array of objects (PlatformSyncEnvCreate) Environment variables used in the spec. | |
tables | Array of strings Tables to authenticate, setting from the outer spec |
skip_tables | Array of strings Tables to skip authentication, setting from the outer spec |
skip_dependent_tables | boolean Whether to skip dependent tables, setting from the outer spec |
{- "plugin_team": "cloudquery",
- "plugin_kind": "source",
- "plugin_name": "aws",
- "plugin_version": "v27.1.0",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "tables": [
- "aws_s3_buckets"
], - "skip_tables": [
- "aws_s3_buckets"
], - "skip_dependent_tables": true
}
{- "redirect_url": "string",
- "role_template_url": "string",
- "suggested_external_id": "string",
- "suggested_policy_arns": [
- "string"
]
}
Complete authentication for the given AWS connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
role_arn required | string ARN of role created by the user |
external_id | string External ID in the role definition. Optional. If not provided the previously suggested external ID will be used. Empty string will remove the external ID. |
{- "role_arn": "string",
- "external_id": "string"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Get authentication status for the given GCP connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
{- "service_account": "string"
}
Authenticate or reauthenticate the given GCP connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
plugin_team required | string Team that owns the plugin we are authenticating the connector for |
plugin_kind required | string Kind of the plugin |
plugin_name required | string Name of the plugin |
{- "plugin_team": "cloudquery",
- "plugin_kind": "source",
- "plugin_name": "aws"
}
{- "service_account": "string"
}
Complete authentication for the given GCP connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Authenticate or reauthenticate the given OAuth connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
plugin_team required | string Team that owns the plugin we are authenticating the connector for |
plugin_kind required | string Kind of the plugin |
plugin_name required | string Name of the plugin |
plugin_version | string Version of the plugin |
base_url required | string Base of the URL the callback url will be constructed from |
object <Plugin parameters, specific to each plugin> | |
Array of objects (PlatformSyncEnvCreate) Environment variables used in the spec. | |
tables | Array of strings Tables to authenticate, setting from the outer spec |
skip_tables | Array of strings Tables to skip authentication, setting from the outer spec |
skip_dependent_tables | boolean Whether to skip dependent tables, setting from the outer spec |
flavor | string Override default flavor |
{- "plugin_team": "cloudquery",
- "plugin_kind": "source",
- "plugin_name": "googleanalytics",
- "plugin_version": "v3.0.0",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "tables": [
- "github_organizations"
], - "skip_tables": [
- "github_organizations"
], - "skip_dependent_tables": true,
- "flavor": "string"
}
{- "redirect_url": "string"
}
Complete authentication for the given OAuth connector
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
connector_id required | string <uuid> (PlatformConnectorID) Example: 12345678-1234-1234-1234-1234567890ab ID of the Connector |
return_url required | string URL the user was redirected to (including new parameter values) after the OAuth flow is complete |
base_url required | string Base of the URL the callback url was constructed from |
object <Plugin parameters, specific to each plugin> | |
Array of objects (PlatformSyncEnvCreate) Environment variables used in the spec. |
{- "return_url": "string",
- "spec": { },
- "env": [
- {
- "name": "string",
- "value": "string"
}
]
}
{- "redirect_url": "string"
}
Get statistics on a Sync Run
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
sync_run_id required | string <uuid> (PlatformSyncRunID) Example: 12345678-1234-1234-1234-1234567890ab ID of the SyncRun |
{- "completed_tables": 0,
- "started_at": "2017-07-14T16:53:42Z",
- "last_completed_at": "2017-07-14T16:53:42Z",
- "resources": 0,
- "errors": 0,
- "panics": 0
}
Get table details on a Sync Run
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
sync_name required | string^[a-zA-Z0-9_-]+$ Unique name of the sync |
sync_run_id required | string <uuid> (PlatformSyncRunID) Example: 12345678-1234-1234-1234-1234567890ab ID of the SyncRun |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (TableSortBy) Table sort by options. This sorts the rows that are returned in the result set. |
sort_dir | Array of strings (TableSortDirection) Items Enum: "asc" "desc" Table sort direction options. This sorts the rows that are returned in the result set. |
{- "items": [
- {
- "service_name": "aws",
- "name": "aws_ec2_instances",
- "started_at": "2017-07-14T16:53:42Z",
- "completed_at": "2017-07-14T16:53:42Z",
- "resources": 0,
- "errors": 0,
- "panics": 0
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get platform registry information
{- "installation_id": "string",
- "activation_id": "0ce2fdf3-fac1-4457-a525-d0c69229a8dd",
- "team_name": "string",
- "api_key_last_four": "string",
- "last_activated_at": "2019-08-24T14:15:22Z",
- "next_activation_at": "2019-08-24T14:15:22Z",
- "offline_license_registered_to": "string",
- "offline_license_expires_at": "2019-08-24T14:15:22Z"
}
Register platform usage by API key
api_key required | string >= 32 characters Team API key to activate platform with |
{- "api_key": "stringstringstringstringstringst"
}
{- "team_name": "string"
}
Register platform usage by offline license
license required | string <byte> Offline license |
{- "license": "string"
}
{- "registered_to": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
{- "platform_base_url": "string",
- "platform_sso_url": "string",
- "platform_entity_id": "string",
- "platform_metadata_download_url": "string",
- "platform_certificate_download_url": "string",
- "metadata_url": "string",
- "metadata_xml": "string",
- "logout_url": "string",
- "role_group_key": "groups",
- "role_group_value_admins": "string",
- "role_mappings": {
- "admins-rw": [
- "admin:write",
- "admin:read"
], - "admins-ro": [
- "admin:read"
], - "general-rw": [
- "general:write",
- "general:read"
], - "general-ro": [
- "general:read"
]
}, - "default_roles": [
- "admin:write"
], - "disable_access_if_no_role_group": true,
- "enabled": true,
- "can_enable": true
}
Update SAML integration information
platform_base_url | string <url> Base URL to the platform. This should be set first. https recommended. |
metadata_url | string <url> Metadata URL from identity provider. Mutually exclusive with |
metadata_xml | string <url> Metadata file contents from identity provider. Mutually exclusive with |
logout_url | string <url> Logout URL from identity provider |
role_group_key | string Role group key name |
role_group_value_admins | string Deprecated Role group value for admin users |
object Mapping from IdP group names to roles. Each key is a potential IdP group value for the specified role_group_key, and each value is an array of roles to assign to users in that group. | |
default_roles | Array of strings (PlatformRole) Items Enum: "admin:write" "admin:read" "general:read" "general:write" Default roles for new users who are not in any group |
disable_access_if_no_role_group | boolean Whether to disable access if no role group is found in the SAML assertion. If true, users without a role group will not be able to log in. |
enabled | boolean Whether to enable or disable SAML |
{- "platform_base_url": "string",
- "metadata_url": "string",
- "metadata_xml": "string",
- "logout_url": "string",
- "role_group_key": "string",
- "role_group_value_admins": "string",
- "role_mappings": {
- "admins-rw": [
- "admin:write",
- "admin:read"
], - "admins-ro": [
- "admin:read"
], - "general-rw": [
- "general:write",
- "general:read"
], - "general-ro": [
- "general:read"
]
}, - "default_roles": [
- "admin:write"
], - "disable_access_if_no_role_group": true,
- "enabled": true
}
{- "platform_base_url": "string",
- "platform_sso_url": "string",
- "platform_entity_id": "string",
- "platform_metadata_download_url": "string",
- "platform_certificate_download_url": "string",
- "metadata_url": "string",
- "metadata_xml": "string",
- "logout_url": "string",
- "role_group_key": "groups",
- "role_group_value_admins": "string",
- "role_mappings": {
- "admins-rw": [
- "admin:write",
- "admin:read"
], - "admins-ro": [
- "admin:read"
], - "general-rw": [
- "general:write",
- "general:read"
], - "general-ro": [
- "general:read"
]
}, - "default_roles": [
- "admin:write"
], - "disable_access_if_no_role_group": true,
- "enabled": true,
- "can_enable": true
}
List all teams
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get a team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
{- "created_at": "2017-07-14T16:53:42Z",
- "name": "cloudquery",
- "plan": "free",
- "plan_end_time": "2017-07-14T16:53:42Z",
- "is_trial_active": false,
- "trial_end_time": "2017-07-14T16:53:42Z",
- "display_name": "CloudQuery",
- "internal": false
}
Delete a team
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List team members
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "role": "admin:read",
- "roles": [
- "admin:read"
], - "user": {
- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string"
}
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Add team member
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
user_id required | string <uuid> ID of the User |
roles required | Array of strings Items Enum: "admin:write" "admin:read" "general:read" "general:write" |
{- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "roles": [
- "admin:write"
]
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Remove team member
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
user_id required | string <uuid> ID of the User |
{- "user_id": "12345678-1234-1234-1234-1234567890ab"
}
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
List all users
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Add new user
email required | string |
name required | string |
is_admin | boolean Deprecated DEPRECATED. Use roles instead |
password | string |
roles required | Array of strings >= 0 items Items Enum: "admin:write" "admin:read" Global roles for the user |
{- "email": "string",
- "name": "string",
- "is_admin": true,
- "password": "string",
- "roles": [
- "admin:write"
]
}
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true
}
Get user details
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true,
- "teams": [
- {
- "role": "admin:read",
- "roles": [
- "admin:read"
], - "team_name": "cloudquery",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Update user
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
string | |
name | string |
password | string |
enabled | boolean |
is_admin | boolean Deprecated DEPRECATED. Use roles instead |
roles | Array of strings Items Enum: "admin:write" "admin:read" Global roles for the user |
{- "email": "string",
- "name": "string",
- "password": "string",
- "enabled": true,
- "is_admin": true,
- "roles": [
- "admin:write"
]
}
{- "created_at": "2017-07-14T16:53:42Z",
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "updated_at": "2017-07-14T16:53:42Z",
- "profile_image_url": "string",
- "last_login_at": "2019-08-24T14:15:22Z",
- "is_admin": true,
- "roles": [
- "admin:write"
], - "enabled": true,
- "provider": "local",
- "tracking_opted_in": true
}
Delete user
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Create password reset token for user
user_id required | string <uuid> (PlatformUserID) Example: 12345678-1234-1234-1234-1234567890ab ID of the User |
{- "reset_token": "string"
}
Upload a plugin bundle
{- "items": [
- {
- "name": "aws",
- "kind": "source",
- "team_name": "cloudquery",
- "display_name": "AWS Source Plugin",
- "category": "cloud-infrastructure",
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-07-14T16:53:42Z",
- "official": true,
- "short_description": "Sync data from AWS to any destination",
- "tier": "paid",
- "usd_per_row": "0.00123",
- "free_rows_per_month": 10000,
- "release_stage": "preview"
}
]
}
List asset view logs
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
type | Array of strings (PlatformAssetViewRunType) Items Enum: "client_table" "s3_source" AssetView run type filters |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "type": "client_table",
- "triggered_by": "string",
- "error_message": "string",
- "created_at": "2020-01-01T00:00:00Z",
- "finished_at": "2020-01-01T00:00:00Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List all queries
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
tag | Array of strings (PlatformQueryTag) Query tags |
name_filter | string Filter by query name. |
query_filter | string Filter by query |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Find all t2.micro EC2 instances",
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "description": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Run an ad-hoc SQL query against any table. Further filtering can optionally be applied on top of the raw SQL results using the optional parameters. Filtering can be useful in situations where a saved query needs to be further filtered, grouped or paginated, such as in dashboards or reports.
select | Array of strings (TableSelect) Table selects. This filters the columns that are returned in the result set. |
filter_mode | string Default: "smart" Enum: "smart" "search" "column" Table filter mode. Smart mode switches between column and search mode based on the filtered table and Search mode allows searching deeply nested data but is not available on all tables as it requires a separate indexing step. Search mode is only available on resource tables or queries derived from resource tables results that contain _cq_id and _cq_source_id. Search mode may also be used against cloud_assets but it will only return results from resource tables. Column mode searches purely using the columns in the table. It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. |
filter | Array of strings (PlatformFilterExpression) Example: filter=resource_type=aws_s3_buckets Table filters. This filters the rows that are returned in the result set. |
filter_id | Array of strings <uuid> (PlatformFilterID) [ items <uuid > ] Table filter IDs. These should be valid Saved Filter IDs. These filters will be applied to the query results before returning them. |
sort_by | Array of strings (TableSortBy) Table sort by options. This sorts the rows that are returned in the result set. |
sort_dir | Array of strings (TableSortDirection) Items Enum: "asc" "desc" Table sort direction options. This sorts the rows that are returned in the result set. |
group_by | Array of strings (TableGroupBy) Table group by options. This groups the rows that are returned in the result set by the given columns. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
query required | string |
{- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'"
}
{- "data": {
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "columns": [
- {
- "name": "string",
- "type": "string"
}
], - "rows": [
- [
- null
]
]
}, - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Save a query to execute later
name required | string |
query required | string |
public | boolean Default: true |
tags | Array of strings (PlatformQueryTag) |
description | string |
{- "name": "Find all t2.micro EC2 instances",
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "public": true,
- "tags": [
- "string"
], - "description": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Find all t2.micro EC2 instances",
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "description": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
List Query Tags
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- "string"
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get a saved query
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Find all t2.micro EC2 instances",
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "description": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
Update a saved query
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
name | string |
query | string |
public | boolean |
tags | Array of strings (PlatformQueryTag) |
description | string |
{- "name": "Find all t2.micro EC2 instances",
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instances WHERE instance_type = 't2.micro'",
- "public": true,
- "tags": [
- "string"
], - "description": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instances raw table"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Find all t2.micro EC2 instances",
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "description": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
Execute a saved query
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
select | Array of strings (TableSelect) Table selects. This filters the columns that are returned in the result set. |
filter_mode | string Default: "smart" Enum: "smart" "search" "column" Table filter mode. Smart mode switches between column and search mode based on the filtered table and Search mode allows searching deeply nested data but is not available on all tables as it requires a separate indexing step. Search mode is only available on resource tables or queries derived from resource tables results that contain _cq_id and _cq_source_id. Search mode may also be used against cloud_assets but it will only return results from resource tables. Column mode searches purely using the columns in the table. It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. |
filter | Array of strings (PlatformFilterExpression) Example: filter=resource_type=aws_s3_buckets Table filters. This filters the rows that are returned in the result set. |
filter_id | Array of strings <uuid> (PlatformFilterID) [ items <uuid > ] Table filter IDs. These should be valid Saved Filter IDs. These filters will be applied to the query results before returning them. |
sort_by | Array of strings (TableSortBy) Table sort by options. This sorts the rows that are returned in the result set. |
sort_dir | Array of strings (TableSortDirection) Items Enum: "asc" "desc" Table sort direction options. This sorts the rows that are returned in the result set. |
group_by | Array of strings (TableGroupBy) Table group by options. This groups the rows that are returned in the result set by the given columns. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "data": {
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "columns": [
- {
- "name": "string",
- "type": "string"
}
], - "rows": [
- [
- null
]
]
}, - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Query Filters
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
tag | Array of strings (PlatformFilterTag) Filter tags |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Save Query Filter
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
name required | string |
expression required | string (PlatformFilterExpression) A table column filter. |
public | boolean Default: true |
tags | Array of strings (PlatformFilterTag) |
description | string |
{- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "public": true,
- "tags": [
- "string"
], - "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
List Filter Tags For A Saved Query
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- "string"
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Filter Tags For A Table
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- "string"
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Tables
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- {
- "name": "cloud_assets",
- "total_rows": 0
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Table Rows
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
select | Array of strings (TableSelect) Table selects. This filters the columns that are returned in the result set. |
filter_mode | string Default: "smart" Enum: "smart" "search" "column" Table filter mode. Smart mode switches between column and search mode based on the filtered table and Search mode allows searching deeply nested data but is not available on all tables as it requires a separate indexing step. Search mode is only available on resource tables or queries derived from resource tables results that contain _cq_id and _cq_source_id. Search mode may also be used against cloud_assets but it will only return results from resource tables. Column mode searches purely using the columns in the table. It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. |
filter | Array of strings (PlatformFilterExpression) Example: filter=resource_type=aws_s3_buckets Table filters. This filters the rows that are returned in the result set. |
filter_id | Array of strings <uuid> (PlatformFilterID) [ items <uuid > ] Table filter IDs. These should be valid Saved Filter IDs. These filters will be applied to the query results before returning them. |
sort_by | Array of strings (TableSortBy) Table sort by options. This sorts the rows that are returned in the result set. |
sort_dir | Array of strings (TableSortDirection) Items Enum: "asc" "desc" Table sort direction options. This sorts the rows that are returned in the result set. |
group_by | Array of strings (TableGroupBy) Table group by options. This groups the rows that are returned in the result set by the given columns. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "data": {
- "query": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'",
- "columns": [
- {
- "name": "string",
- "type": "string"
}
], - "rows": [
- [
- null
]
]
}, - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get Table row
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
table_row_id required | string (PlatformTableRowID) Example: table_12345678-1234-1234-1234-1234567890ab ID of the Resource |
filter_mode | string Default: "smart" Enum: "smart" "search" "column" Table filter mode. Smart mode switches between column and search mode based on the filtered table and Search mode allows searching deeply nested data but is not available on all tables as it requires a separate indexing step. Search mode is only available on resource tables or queries derived from resource tables results that contain _cq_id and _cq_source_id. Search mode may also be used against cloud_assets but it will only return results from resource tables. Column mode searches purely using the columns in the table. It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. |
filter | Array of strings (PlatformFilterExpression) Example: filter=resource_type=aws_s3_buckets Table filters. This filters the rows that are returned in the result set. |
filter_id | Array of strings <uuid> (PlatformFilterID) [ items <uuid > ] Table filter IDs. These should be valid Saved Filter IDs. These filters will be applied to the query results before returning them. |
{- "data": { },
- "matches": [
- {
- "key": "string",
- "value": "string",
- "start_index": 0,
- "end_index": 0
}
]
}
Get Table Schema
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
{- "schema": [
- {
- "name": "column_name",
- "type": "Nullable(String)",
- "default_kind": "DEFAULT",
- "default_expression": "string",
- "comment": "string",
- "kind": "any",
- "nullable": true
}
], - "default_columns": [
- "string"
]
}
Get Table Schemas
tables required | Array of strings[ items non-empty ] Example: tables=aws_ec2_instances&tables=aws_s3_buckets A list of table names to retrieve schemas for |
{- "items": [
- {
- "table_name": "string",
- "schema": [
- {
- "name": "column_name",
- "type": "Nullable(String)",
- "default_kind": "DEFAULT",
- "default_expression": "string",
- "comment": "string",
- "kind": "any",
- "nullable": true
}
], - "default_columns": [
- "string"
]
}
]
}
List Table Filters
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
tag | Array of strings (PlatformFilterTag) Filter tags |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Save Table Filter
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
name required | string |
expression required | string (PlatformFilterExpression) A table column filter. |
public | boolean Default: true |
tags | Array of strings (PlatformFilterTag) |
description | string |
{- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "public": true,
- "tags": [
- "string"
], - "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
List Table Relations
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
relation_name | string Filter by related table name |
{- "data": [
- {
- "table_name": "aws_ec2_images",
- "label": "EC2 Image",
- "query": "SELECT aws_ec2_images.* FROM aws_ec2_instances JOIN aws_ec2_images ON aws_ec2_instances.image_id = aws_ec2_images.image_id"
}
]
}
Get Table Columns
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
filter_mode | string Default: "smart" Enum: "smart" "search" "column" Table filter mode. Smart mode switches between column and search mode based on the filtered table and Search mode allows searching deeply nested data but is not available on all tables as it requires a separate indexing step. Search mode is only available on resource tables or queries derived from resource tables results that contain _cq_id and _cq_source_id. Search mode may also be used against cloud_assets but it will only return results from resource tables. Column mode searches purely using the columns in the table. It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. |
filter | string Filter by column name |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "name": "region",
- "kind": "any",
- "nullable": true
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get Table Column Values
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
column_name required | string The name of a table column. |
filter_mode | string Default: "smart" Enum: "smart" "search" "column" Table filter mode. Smart mode switches between column and search mode based on the filtered table and Search mode allows searching deeply nested data but is not available on all tables as it requires a separate indexing step. Search mode is only available on resource tables or queries derived from resource tables results that contain _cq_id and _cq_source_id. Search mode may also be used against cloud_assets but it will only return results from resource tables. Column mode searches purely using the columns in the table. It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. |
filter | string Filter by column value. |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "value": "string",
- "kind": "any"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Query Filters
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
tag | Array of strings (PlatformFilterTag) Filter tags |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Save Query Filter
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
name required | string |
expression required | string (PlatformFilterExpression) A table column filter. |
public | boolean Default: true |
tags | Array of strings (PlatformFilterTag) |
description | string |
{- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "public": true,
- "tags": [
- "string"
], - "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
List Filter Tags For A Saved Query
query_id required | string <uuid> (PlatformQueryID) The unique ID for the query. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- "string"
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Table Filters
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
tag | Array of strings (PlatformFilterTag) Filter tags |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Save Table Filter
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
name required | string |
expression required | string (PlatformFilterExpression) A table column filter. |
public | boolean Default: true |
tags | Array of strings (PlatformFilterTag) |
description | string |
{- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "public": true,
- "tags": [
- "string"
], - "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table"
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
List Filter Tags For A Table
table_name required | string (PlatformTableName) Example: cloud_assets The name of the table. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- "string"
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Filters
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
tag | Array of strings (PlatformFilterTag) Filter tags |
name_filter | string Filter by filter name |
expression_filter | string Filter by filter expression |
{- "items": [
- {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Filter Tags
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "items": [
- "string"
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get a table filter by ID
filter_id required | string <uuid> (PlatformFilterID) The unique ID for the filter. |
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
Update a table filter
filter_id required | string <uuid> (PlatformFilterID) The unique ID for the filter. |
name | string |
description | string |
expression | string (PlatformFilterExpression) A table column filter. |
tags | Array of strings (PlatformFilterTag) |
{- "name": "t2.micro EC2 instances",
- "description": "string",
- "expression": "resource_type=aws_s3_buckets",
- "tags": [
- "string"
]
}
{- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "t2.micro EC2 instances",
- "expression": "resource_type=aws_s3_buckets",
- "description": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table",
- "table": "cloud_assets",
- "query_id": "6fa29c22-6bab-424a-859e-a13a5c607e72",
- "user_id": "12345678-1234-1234-1234-1234567890ab",
- "tags": [
- "string"
], - "created_at": "2017-07-14T16:53:42Z"
}
List all custom columns
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (CustomColumnSortBy) Items Enum: "id" "description" "table_name" "column_name" "label" "column_type" "value_type" "value_expr" "created_by" "team_name" "created_at" "updated_at" Sort by options |
sort_dir | Array of strings (CustomColumnSortDirection) Items Enum: "asc" "desc" Custom column sort direction options |
table | string Filter columns by table name. |
search_term | string Filter columns by name, label, or description. |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "description": "string",
- "table_name": "cloud_assets",
- "column_name": "environment",
- "label": "Environment name",
- "column_type": "String",
- "value_type": "expression",
- "value_expr": "string",
- "created_by": {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "email": "string"
}, - "created_at": "2017-07-14T16:53:42Z",
- "team_name": "cloudquery"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Save a custom column
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
description | string |
table_name required | string Table this column applies to. |
column_name required | string |
label required | string |
column_type | string (PlatformCustomColumnColumnType) Enum: "String" "Integer" "Float" "Boolean" "DateTime" Data type of the column. Only needed for value_type=external. |
value_type required | string (PlatformCustomColumnValueType) Enum: "expression" "external" |
value_expr | string Value expression. For value_type=expression, this is the actual SQL query. For value_type=external this is the default value. |
{- "description": "string",
- "table_name": "cloud_assets",
- "column_name": "environment",
- "label": "Environment name",
- "column_type": "String",
- "value_type": "expression",
- "value_expr": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "description": "string",
- "table_name": "cloud_assets",
- "column_name": "environment",
- "label": "Environment name",
- "column_type": "String",
- "value_type": "expression",
- "value_expr": "string",
- "created_by": {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "email": "string"
}, - "created_at": "2017-07-14T16:53:42Z",
- "team_name": "cloudquery"
}
Get a custom column
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
custom_column_id required | string <uuid> (PlatformCustomColumnID) The unique ID for the custom column. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "description": "string",
- "table_name": "cloud_assets",
- "column_name": "environment",
- "label": "Environment name",
- "column_type": "String",
- "value_type": "expression",
- "value_expr": "string",
- "created_by": {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "email": "string"
}, - "created_at": "2017-07-14T16:53:42Z",
- "team_name": "cloudquery"
}
Update a custom column
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
custom_column_id required | string <uuid> (PlatformCustomColumnID) The unique ID for the custom column. |
description | string |
table_name required | string Table this column applies to. |
column_name required | string |
label required | string |
column_type | string (PlatformCustomColumnColumnType) Enum: "String" "Integer" "Float" "Boolean" "DateTime" Data type of the column. Only needed for value_type=external. |
value_type required | string (PlatformCustomColumnValueType) Enum: "expression" "external" |
value_expr | string Value expression. For value_type=expression, this is the actual SQL query. For value_type=external this is the default value. |
{- "description": "string",
- "table_name": "cloud_assets",
- "column_name": "environment",
- "label": "Environment name",
- "column_type": "String",
- "value_type": "expression",
- "value_expr": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "description": "string",
- "table_name": "cloud_assets",
- "column_name": "environment",
- "label": "Environment name",
- "column_type": "String",
- "value_type": "expression",
- "value_expr": "string",
- "created_by": {
- "id": "12345678-1234-1234-1234-1234567890ab",
- "name": "Sarah O'Connor",
- "email": "string"
}, - "created_at": "2017-07-14T16:53:42Z",
- "team_name": "cloudquery"
}
Delete a custom column
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
custom_column_id required | string <uuid> (PlatformCustomColumnID) The unique ID for the custom column. |
{- "message": "string",
- "status": 0
}
Import data into a Custom Column
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
custom_column_id required | string <uuid> (PlatformCustomColumnID) The unique ID for the custom column. |
required | Array of objects (Filter selecting assets, and value which should be assigned to matches.) |
{- "data": [
- { }
]
}
{- "data": {
- "created_at": "2020-01-01T00:00:00Z"
}
}
Edit values within a Custom Column
team_name required | string (PlatformTeamName) <= 255 characters ^[a-z](-?[a-z0-9]+)+$ Example: cloudquery The unique name for the team. |
custom_column_id required | string <uuid> (PlatformCustomColumnID) The unique ID for the custom column. |
required | Array of objects (The cq_id of the row and the value to set.) |
{- "data": [
- { }
]
}
{ }
List Policies
search_term | string Filter policies by name. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (PlatformPolicySortBy) Items Enum: "id" "name" "description" "status" "filter_id" "evaluated_resources" "rule_violations" "created_by" "created_at" "updated_at" Sort by options |
sort_dir | Array of strings (CustomColumnSortDirection) Items Enum: "asc" "desc" Platform policies sort direction options |
sort | string DEPRECATED! Sorting order. |
{- "policies": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "status": "paused",
- "framework_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "filter_id": "string",
- "evaluated_resources": 0,
- "rule_violations": 0,
- "created_by": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Create Policy
name required | string |
description required | string |
framework_ids required | Array of strings <uuid> [ items <uuid > ] |
filter_id | string |
status required | string Enum: "paused" "active" |
{- "name": "string",
- "description": "string",
- "framework_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "filter_id": "string",
- "status": "paused"
}
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "status": "paused",
- "framework_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "filter_id": "string",
- "evaluated_resources": 0,
- "rule_violations": 0,
- "created_by": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List All Frameworks
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
{- "frameworks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "string",
- "description": "string"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Get Policy
policy_id required | string <uuid> ID of the policy. |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "status": "paused",
- "framework_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "filter_id": "string",
- "evaluated_resources": 0,
- "rule_violations": 0,
- "created_by": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update Policy
policy_id required | string <uuid> ID of the policy. |
name required | string |
description required | string |
framework_ids required | Array of strings <uuid> [ items <uuid > ] |
filter_id | string |
status required | string Enum: "paused" "active" |
{- "name": "string",
- "description": "string",
- "framework_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "filter_id": "string",
- "status": "paused"
}
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "status": "paused",
- "framework_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "filter_id": "string",
- "evaluated_resources": 0,
- "rule_violations": 0,
- "created_by": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List Policy Frameworks
policy_id required | string <uuid> ID of the policy. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (PlatformPolicyFrameworkSortBy) Items Enum: "id" "label" "description" Sort by options |
sort_dir | Array of strings (CustomColumnSortDirection) Items Enum: "asc" "desc" Platform policies sort direction options |
search_term | string Filter rules by name. |
sort | string DEPRECATED! Sorting order. |
{- "frameworks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "string",
- "description": "string"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Policy Rules
policy_id required | string <uuid> ID of the policy. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (PlatformPolicyRuleSortBy) Items Enum: "id" "framework_id" "name" "description" "risk" "category" "violations" "version" Sort by options |
sort_dir | Array of strings (CustomColumnSortDirection) Items Enum: "asc" "desc" Platform policies sort direction options |
search_term | string Filter rules by name. |
sort | string Sorting order. |
{- "rules": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "framework_id": "4c1c36c9-0232-44b3-bdd8-4bdb3daaf53b",
- "framework_name": "string",
- "name": "string",
- "risk": "critical",
- "category": "string",
- "violations": 0,
- "description": "string",
- "remediation": "string",
- "learn_more_link": "string"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
List Policy Rule Details
policy_id required | string <uuid> ID of the policy. |
rule_id required | string <uuid> ID of the rule. |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
sort_by | Array of strings (PlatformPolicyRuleDetailSortBy) Items Enum: "name" "cloud" "account" "region" "tags" Sort by options |
sort_dir | Array of strings (CustomColumnSortDirection) Items Enum: "asc" "desc" Platform policies sort direction options |
search_term | string Filter rules by name. |
sort | string DEPRECATED! Sorting order. |
{- "details": [
- {
- "name": "string",
- "account": "string",
- "cloud": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}
Toggle Policy status
policy_id required | string <uuid> ID of the policy. |
status required | string Enum: "paused" "active" |
{- "message": "string",
- "status": 0,
- "errors": [
- "string"
], - "field_errors": {
- "property1": "string",
- "property2": "string"
}
}
Get Policy Violations History for defined period.
policy_id required | string <uuid> ID of the policy. |
start | string <date-time> A valid ISO 8601 date string representing the inclusive start of the period within which to return history entities. Defaults to start of current month if not specified. |
end | string <date-time> A valid ISO 8601 date string representing the exclusive end of the period within which to return history entities. Defaults to end of current month if not specified. |
{- "details": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "rule_violations": 0,
- "created_at": "2017-07-14T16:53:42Z"
}
]
}
List platform versions
page | integer <int64> >= 1 Default: 1 Page number of the results to fetch |
per_page | integer <int64> [ 1 .. 1000 ] Default: 100 The number of results per page (max 1000). |
{- "items": [
- {
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "metadata": {
- "total_count": 0,
- "last_page": 0,
- "page_size": 0,
- "time_ms": 0
}
}