API Stability |
Long-Term
|
The updateOpsGenieAction() GraphQL mutation is used to update an OpsGenie action in LogScale.
For more information on OpsGenie actions, see the Action Type: OpsGenie documentation page. You may also want to look at the Actions page for related information.
Syntax
Below is the syntax for the updateOpsGenieAction() mutation field:
updateOpsGenieAction(
input: UpdateOpsGenieAction!
): OpsGenieAction!
Below is an example of how this mutation field might be used:
mutation {
updateOpsGenieAction( input:
{ viewName: "humio",
id: "abc123",
name: "act-now",
apiUrl: "https://opsgenie.company.com",
genieKey: "def456",
useProxy: false
}
)
{ id }
}
{
"data": {
"updateOpsGenieAction": {
"id": "abc123"
}
}
}
Given Datatypes
For UpdateOpsGenieAction, there are a few parameters that may be given. Below is a list of them along with a description of each:
Table: UpdateOpsGenieAction
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Sep 23, 2024 | |||||
apiUrl | string | yes | Long-Term | The OpsGenie webhook URL where to send the request. | |
genieKey | string | yes | Long-Term | The key to authenticate with OpsGenie. | |
id | string | yes | Long-Term | The unique identifier of the action. | |
name | string | yes | Long-Term | The name of the action. | |
useProxy | boolean | yes | Long-Term | Defines whether the action should use the configured proxy to make web requests. | |
viewName | string | yes | Long-Term | The name of the view of the action. |
Returned Datatypes
The returned datatype OpsGenieAction has several parameters. Below is a list of them along with a description of each:
Table: OpsGenieAction
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Mar 26, 2025 | |||||
allowedActions | [AssetAction ] | yes | Preview | The allowed asset actions. See AssetAction . This is a preview and subject to change. | |
apiUrl | string | yes | Long-Term | OpsGenie webhook url to send the request to. | |
displayName | string | yes | Long-Term | The display name of the action. | |
genieKey | string | yes | Long-Term | Key to authenticate with OpsGenie. | |
id | string | yes | Long-Term | The unique identifier of the action. | |
isAllowedToRun | boolean | yes | Long-Term | Whether the action is enabled. | |
name | string | yes | Long-Term | The name of the action. | |
package | PackageInstallation | Long-Term | The package, if any, of which the action is part. See PackageInstallation . | ||
requiresOrganizationOwnedQueriesPermissionToEdit | boolean | yes | Long-Term | True if this action is used by triggers, where the query is run by the organization. The OrganizationOwnedQueries permission is required to edit the action. | |
resource | string | yes | Short-Term | The resource identifier for the action. | |
useProxy | boolean | yes | Long-Term | Defines whether the action should use the configured proxy to make web requests. | |
yamlTemplate | yaml | yes | Long-Term | A template that can be used to recreate the action. |