You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+72-4Lines changed: 72 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ Group | API endpoint | Command | Description |
39
39
| --- | --- | --- | --- |
40
40
| Accounts |[https://cloud.getdbt.com/api/v2/accounts/](https://docs.getdbt.com/dbt-cloud/api-v2#operation/listAccounts)|[dbt-cloud account list](#dbt-cloud-account-list)| Retrieves all available accounts |
41
41
| Accounts |[https://cloud.getdbt.com/api/v2/accounts/{accountId}/](https://docs.getdbt.com/dbt-cloud/api-v2#operation/getAccountById)|`dbt-cloud account get`| Not implemented yet |
42
+
| Audit Logs |https://cloud.getdbt.com/api/v3/accounts/{accountId}/audit-logs/|[dbt-cloud audit-log get](#dbt-cloud-audit-log-get)| Retrieves audit logs for the dbt Cloud account |
42
43
| Projects |https://cloud.getdbt.com/api/v2/accounts/{accountId}/projects/|[dbt-cloud project list](#dbt-cloud-project-list)| Returns a list of projects in the account |
43
44
| Projects |[https://cloud.getdbt.com/api/v2/accounts/{accountId}/projects/{projectId}](https://docs.getdbt.com/dbt-cloud/api-v2#operation/getProjectById)|`dbt-cloud project get`| Not implemented yet |
44
45
| Environments |https://cloud.getdbt.com/api/v3/accounts/{accountId}/projects/{projectId}/environments|[dbt-cloud environment list](#dbt-cloud-environment-list)| Retrieves environments for a given project |
@@ -59,6 +60,7 @@ Group | API endpoint | Command | Description |
@@ -143,6 +145,72 @@ This command retrieves all available dbt Cloud accounts. For more information on
143
145
```
144
146
</details>
145
147
148
+
## dbt-cloud audit-log get
149
+
150
+
❗ **This command is available for Enterprise accounts only.**
151
+
152
+
This command retrieves audit logs for the dbt Cloud account. For more information on the command, run `dbt-cloud audit-log get --help`. This command uses the API v3 which has no official documentation yet.
153
+
154
+
<details>
155
+
<summary><b>Usage</b></summary>
156
+
157
+
```bash
158
+
>> dbt-cloud audit-log get --logged-at-start 2022-05-01 --logged-at-end 2022-05-07 --limit 1
This command returns a list of projects in the account. For more information on the API endpoint arguments and response, run `dbt-cloud project list --help` and check out the [dbt Cloud API docs](https://docs.getdbt.com/dbt-cloud/api-v2#operation/listProjects).
@@ -717,7 +785,7 @@ This command deletes a job in a dbt Cloud project. Note that this command uses a
717
785
718
786
## dbt-cloud job delete-all
719
787
720
-
**This command is a composition of one or more base commands.**
788
+
💡 **This command is a composition of one or more base commands.**
721
789
722
790
This command fetches all jobs on the account, deletes them one-by-one after user confirmation via prompt and prints out the job delete responses. For more information on the command and its arguments, run `dbt-cloud job delete-all --help`.
723
791
@@ -848,7 +916,7 @@ Job 54659 was deleted.
848
916
849
917
## dbt-cloud job export
850
918
851
-
**This command is a composition of one or more base commands.**
919
+
💡 **This command is a composition of one or more base commands.**
852
920
853
921
This command exports a dbt Cloud job as JSON to a file and can be used in conjunction with [dbt-cloud job import](#dbt-cloud-job-import) to copy jobs between dbt Cloud projects.
854
922
@@ -908,7 +976,7 @@ This command exports a dbt Cloud job as JSON to a file and can be used in conjun
908
976
909
977
## dbt-cloud job import
910
978
911
-
**This command is a composition of one or more base commands.**
979
+
💡 **This command is a composition of one or more base commands.**
912
980
913
981
This command imports a dbt Cloud job from exported JSON. You can use JSON manipulation tools (e.g., [jq](https://stedolan.github.io/jq/)) to modify the job definition before importing it.
914
982
@@ -1215,7 +1283,7 @@ This command cancels a dbt Cloud run. For more information on the API endpoint a
1215
1283
1216
1284
## dbt-cloud run cancel-all
1217
1285
1218
-
**This command is a composition of one or more base commands.**
1286
+
💡 **This command is a composition of one or more base commands.**
1219
1287
1220
1288
This command fetches all runs on the account, cancels them one-by-one after user confirmation via prompt and prints out the run cancellation responses. For more information on the command and its arguments, run `dbt-cloud run cancel-all --help`.
0 commit comments