Paths
Create workgroups in your org
POST https://api.tgcloud.io/controller/v4/v2/workgroups
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Get workgroups for your org
GET https://api.tgcloud.io/controller/v4/v2/workgroups
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
< Workgroup > array |
Get workgroup detail in your org
GET https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Update workgroups in your org
PUT https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Body |
request |
Update workgroup request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Delete workgroup detail in your org
DELETE https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Add Allowed IP
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/allow_list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Body |
request |
Allowed IP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Response 400
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Response 500
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
List Allowed IPs
GET https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/allow_list
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
< AllowedIP > array |
Response 500
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Get Current IP
GET https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/allow_list/current
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Result
Name | Schema |
---|---|
|
boolean |
CurrentIP |
string |
Response 500
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Disable Allow List
PUT https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/allow_list/disable
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Response 500
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Enable Allow List
PUT https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/allow_list/enable
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Response 500
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Update Allowed IP
PUT https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/allow_list/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
Allowed IP ID |
string |
Path |
workgroupID |
Workgroup ID |
string |
Body |
request |
Allowed IP request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Response 400
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Response 500
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Delete Allowed IP
DELETE https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/allow_list/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
Allowed IP ID |
string |
Path |
workgroupID |
Workgroup ID |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Response 500
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Get database in workgroup
GET https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/databases/{databaseID}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
databaseID |
Database ID |
string |
Path |
workgroupID |
Workgroup ID |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Update database in workgroup
PUT https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/databases/{databaseID}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
databaseID |
Database ID |
string |
Path |
workgroupID |
Workgroup ID |
string |
Body |
request |
Update database request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Delete database in workgroup
DELETE https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/databases/{databaseID}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
databaseID |
Database ID |
string |
Path |
workgroupID |
Workgroup ID |
string |
Create workspace in workgroup
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Body |
request |
Create workspace request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Get workspace in workgroup
GET https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Update workspace in workgroup
PUT https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
request |
Update workspace request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Delete workspace in workgroup
DELETE https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Delete a backup
DELETE https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/backups
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
request |
Delete Backup Request |
Restore a backup
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/backups/restore
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
request |
Restore Backup Request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully restored the backup. |
|
400 |
Bad request |
|
500 |
Internal server error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Set backup schedule
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/backups/schedule
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
request |
Backup Schedule |
Create in-database GSQL user
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/dbuser
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
request |
In-database user request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully created the in-database GSQL user. |
|
400 |
Bad request |
|
500 |
Internal server error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
List in-database GSQL users
GET https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/dbuser
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully listed the in-database GSQL users. |
|
500 |
Internal server error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
< tgIAM.IAMUser > array |
Update in-database GSQL user password
PUT https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/dbuser
Description
Update the password of an in-database GSQL user in the specified workspace and workgroup.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
request |
In-database user request |
Delete in-database GSQL user
DELETE https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/dbuser
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
request |
In-database user request |
Pause workspace in workgroup
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/pause
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Refresh workspace in workgroup
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/refresh
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Resume workspace in workgroup
POST https://api.tgcloud.io/controller/v4/v2/workgroups/{workgroupID}/workspaces/{workspaceID}/resume
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workgroupID |
Workgroup ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Get an metadata for your org
GET https://api.tgcloud.io/controller/v4/v2/workspaces/meta
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
List backups
GET https://api.tgcloud.io/controller/v4/v2/workspaces/{workspaceID}/backups
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully listed the backups. |
|
500 |
Internal server error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
< Backup > array |
Get backup restore status
GET https://api.tgcloud.io/controller/v4/v2/workspaces/{workspaceID}/backups/restore/{job}/status
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
job |
Job ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully got the backup restore status. |
|
500 |
Internal server error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Create a new workspace schedule
POST https://api.tgcloud.io/controller/v4/v2/workspaces/{workspaceID}/backups/schedule
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
workspaceID |
Workspace ID |
string |
Body |
body |
Workspace Schedule |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Get backup schedule
GET https://api.tgcloud.io/controller/v4/v2/workspaces/{workspaceID}/backups/schedule
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully got the backup schedule. |
|
500 |
Internal server error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
Retrieve workspace schedule
GET https://api.tgcloud.io/controller/v4/v2/workspaces/{workspaceID}/schedules
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
< WorkspaceSchedule > array |
Update an existing workspace schedule
PUT https://api.tgcloud.io/controller/v4/v2/workspaces/{workspaceID}/schedules/{schedule_id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
schedule_id |
Schedule ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Body |
body |
Workspace Schedule |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
Delete an existing workspace schedule
DELETE https://api.tgcloud.io/controller/v4/v2/workspaces/{workspaceID}/schedules/{schedule_id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
schedule_id |
Schedule ID |
string |
Path |
workspaceID |
Workspace ID |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
500 |
Internal Server Error |
Response 200
Name | Schema |
---|---|
Error |
boolean |
ErrorDetails |
< middleware.Error > array |
Message |
string |
RequestID |
string |
Result |
string |
List of users in the org
GET https://api.tgcloud.io/users