File tree Expand file tree Collapse file tree
workspace-proxy-regression Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{}
2+
3+ >>> print_requests.py --get --keep //api/2.0/clusters/list
4+ {
5+ "headers": {
6+ "Authorization": [
7+ "Bearer [DATABRICKS_TOKEN]"
8+ ],
9+ "User-Agent": [
10+ "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat"
11+ ]
12+ },
13+ "method": "GET",
14+ "path": "/api/2.0/clusters/list"
15+ }
Original file line number Diff line number Diff line change 11$CLI api get /api/2.0/clusters/list --account
2+ trace print_requests.py --get --keep //api/2.0/clusters/list | contains.py "!X-Databricks-Org-Id"
Original file line number Diff line number Diff line change 11{}
2+
3+ >>> print_requests.py --get --keep //api/2.0/accounts/abc-123/network-policies
4+ {
5+ "headers": {
6+ "Authorization": [
7+ "Bearer [DATABRICKS_TOKEN]"
8+ ],
9+ "User-Agent": [
10+ "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat"
11+ ]
12+ },
13+ "method": "GET",
14+ "path": "/api/2.0/accounts/abc-123/network-policies"
15+ }
Original file line number Diff line number Diff line change 11$CLI api get /api/2.0/accounts/abc-123/network-policies
2+ trace print_requests.py --get --keep //api/2.0/accounts/abc-123/network-policies | contains.py "!X-Databricks-Org-Id"
Original file line number Diff line number Diff line change 11{}
2+
3+ >>> print_requests.py --get --keep //api/2.0/clusters/list
4+ {
5+ "headers": {
6+ "Authorization": [
7+ "Bearer [DATABRICKS_TOKEN]"
8+ ],
9+ "User-Agent": [
10+ "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat"
11+ ],
12+ "X-Databricks-Org-Id": [
13+ "999"
14+ ]
15+ },
16+ "method": "GET",
17+ "path": "/api/2.0/clusters/list"
18+ }
Original file line number Diff line number Diff line change 11$CLI api get /api/2.0/clusters/list --workspace-id 999
2+ trace print_requests.py --get --keep //api/2.0/clusters/list | contains.py "X-Databricks-Org-Id" "999"
Original file line number Diff line number Diff line change 11{}
2+
3+ >>> print_requests.py --get --keep //api/2.0/clusters/list
4+ {
5+ "headers": {
6+ "Authorization": [
7+ "Bearer [DATABRICKS_TOKEN]"
8+ ],
9+ "User-Agent": [
10+ "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat"
11+ ],
12+ "X-Databricks-Org-Id": [
13+ "999"
14+ ]
15+ },
16+ "method": "GET",
17+ "path": "/api/2.0/clusters/list",
18+ "q": {
19+ "o": "999"
20+ }
21+ }
Original file line number Diff line number Diff line change 11$CLI api get "/api/2.0/clusters/list?o=999"
2+ trace print_requests.py --get --keep //api/2.0/clusters/list | contains.py "X-Databricks-Org-Id" "999"
Original file line number Diff line number Diff line change 11{}
2+
3+ >>> print_requests.py --get --keep //api/2.0/clusters/list
4+ {
5+ "headers": {
6+ "Authorization": [
7+ "Bearer [DATABRICKS_TOKEN]"
8+ ],
9+ "User-Agent": [
10+ "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat"
11+ ]
12+ },
13+ "method": "GET",
14+ "path": "/api/2.0/clusters/list"
15+ }
Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ workspace_id = none
1010EOF
1111
1212$CLI api get /api/2.0/clusters/list --profile spog-account
13+ trace print_requests.py --get --keep //api/2.0/clusters/list | contains.py "!X-Databricks-Org-Id"
You can’t perform that action at this time.
0 commit comments