|
### Scope Dashboard Bindings (Find) |
|
|
|
@baseURL = http://admin:admin@localhost:3000 |
|
|
|
### Binding slothAppDashboard to slothPictureFactory (Scope) |
|
POST {{baseURL}}/apis/scope.grafana.app/v0alpha1/namespaces/default/scopedashboardbindings |
|
Content-Type: application/json |
|
Accept: application/json |
|
|
|
{ |
|
"apiVersion": "scope.grafana.app/v0alpha1", |
|
"kind": "ScopeDashboardBinding", |
|
"metadata": { |
|
"name": "slothAppDashboard.slothPictureFactory" |
|
}, |
|
"spec": { |
|
"dashboard": "slothAppDashboard", |
|
"dashboardTitle": "Sloth App Dashboard", |
|
"scope": "slothPictureFactory" |
|
} |
|
} |
|
|
|
### Binding slothAppDashboard to slothPictureFactory (Scope) |
|
POST {{baseURL}}/apis/scope.grafana.app/v0alpha1/namespaces/default/scopedashboardbindings |
|
Content-Type: application/json |
|
Accept: application/json |
|
|
|
{ |
|
"apiVersion": "scope.grafana.app/v0alpha1", |
|
"kind": "ScopeDashboardBinding", |
|
"metadata": { |
|
"name": "slothAppDashboard.slothVoteTracker" |
|
}, |
|
"spec": { |
|
"dashboard": "slothAppDashboard", |
|
"dashboardTitle": "Sloth App Dashboard", |
|
"scope": "slothVoteTracker" |
|
} |
|
} |
|
|
|
### Binding slothClusterDashboard to slothClusterNorth (Scope) |
|
POST {{baseURL}}/apis/scope.grafana.app/v0alpha1/namespaces/default/scopedashboardbindings |
|
Content-Type: application/json |
|
Accept: application/json |
|
|
|
{ |
|
"apiVersion": "scope.grafana.app/v0alpha1", |
|
"kind": "ScopeDashboardBinding", |
|
"metadata": { |
|
"name": "slothClusterDashboard.slothClusterNorth" |
|
}, |
|
"spec": { |
|
"dashboard": "slothClusterDashboard", |
|
"dashboardTitle": "Sloth Cluster Dashboard", |
|
"scope": "slothClusterNorth" |
|
} |
|
} |
|
|
|
### Binding slothClusterDashboard to slothClusterSouth (Scope) |
|
POST {{baseURL}}/apis/scope.grafana.app/v0alpha1/namespaces/default/scopedashboardbindings |
|
Content-Type: application/json |
|
Accept: application/json |
|
|
|
{ |
|
"apiVersion": "scope.grafana.app/v0alpha1", |
|
"kind": "ScopeDashboardBinding", |
|
"metadata": { |
|
"name": "slothClusterDashboard.slothClusterSouth" |
|
}, |
|
"spec": { |
|
"dashboard": "slothClusterDashboard", |
|
"dashboardTitle": "Sloth Cluster Dashboard", |
|
"scope": "slothClusterSouth" |
|
} |
|
} |
|
|
|
### Find scope dashboard bindings for scopes slothVoteTracker and slothClusterNorth (note the literal `name` is required) |
|
GET {{baseURL}}/apis/scope.grafana.app/v0alpha1/namespaces/default/find/scope_dashboard_bindings?scope=slothVoteTracker&scope=slothClusterNorth |
|
Accept: application/json |