Skip to content

Commit 95d7cd8

Browse files
Update cloud-rules-api.mdx
Give us some context What problems does this PR solve? This PR provides public documentation for updating existing Pipeline Cloud Rules via the NerdGraph API. Previously, there was no official guidance on how users could modify their existing cloud rules programmatically. This could resolve the gap for users who needed to adjust their data filtering rules over time (e.g., change the NRQL, description, or name) without having to delete and recreate them. Add any context that will help us review your changes such as testing notes, links to related docs, screenshots, etc. This new documentation enables users to manage their Pipeline Cloud Rules more flexibly. The update functionality was recently enhanced to ensure that all rule properties are correctly updated in the backend when the NRQL changes. This means users can now reliably modify their rules to adapt to evolving data ingestion needs. Below is the screenshot of the working endpoint that we tested out on internal-api for NerdGraph. For more ref: #21455
1 parent 1d2b4e8 commit 95d7cd8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/content/docs/new-relic-control/pipeline-control/cloud-rules-api.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,30 @@ mutation {
314314
}
315315
}
316316
```
317+
318+
## Update cloud rules [#update-rules]
319+
320+
```graphql
321+
mutation UpdatePipelineCloudRule {
322+
updatePipelineCloudRule(
323+
id: "MTAyNTY1MHxOR0VQfFBJUEVMSU5FX0NMT1VEX1JVTEV8MDE5ODgwOTUtMmZjNC03MTQ3LTkxMjQtZDk3YjhiY2Y4NGNj", # Replace with your rule's actual entity ID
324+
pipelineCloudRuleEntity: {
325+
description: "Since we do not need dropAttr1 ingested we would drop this attribuute instead of dropAttr1 ",
326+
name: "Update the name for Dropping dropAttr2 from MyEventToDrop",
327+
nrql: "DELETE dropAttr2 FROM MyEventToDrop"
328+
}
329+
) {
330+
entity {
331+
id
332+
type
333+
name
334+
description
335+
nrql
336+
}
337+
}
338+
}
339+
```
340+
317341
## Delete a cloud rule [#delete-rule]
318342

319343
```graphql

0 commit comments

Comments
 (0)