1. Registry
  2. Packages
  3. Newrelic Provider
  4. API Docs
  5. Scorecard
Viewing docs for New Relic v5.80.4
published on Tuesday, Oct 27, 2026 by Pulumi
newrelic logo newrelic logo
Viewing docs for New Relic v5.80.4
published on Tuesday, Oct 27, 2026 by Pulumi

    Use this resource to create, update, and delete New Relic Scorecards.

    Scorecards let you define and track engineering quality standards across your organisation by grouping NRQL-based rules that evaluate your entities on a recurring schedule.

    NOTE: Rules are managed as separate newrelic.ScorecardRule resources and attached via the ruleIds attribute. Each rule can only belong to one scorecard at a time. Attempting to attach a rule that is already assigned to another scorecard will fail. Remove the rule from its current scorecard first.

    NOTE: To assign a rule to a specific progress tier, set progressLevel on the newrelic.ScorecardRule to match one of the id values declared in this scorecard’s progressLevels block (e.g. progressLevel = "red"). See the Progress Level Relationship example in the rule documentation for a full walkthrough.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const alertCoverage = new newrelic.ScorecardRule("alert_coverage", {
        name: "APM alert coverage",
        enabled: true,
        runInterval: 1440,
        nrqlEngine: {
            accounts: [accountId],
            query: "SELECT if(latest(alertSeverity) != 'NOT_CONFIGURED', 1, 0) AS 'score' FROM Entity WHERE type = 'APM-APPLICATION' FACET id LIMIT MAX SINCE 1 day ago",
        },
    });
    const engineering = new newrelic.Scorecard("engineering", {
        name: "Engineering Quality",
        description: "Tracks key observability standards across all APM services",
        tags: [{
            key: "team",
            values: ["platform"],
        }],
        progressLevels: [
            {
                id: "red",
                name: "Needs Work",
                description: "Score below 60%",
                hexColorCode: "#FF4444",
            },
            {
                id: "amber",
                name: "Improving",
                description: "Score 60–80%",
                hexColorCode: "#FFAA00",
            },
            {
                id: "green",
                name: "Healthy",
                description: "Score above 80%",
                hexColorCode: "#00CC44",
            },
        ],
        ruleIds: [alertCoverage.id],
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    alert_coverage = newrelic.ScorecardRule("alert_coverage",
        name="APM alert coverage",
        enabled=True,
        run_interval=1440,
        nrql_engine={
            "accounts": [account_id],
            "query": "SELECT if(latest(alertSeverity) != 'NOT_CONFIGURED', 1, 0) AS 'score' FROM Entity WHERE type = 'APM-APPLICATION' FACET id LIMIT MAX SINCE 1 day ago",
        })
    engineering = newrelic.Scorecard("engineering",
        name="Engineering Quality",
        description="Tracks key observability standards across all APM services",
        tags=[{
            "key": "team",
            "values": ["platform"],
        }],
        progress_levels=[
            {
                "id": "red",
                "name": "Needs Work",
                "description": "Score below 60%",
                "hex_color_code": "#FF4444",
            },
            {
                "id": "amber",
                "name": "Improving",
                "description": "Score 60–80%",
                "hex_color_code": "#FFAA00",
            },
            {
                "id": "green",
                "name": "Healthy",
                "description": "Score above 80%",
                "hex_color_code": "#00CC44",
            },
        ],
        rule_ids=[alert_coverage.id])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		alertCoverage, err := newrelic.NewScorecardRule(ctx, "alert_coverage", &newrelic.ScorecardRuleArgs{
    			Name:        pulumi.String("APM alert coverage"),
    			Enabled:     pulumi.Bool(true),
    			RunInterval: pulumi.Int(1440),
    			NrqlEngine: &newrelic.ScorecardRuleNrqlEngineArgs{
    				Accounts: pulumi.IntArray{
    					accountId,
    				},
    				Query: pulumi.String("SELECT if(latest(alertSeverity) != 'NOT_CONFIGURED', 1, 0) AS 'score' FROM Entity WHERE type = 'APM-APPLICATION' FACET id LIMIT MAX SINCE 1 day ago"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = newrelic.NewScorecard(ctx, "engineering", &newrelic.ScorecardArgs{
    			Name:        pulumi.String("Engineering Quality"),
    			Description: pulumi.String("Tracks key observability standards across all APM services"),
    			Tags: newrelic.ScorecardTagArray{
    				&newrelic.ScorecardTagArgs{
    					Key: pulumi.String("team"),
    					Values: pulumi.StringArray{
    						pulumi.String("platform"),
    					},
    				},
    			},
    			ProgressLevels: newrelic.ScorecardProgressLevelArray{
    				&newrelic.ScorecardProgressLevelArgs{
    					Id:           pulumi.String("red"),
    					Name:         pulumi.String("Needs Work"),
    					Description:  pulumi.String("Score below 60%"),
    					HexColorCode: pulumi.String("#FF4444"),
    				},
    				&newrelic.ScorecardProgressLevelArgs{
    					Id:           pulumi.String("amber"),
    					Name:         pulumi.String("Improving"),
    					Description:  pulumi.String("Score 60–80%"),
    					HexColorCode: pulumi.String("#FFAA00"),
    				},
    				&newrelic.ScorecardProgressLevelArgs{
    					Id:           pulumi.String("green"),
    					Name:         pulumi.String("Healthy"),
    					Description:  pulumi.String("Score above 80%"),
    					HexColorCode: pulumi.String("#00CC44"),
    				},
    			},
    			RuleIds: pulumi.StringArray{
    				alertCoverage.ID().ToIDOutput().ToStringOutput(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var alertCoverage = new NewRelic.ScorecardRule("alert_coverage", new()
        {
            Name = "APM alert coverage",
            Enabled = true,
            RunInterval = 1440,
            NrqlEngine = new NewRelic.Inputs.ScorecardRuleNrqlEngineArgs
            {
                Accounts = new[]
                {
                    accountId,
                },
                Query = "SELECT if(latest(alertSeverity) != 'NOT_CONFIGURED', 1, 0) AS 'score' FROM Entity WHERE type = 'APM-APPLICATION' FACET id LIMIT MAX SINCE 1 day ago",
            },
        });
    
        var engineering = new NewRelic.Scorecard("engineering", new()
        {
            Name = "Engineering Quality",
            Description = "Tracks key observability standards across all APM services",
            Tags = new[]
            {
                new NewRelic.Inputs.ScorecardTagArgs
                {
                    Key = "team",
                    Values = new[]
                    {
                        "platform",
                    },
                },
            },
            ProgressLevels = new[]
            {
                new NewRelic.Inputs.ScorecardProgressLevelArgs
                {
                    Id = "red",
                    Name = "Needs Work",
                    Description = "Score below 60%",
                    HexColorCode = "#FF4444",
                },
                new NewRelic.Inputs.ScorecardProgressLevelArgs
                {
                    Id = "amber",
                    Name = "Improving",
                    Description = "Score 60–80%",
                    HexColorCode = "#FFAA00",
                },
                new NewRelic.Inputs.ScorecardProgressLevelArgs
                {
                    Id = "green",
                    Name = "Healthy",
                    Description = "Score above 80%",
                    HexColorCode = "#00CC44",
                },
            },
            RuleIds = new[]
            {
                alertCoverage.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.ScorecardRule;
    import com.pulumi.newrelic.ScorecardRuleArgs;
    import com.pulumi.newrelic.inputs.ScorecardRuleNrqlEngineArgs;
    import com.pulumi.newrelic.Scorecard;
    import com.pulumi.newrelic.ScorecardArgs;
    import com.pulumi.newrelic.inputs.ScorecardTagArgs;
    import com.pulumi.newrelic.inputs.ScorecardProgressLevelArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertCoverage = new ScorecardRule("alertCoverage", ScorecardRuleArgs.builder()
                .name("APM alert coverage")
                .enabled(true)
                .runInterval(1440)
                .nrqlEngine(ScorecardRuleNrqlEngineArgs.builder()
                    .accounts(accountId)
                    .query("SELECT if(latest(alertSeverity) != 'NOT_CONFIGURED', 1, 0) AS 'score' FROM Entity WHERE type = 'APM-APPLICATION' FACET id LIMIT MAX SINCE 1 day ago")
                    .build())
                .build());
    
            var engineering = new Scorecard("engineering", ScorecardArgs.builder()
                .name("Engineering Quality")
                .description("Tracks key observability standards across all APM services")
                .tags(ScorecardTagArgs.builder()
                    .key("team")
                    .values("platform")
                    .build())
                .progressLevels(            
                    ScorecardProgressLevelArgs.builder()
                        .id("red")
                        .name("Needs Work")
                        .description("Score below 60%")
                        .hexColorCode("#FF4444")
                        .build(),
                    ScorecardProgressLevelArgs.builder()
                        .id("amber")
                        .name("Improving")
                        .description("Score 60–80%")
                        .hexColorCode("#FFAA00")
                        .build(),
                    ScorecardProgressLevelArgs.builder()
                        .id("green")
                        .name("Healthy")
                        .description("Score above 80%")
                        .hexColorCode("#00CC44")
                        .build())
                .ruleIds(alertCoverage.id())
                .build());
    
        }
    }
    
    resources:
      alertCoverage:
        type: newrelic:ScorecardRule
        name: alert_coverage
        properties:
          name: APM alert coverage
          enabled: true
          runInterval: 1440
          nrqlEngine:
            accounts:
              - ${accountId}
            query: SELECT if(latest(alertSeverity) != 'NOT_CONFIGURED', 1, 0) AS 'score' FROM Entity WHERE type = 'APM-APPLICATION' FACET id LIMIT MAX SINCE 1 day ago
      engineering:
        type: newrelic:Scorecard
        properties:
          name: Engineering Quality
          description: Tracks key observability standards across all APM services
          tags:
            - key: team
              values:
                - platform
          progressLevels:
            - id: red
              name: Needs Work
              description: Score below 60%
              hexColorCode: '#FF4444'
            - id: amber
              name: Improving
              description: Score 60–80%
              hexColorCode: '#FFAA00'
            - id: green
              name: Healthy
              description: Score above 80%
              hexColorCode: '#00CC44'
          ruleIds:
            - ${alertCoverage.id}
    
    terraform {
      required_providers {
        newrelic = {
          source = "pulumi/newrelic"
        }
      }
    }
    
    resource "newrelic_scorecard_rule" "alert_coverage" {
      lifecycle {
        create_before_destroy = true
      }
      name         = "APM alert coverage"
      enabled      = true
      run_interval = 1440
      nrql_engine = {
        accounts = [accountId]
        query    = "SELECT if(latest(alertSeverity) != 'NOT_CONFIGURED', 1, 0) AS 'score' FROM Entity WHERE type = 'APM-APPLICATION' FACET id LIMIT MAX SINCE 1 day ago"
      }
    }
    resource "newrelic_scorecard" "engineering" {
      lifecycle {
        create_before_destroy = true
      }
      name        = "Engineering Quality"
      description = "Tracks key observability standards across all APM services"
      tags {
        key    = "team"
        values = ["platform"]
      }
      progress_levels {
        id             = "red"
        name           = "Needs Work"
        description    = "Score below 60%"
        hex_color_code = "#FF4444"
      }
      progress_levels {
        id             = "amber"
        name           = "Improving"
        description    = "Score 60–80%"
        hex_color_code = "#FFAA00"
      }
      progress_levels {
        id             = "green"
        name           = "Healthy"
        description    = "Score above 80%"
        hex_color_code = "#00CC44"
      }
      rule_ids = [newrelic_scorecard_rule.alert_coverage.id]
    }
    

    See additional examples below.

    Additional Examples

    Scorecard with no custom progress levels

    When progressLevels is omitted, the organisation’s default levels are applied automatically.

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const minimal = new newrelic.Scorecard("minimal", {
        name: "Service Health Check",
        ruleIds: [alertCoverage.id],
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    minimal = newrelic.Scorecard("minimal",
        name="Service Health Check",
        rule_ids=[alert_coverage["id"]])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewScorecard(ctx, "minimal", &newrelic.ScorecardArgs{
    			Name: pulumi.String("Service Health Check"),
    			RuleIds: pulumi.StringArray{
    				alertCoverage.Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var minimal = new NewRelic.Scorecard("minimal", new()
        {
            Name = "Service Health Check",
            RuleIds = new[]
            {
                alertCoverage.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.Scorecard;
    import com.pulumi.newrelic.ScorecardArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var minimal = new Scorecard("minimal", ScorecardArgs.builder()
                .name("Service Health Check")
                .ruleIds(alertCoverage.get("id"))
                .build());
    
        }
    }
    
    resources:
      minimal:
        type: newrelic:Scorecard
        properties:
          name: Service Health Check
          ruleIds:
            - ${alertCoverage.id}
    
    terraform {
      required_providers {
        newrelic = {
          source = "pulumi/newrelic"
        }
      }
    }
    
    resource "newrelic_scorecard" "minimal" {
      lifecycle {
        create_before_destroy = true
      }
      name     = "Service Health Check"
      rule_ids = [alertCoverage.id]
    }
    

    Scorecard with multiple rules

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const platformStandards = new newrelic.Scorecard("platform_standards", {
        name: "Platform Standards",
        tags: [{
            key: "team",
            values: ["platform"],
        }],
        ruleIds: [
            alertCoverage.id,
            latencyThreshold.id,
            errorRate.id,
        ],
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    platform_standards = newrelic.Scorecard("platform_standards",
        name="Platform Standards",
        tags=[{
            "key": "team",
            "values": ["platform"],
        }],
        rule_ids=[
            alert_coverage["id"],
            latency_threshold["id"],
            error_rate["id"],
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewScorecard(ctx, "platform_standards", &newrelic.ScorecardArgs{
    			Name: pulumi.String("Platform Standards"),
    			Tags: newrelic.ScorecardTagArray{
    				&newrelic.ScorecardTagArgs{
    					Key: pulumi.String("team"),
    					Values: pulumi.StringArray{
    						pulumi.String("platform"),
    					},
    				},
    			},
    			RuleIds: pulumi.StringArray{
    				alertCoverage.Id,
    				latencyThreshold.Id,
    				errorRate.Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var platformStandards = new NewRelic.Scorecard("platform_standards", new()
        {
            Name = "Platform Standards",
            Tags = new[]
            {
                new NewRelic.Inputs.ScorecardTagArgs
                {
                    Key = "team",
                    Values = new[]
                    {
                        "platform",
                    },
                },
            },
            RuleIds = new[]
            {
                alertCoverage.Id,
                latencyThreshold.Id,
                errorRate.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.Scorecard;
    import com.pulumi.newrelic.ScorecardArgs;
    import com.pulumi.newrelic.inputs.ScorecardTagArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var platformStandards = new Scorecard("platformStandards", ScorecardArgs.builder()
                .name("Platform Standards")
                .tags(ScorecardTagArgs.builder()
                    .key("team")
                    .values("platform")
                    .build())
                .ruleIds(            
                    alertCoverage.get("id"),
                    latencyThreshold.get("id"),
                    errorRate.get("id"))
                .build());
    
        }
    }
    
    resources:
      platformStandards:
        type: newrelic:Scorecard
        name: platform_standards
        properties:
          name: Platform Standards
          tags:
            - key: team
              values:
                - platform
          ruleIds:
            - ${alertCoverage.id}
            - ${latencyThreshold.id}
            - ${errorRate.id}
    
    terraform {
      required_providers {
        newrelic = {
          source = "pulumi/newrelic"
        }
      }
    }
    
    resource "newrelic_scorecard" "platform_standards" {
      lifecycle {
        create_before_destroy = true
      }
      name = "Platform Standards"
      tags {
        key    = "team"
        values = ["platform"]
      }
      rule_ids = [alertCoverage.id, latencyThreshold.id, errorRate.id]
    }
    

    Custom Bronze / Silver / Gold tiers

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const engineering = new newrelic.Scorecard("engineering", {
        name: "Engineering Standards",
        progressLevels: [
            {
                id: "bronze",
                name: "Bronze",
                description: "Baseline requirements met",
                hexColorCode: "#CD7F32",
            },
            {
                id: "silver",
                name: "Silver",
                description: "Strong operational posture",
                hexColorCode: "#C0C0C0",
            },
            {
                id: "gold",
                name: "Gold",
                description: "Exemplary reliability and observability",
                hexColorCode: "#FFD700",
            },
        ],
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    engineering = newrelic.Scorecard("engineering",
        name="Engineering Standards",
        progress_levels=[
            {
                "id": "bronze",
                "name": "Bronze",
                "description": "Baseline requirements met",
                "hex_color_code": "#CD7F32",
            },
            {
                "id": "silver",
                "name": "Silver",
                "description": "Strong operational posture",
                "hex_color_code": "#C0C0C0",
            },
            {
                "id": "gold",
                "name": "Gold",
                "description": "Exemplary reliability and observability",
                "hex_color_code": "#FFD700",
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewScorecard(ctx, "engineering", &newrelic.ScorecardArgs{
    			Name: pulumi.String("Engineering Standards"),
    			ProgressLevels: newrelic.ScorecardProgressLevelArray{
    				&newrelic.ScorecardProgressLevelArgs{
    					Id:           pulumi.String("bronze"),
    					Name:         pulumi.String("Bronze"),
    					Description:  pulumi.String("Baseline requirements met"),
    					HexColorCode: pulumi.String("#CD7F32"),
    				},
    				&newrelic.ScorecardProgressLevelArgs{
    					Id:           pulumi.String("silver"),
    					Name:         pulumi.String("Silver"),
    					Description:  pulumi.String("Strong operational posture"),
    					HexColorCode: pulumi.String("#C0C0C0"),
    				},
    				&newrelic.ScorecardProgressLevelArgs{
    					Id:           pulumi.String("gold"),
    					Name:         pulumi.String("Gold"),
    					Description:  pulumi.String("Exemplary reliability and observability"),
    					HexColorCode: pulumi.String("#FFD700"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var engineering = new NewRelic.Scorecard("engineering", new()
        {
            Name = "Engineering Standards",
            ProgressLevels = new[]
            {
                new NewRelic.Inputs.ScorecardProgressLevelArgs
                {
                    Id = "bronze",
                    Name = "Bronze",
                    Description = "Baseline requirements met",
                    HexColorCode = "#CD7F32",
                },
                new NewRelic.Inputs.ScorecardProgressLevelArgs
                {
                    Id = "silver",
                    Name = "Silver",
                    Description = "Strong operational posture",
                    HexColorCode = "#C0C0C0",
                },
                new NewRelic.Inputs.ScorecardProgressLevelArgs
                {
                    Id = "gold",
                    Name = "Gold",
                    Description = "Exemplary reliability and observability",
                    HexColorCode = "#FFD700",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.Scorecard;
    import com.pulumi.newrelic.ScorecardArgs;
    import com.pulumi.newrelic.inputs.ScorecardProgressLevelArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var engineering = new Scorecard("engineering", ScorecardArgs.builder()
                .name("Engineering Standards")
                .progressLevels(            
                    ScorecardProgressLevelArgs.builder()
                        .id("bronze")
                        .name("Bronze")
                        .description("Baseline requirements met")
                        .hexColorCode("#CD7F32")
                        .build(),
                    ScorecardProgressLevelArgs.builder()
                        .id("silver")
                        .name("Silver")
                        .description("Strong operational posture")
                        .hexColorCode("#C0C0C0")
                        .build(),
                    ScorecardProgressLevelArgs.builder()
                        .id("gold")
                        .name("Gold")
                        .description("Exemplary reliability and observability")
                        .hexColorCode("#FFD700")
                        .build())
                .build());
    
        }
    }
    
    resources:
      engineering:
        type: newrelic:Scorecard
        properties:
          name: Engineering Standards
          progressLevels:
            - id: bronze
              name: Bronze
              description: Baseline requirements met
              hexColorCode: '#CD7F32'
            - id: silver
              name: Silver
              description: Strong operational posture
              hexColorCode: '#C0C0C0'
            - id: gold
              name: Gold
              description: Exemplary reliability and observability
              hexColorCode: '#FFD700'
    
    terraform {
      required_providers {
        newrelic = {
          source = "pulumi/newrelic"
        }
      }
    }
    
    resource "newrelic_scorecard" "engineering" {
      lifecycle {
        create_before_destroy = true
      }
      name = "Engineering Standards"
      progress_levels {
        id             = "bronze"
        name           = "Bronze"
        description    = "Baseline requirements met"
        hex_color_code = "#CD7F32"
      }
      progress_levels {
        id             = "silver"
        name           = "Silver"
        description    = "Strong operational posture"
        hex_color_code = "#C0C0C0"
      }
      progress_levels {
        id             = "gold"
        name           = "Gold"
        description    = "Exemplary reliability and observability"
        hex_color_code = "#FFD700"
      }
    }
    

    Create Scorecard Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Scorecard(name: string, args?: ScorecardArgs, opts?: CustomResourceOptions);
    @overload
    def Scorecard(resource_name: str,
                  args: Optional[ScorecardArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Scorecard(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  name: Optional[str] = None,
                  progress_levels: Optional[Sequence[ScorecardProgressLevelArgs]] = None,
                  rule_ids: Optional[Sequence[str]] = None,
                  tags: Optional[Sequence[ScorecardTagArgs]] = None)
    func NewScorecard(ctx *Context, name string, args *ScorecardArgs, opts ...ResourceOption) (*Scorecard, error)
    public Scorecard(string name, ScorecardArgs? args = null, CustomResourceOptions? opts = null)
    public Scorecard(String name, ScorecardArgs args)
    public Scorecard(String name, ScorecardArgs args, CustomResourceOptions options)
    
    type: newrelic:Scorecard
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "newrelic_scorecard" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ScorecardArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ScorecardArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ScorecardArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScorecardArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScorecardArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var scorecardResource = new NewRelic.Scorecard("scorecardResource", new()
    {
        Description = "string",
        Name = "string",
        ProgressLevels = new[]
        {
            new NewRelic.Inputs.ScorecardProgressLevelArgs
            {
                Id = "string",
                Name = "string",
                Description = "string",
                HexColorCode = "string",
            },
        },
        RuleIds = new[]
        {
            "string",
        },
        Tags = new[]
        {
            new NewRelic.Inputs.ScorecardTagArgs
            {
                Key = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
    });
    
    example, err := newrelic.NewScorecard(ctx, "scorecardResource", &newrelic.ScorecardArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	ProgressLevels: newrelic.ScorecardProgressLevelArray{
    		&newrelic.ScorecardProgressLevelArgs{
    			Id:           pulumi.String("string"),
    			Name:         pulumi.String("string"),
    			Description:  pulumi.String("string"),
    			HexColorCode: pulumi.String("string"),
    		},
    	},
    	RuleIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Tags: newrelic.ScorecardTagArray{
    		&newrelic.ScorecardTagArgs{
    			Key: pulumi.String("string"),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    })
    
    resource "newrelic_scorecard" "scorecardResource" {
      lifecycle {
        create_before_destroy = true
      }
      description = "string"
      name        = "string"
      progress_levels {
        id             = "string"
        name           = "string"
        description    = "string"
        hex_color_code = "string"
      }
      rule_ids = ["string"]
      tags {
        key    = "string"
        values = ["string"]
      }
    }
    
    var scorecardResource = new Scorecard("scorecardResource", ScorecardArgs.builder()
        .description("string")
        .name("string")
        .progressLevels(ScorecardProgressLevelArgs.builder()
            .id("string")
            .name("string")
            .description("string")
            .hexColorCode("string")
            .build())
        .ruleIds("string")
        .tags(ScorecardTagArgs.builder()
            .key("string")
            .values("string")
            .build())
        .build());
    
    scorecard_resource = newrelic.Scorecard("scorecardResource",
        description="string",
        name="string",
        progress_levels=[{
            "id": "string",
            "name": "string",
            "description": "string",
            "hex_color_code": "string",
        }],
        rule_ids=["string"],
        tags=[{
            "key": "string",
            "values": ["string"],
        }])
    
    const scorecardResource = new newrelic.Scorecard("scorecardResource", {
        description: "string",
        name: "string",
        progressLevels: [{
            id: "string",
            name: "string",
            description: "string",
            hexColorCode: "string",
        }],
        ruleIds: ["string"],
        tags: [{
            key: "string",
            values: ["string"],
        }],
    });
    
    type: newrelic:Scorecard
    properties:
        description: string
        name: string
        progressLevels:
            - description: string
              hexColorCode: string
              id: string
              name: string
        ruleIds:
            - string
        tags:
            - key: string
              values:
                - string
    

    Scorecard Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Scorecard resource accepts the following input properties:

    Description string
    A description of the scorecard's purpose.
    Name string
    The name of the scorecard.
    ProgressLevels List<Pulumi.NewRelic.Inputs.ScorecardProgressLevel>
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    RuleIds List<string>
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    Tags List<Pulumi.NewRelic.Inputs.ScorecardTag>
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    Description string
    A description of the scorecard's purpose.
    Name string
    The name of the scorecard.
    ProgressLevels []ScorecardProgressLevelArgs
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    RuleIds []string
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    Tags []ScorecardTagArgs
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description string
    A description of the scorecard's purpose.
    name string
    The name of the scorecard.
    progress_levels list(object)
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    rule_ids list(string)
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    tags list(object)
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description String
    A description of the scorecard's purpose.
    name String
    The name of the scorecard.
    progressLevels List<ScorecardProgressLevel>
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    ruleIds List<String>
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    tags List<ScorecardTag>
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description string
    A description of the scorecard's purpose.
    name string
    The name of the scorecard.
    progressLevels ScorecardProgressLevel[]
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    ruleIds string[]
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    tags ScorecardTag[]
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description str
    A description of the scorecard's purpose.
    name str
    The name of the scorecard.
    progress_levels Sequence[ScorecardProgressLevelArgs]
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    rule_ids Sequence[str]
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    tags Sequence[ScorecardTagArgs]
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description String
    A description of the scorecard's purpose.
    name String
    The name of the scorecard.
    progressLevels List<Property Map>
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    ruleIds List<String>
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    tags List<Property Map>
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Scorecard resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The organisation UUID, resolved automatically from the provider account.
    RulesCollectionId string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The organisation UUID, resolved automatically from the provider account.
    RulesCollectionId string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    id string
    The provider-assigned unique ID for this managed resource.
    organization_id string
    The organisation UUID, resolved automatically from the provider account.
    rules_collection_id string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The organisation UUID, resolved automatically from the provider account.
    rulesCollectionId String
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    The organisation UUID, resolved automatically from the provider account.
    rulesCollectionId string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id str
    The organisation UUID, resolved automatically from the provider account.
    rules_collection_id str
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The organisation UUID, resolved automatically from the provider account.
    rulesCollectionId String
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.

    Look up Existing Scorecard Resource

    Get an existing Scorecard resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ScorecardState, opts?: CustomResourceOptions): Scorecard
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            progress_levels: Optional[Sequence[ScorecardProgressLevelArgs]] = None,
            rule_ids: Optional[Sequence[str]] = None,
            rules_collection_id: Optional[str] = None,
            tags: Optional[Sequence[ScorecardTagArgs]] = None) -> Scorecard
    func GetScorecard(ctx *Context, name string, id IDInput, state *ScorecardState, opts ...ResourceOption) (*Scorecard, error)
    public static Scorecard Get(string name, Input<string> id, ScorecardState? state, CustomResourceOptions? opts = null)
    public static Scorecard get(String name, Output<String> id, ScorecardState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:Scorecard    get:      id: ${id}
    import {
      to = newrelic_scorecard.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    A description of the scorecard's purpose.
    Name string
    The name of the scorecard.
    OrganizationId string
    The organisation UUID, resolved automatically from the provider account.
    ProgressLevels List<Pulumi.NewRelic.Inputs.ScorecardProgressLevel>
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    RuleIds List<string>
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    RulesCollectionId string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    Tags List<Pulumi.NewRelic.Inputs.ScorecardTag>
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    Description string
    A description of the scorecard's purpose.
    Name string
    The name of the scorecard.
    OrganizationId string
    The organisation UUID, resolved automatically from the provider account.
    ProgressLevels []ScorecardProgressLevelArgs
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    RuleIds []string
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    RulesCollectionId string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    Tags []ScorecardTagArgs
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description string
    A description of the scorecard's purpose.
    name string
    The name of the scorecard.
    organization_id string
    The organisation UUID, resolved automatically from the provider account.
    progress_levels list(object)
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    rule_ids list(string)
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    rules_collection_id string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    tags list(object)
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description String
    A description of the scorecard's purpose.
    name String
    The name of the scorecard.
    organizationId String
    The organisation UUID, resolved automatically from the provider account.
    progressLevels List<ScorecardProgressLevel>
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    ruleIds List<String>
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    rulesCollectionId String
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    tags List<ScorecardTag>
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description string
    A description of the scorecard's purpose.
    name string
    The name of the scorecard.
    organizationId string
    The organisation UUID, resolved automatically from the provider account.
    progressLevels ScorecardProgressLevel[]
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    ruleIds string[]
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    rulesCollectionId string
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    tags ScorecardTag[]
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description str
    A description of the scorecard's purpose.
    name str
    The name of the scorecard.
    organization_id str
    The organisation UUID, resolved automatically from the provider account.
    progress_levels Sequence[ScorecardProgressLevelArgs]
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    rule_ids Sequence[str]
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    rules_collection_id str
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    tags Sequence[ScorecardTagArgs]
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:
    description String
    A description of the scorecard's purpose.
    name String
    The name of the scorecard.
    organizationId String
    The organisation UUID, resolved automatically from the provider account.
    progressLevels List<Property Map>
    One or more blocks defining the scorecard's scoring tiers (e.g. Red / Amber / Green). Levels can be added, updated, or removed in-place without recreating the scorecard. If omitted, the organisation's default levels are applied and stored in state. See Nested progressLevels blocks below.
    ruleIds List<String>
    A set of newrelic.ScorecardRule entity GUIDs to attach to this scorecard. Removing a GUID detaches the rule without deleting it, making it available for another scorecard.
    rulesCollectionId String
    The GUID of the auto-created rules collection. Managed by the provider via ruleIds; do not modify directly.
    tags List<Property Map>
    One or more tags blocks assigning key-value metadata to this scorecard. Tags prefixed with nr. are managed by New Relic and are preserved automatically. Each block supports:

    Supporting Types

    ScorecardProgressLevel, ScorecardProgressLevelArgs

    Id string
    The entity GUID of the scorecard.
    Name string
    The name of the scorecard.
    Description string
    A description of the scorecard's purpose.
    HexColorCode string
    Hex colour for this level, e.g. '#FF0000'.
    Id string
    The entity GUID of the scorecard.
    Name string
    The name of the scorecard.
    Description string
    A description of the scorecard's purpose.
    HexColorCode string
    Hex colour for this level, e.g. '#FF0000'.
    id string
    The entity GUID of the scorecard.
    name string
    The name of the scorecard.
    description string
    A description of the scorecard's purpose.
    hex_color_code string
    Hex colour for this level, e.g. '#FF0000'.
    id String
    The entity GUID of the scorecard.
    name String
    The name of the scorecard.
    description String
    A description of the scorecard's purpose.
    hexColorCode String
    Hex colour for this level, e.g. '#FF0000'.
    id string
    The entity GUID of the scorecard.
    name string
    The name of the scorecard.
    description string
    A description of the scorecard's purpose.
    hexColorCode string
    Hex colour for this level, e.g. '#FF0000'.
    id str
    The entity GUID of the scorecard.
    name str
    The name of the scorecard.
    description str
    A description of the scorecard's purpose.
    hex_color_code str
    Hex colour for this level, e.g. '#FF0000'.
    id String
    The entity GUID of the scorecard.
    name String
    The name of the scorecard.
    description String
    A description of the scorecard's purpose.
    hexColorCode String
    Hex colour for this level, e.g. '#FF0000'.

    ScorecardTag, ScorecardTagArgs

    Key string
    The tag key.
    Values List<string>
    One or more tag values.
    Key string
    The tag key.
    Values []string
    One or more tag values.
    key string
    The tag key.
    values list(string)
    One or more tag values.
    key String
    The tag key.
    values List<String>
    One or more tag values.
    key string
    The tag key.
    values string[]
    One or more tag values.
    key str
    The tag key.
    values Sequence[str]
    One or more tag values.
    key String
    The tag key.
    values List<String>
    One or more tag values.

    Import

    Scorecards can be imported using the entity GUID:

    $ pulumi import newrelic:index/scorecard:Scorecard example <guid>
    

    To find a scorecard’s GUID, use terraform state show after applying, or query NerdGraph:

    {
      actor {
        entityManagement {
          entitySearch(query: "type = 'SCORECARD' AND name = 'Your Scorecard Name'") {
            entities { id name }
          }
        }
      }
    }
    

    NOTE: Scorecards are NGEP entities and are not returned by the newrelic.getEntity data source. Use the NerdGraph query above or terraform state show newrelic_scorecard.example to retrieve the GUID.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo newrelic logo
    Viewing docs for New Relic v5.80.4
    published on Tuesday, Oct 27, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial