grafana.json•8.24 kB
{
"nodeType": "n8n-nodes-base.grafana",
"displayName": "Grafana",
"description": "Consume the Grafana API",
"version": 1,
"properties": [
{
"name": "title",
"displayName": "Title",
"type": "string",
"default": "",
"description": "Title of the dashboard to create",
"required": true,
"displayOptions": {
"show": {
"resource": [
"dashboard"
],
"operation": [
"create"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Folder to create the dashboard in - if the folder is unspecified, the dashboard will be saved to the General folder. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add Field",
"options": [
{
"name": "folderId",
"displayName": "Folder Name or ID",
"type": "options",
"default": "",
"description": "Folder to create the dashboard in - if the folder is unspecified, the dashboard will be saved to the General folder. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
}
],
"displayOptions": {
"show": {
"resource": [
"dashboard"
],
"operation": [
"create"
]
}
}
},
{
"name": "dashboardUidOrUrl",
"displayName": "Dashboard UID or URL",
"type": "string",
"default": "",
"description": "Unique alphabetic identifier or URL of the dashboard to delete",
"placeholder": "cIBgcSjkk",
"required": true,
"displayOptions": {
"show": {
"resource": [
"dashboard"
],
"operation": [
"delete"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"resource": [
"dashboard"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 50,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 100
},
"displayOptions": {
"show": {
"resource": [
"dashboard"
],
"operation": [
"getAll"
],
"returnAll": [
false
]
}
}
},
{
"name": "filters",
"displayName": "Filters",
"type": "collection",
"default": {},
"placeholder": "Add Filter",
"options": [
{
"name": "query",
"displayName": "Search Query",
"type": "string",
"default": ""
}
],
"displayOptions": {
"show": {
"resource": [
"dashboard"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "Folder to move the dashboard into - if the folder is unspecified, the dashboard will be saved to the General folder. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add Field",
"options": [
{
"name": "folderId",
"displayName": "Folder Name or ID",
"type": "options",
"default": "",
"description": "Folder to move the dashboard into - if the folder is unspecified, the dashboard will be saved to the General folder. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "title",
"displayName": "Title",
"type": "string",
"default": "",
"description": "New title of the dashboard"
}
],
"displayOptions": {
"show": {
"resource": [
"dashboard"
],
"operation": [
"update"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create a dashboard",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create a dashboard"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete a dashboard"
},
{
"name": "Get",
"value": "get",
"description": "Get a dashboard"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many dashboards"
},
{
"name": "Update",
"value": "update",
"description": "Update a dashboard"
}
],
"displayOptions": {
"show": {
"resource": [
"dashboard"
]
}
}
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "Name of the team to create",
"placeholder": "Engineering",
"required": true,
"displayOptions": {
"show": {
"resource": [
"team"
],
"operation": [
"create"
]
}
}
},
{
"name": "teamId",
"displayName": "Team ID",
"type": "string",
"default": "",
"description": "ID of the team to delete",
"required": true,
"displayOptions": {
"show": {
"resource": [
"team"
],
"operation": [
"delete"
]
}
}
},
{
"name": "userId",
"displayName": "User Name or ID",
"type": "options",
"default": "",
"description": "User to add to a team. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"teamMember"
],
"operation": [
"add"
]
}
}
},
{
"name": "memberId",
"displayName": "User Name or ID",
"type": "options",
"default": "",
"description": "User to remove from the team. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"teamMember"
],
"operation": [
"remove"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "dashboard",
"options": [
{
"name": "Dashboard",
"value": "dashboard"
},
{
"name": "Team",
"value": "team"
},
{
"name": "Team Member",
"value": "teamMember"
},
{
"name": "User",
"value": "user"
}
]
}
],
"credentialsConfig": [
{
"name": "grafanaApi",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}