1. Packages
  2. Newrelic Provider
  3. API Docs
  4. cloud
  5. OciLinkAccount
New Relic v5.55.2 published on Saturday, Oct 18, 2025 by Pulumi

newrelic.cloud.OciLinkAccount

Get Started
newrelic logo
New Relic v5.55.2 published on Saturday, Oct 18, 2025 by Pulumi

    Use this resource to link an Oracle Cloud Infrastructure (OCI) account to New Relic.

    This setup is used to create a provider account with OCI credentials, establishing a relationship between Oracle and New Relic. Additionally, as part of this integration, we store WIF (Workload Identity Federation) credentials which are further used for fetching data and validations, and vault OCIDs corresponding to the vault resource where the New Relic ingest and user keys are stored in the OCI console.

    Prerequisites

    For the newrelic.cloud.OciLinkAccount resource to work properly, you need an OCI tenancy with IAM permissions to create and manage the identity artifacts (client/application, secrets, compartments, and service user) referenced below. OCI provides enterprise-grade cloud services across multiple global regions.

    NOTE: Before using this resource, ensure the New Relic provider is configured with valid credentials.
    See Getting Started: New Relic provider guide

    If you encounter issues or bugs, please open an issue in the GitHub repository.

    Workload Identity Federation (WIF) Attributes

    The following arguments rely on an OCI Identity Domain OAuth2 client set up for workload identity federation (identity propagation): oci_client_id, oci_client_secret, oci_domain_url, and oci_svc_user_name.

    To create and retrieve these values, follow Oracle’s guidance for configuring identity propagation / JWT token exchange:

    Oracle documentation: Create an identity propagation trust (JWT token exchange)

    WIF configuration steps:

    1. Create (or identify) an Identity Domain and register an OAuth2 confidential application (client) to represent New Relic ingestion.
    2. Generate / record the client ID (oci_client_id) and client secret (oci_client_secret). Store the secret securely (e.g., in OCI Vault; reference its OCID via ingest_vault_ocid / user_vault_ocid if desired).
    3. Use the Identity Domain base URL as oci_domain_url (format: https://idcs-<hash>.identity.oraclecloud.com).
    4. Provide / map a service user (or principal) used for workload identity federation as oci_svc_user_name.
    5. Ensure the client has the required scopes and the tenancy policies allow the token exchange.

    TIP: Rotating the OAuth2 client secret only requires updating oci_client_secret; it does not force resource replacement.

    Example Usage

    Minimal example (required arguments for creation):

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const example = new newrelic.cloud.OciLinkAccount("example", {
        accountId: "1234567",
        tenantId: "ocid1.tenancy.oc1..aaaaaaaaexample",
        name: "my-oci-link",
        compartmentOcid: "ocid1.compartment.oc1..bbbbbbbbexample",
        ociClientId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        ociClientSecret: ociClientSecret,
        ociDomainUrl: "https://idcs-1234567890abcdef.identity.oraclecloud.com",
        ociHomeRegion: "us-ashburn-1",
        ociSvcUserName: "svc-newrelic-collector",
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    example = newrelic.cloud.OciLinkAccount("example",
        account_id="1234567",
        tenant_id="ocid1.tenancy.oc1..aaaaaaaaexample",
        name="my-oci-link",
        compartment_ocid="ocid1.compartment.oc1..bbbbbbbbexample",
        oci_client_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        oci_client_secret=oci_client_secret,
        oci_domain_url="https://idcs-1234567890abcdef.identity.oraclecloud.com",
        oci_home_region="us-ashburn-1",
        oci_svc_user_name="svc-newrelic-collector")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/cloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloud.NewOciLinkAccount(ctx, "example", &cloud.OciLinkAccountArgs{
    			AccountId:       pulumi.String("1234567"),
    			TenantId:        pulumi.String("ocid1.tenancy.oc1..aaaaaaaaexample"),
    			Name:            pulumi.String("my-oci-link"),
    			CompartmentOcid: pulumi.String("ocid1.compartment.oc1..bbbbbbbbexample"),
    			OciClientId:     pulumi.String("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
    			OciClientSecret: pulumi.Any(ociClientSecret),
    			OciDomainUrl:    pulumi.String("https://idcs-1234567890abcdef.identity.oraclecloud.com"),
    			OciHomeRegion:   pulumi.String("us-ashburn-1"),
    			OciSvcUserName:  pulumi.String("svc-newrelic-collector"),
    		})
    		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 example = new NewRelic.Cloud.OciLinkAccount("example", new()
        {
            AccountId = "1234567",
            TenantId = "ocid1.tenancy.oc1..aaaaaaaaexample",
            Name = "my-oci-link",
            CompartmentOcid = "ocid1.compartment.oc1..bbbbbbbbexample",
            OciClientId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
            OciClientSecret = ociClientSecret,
            OciDomainUrl = "https://idcs-1234567890abcdef.identity.oraclecloud.com",
            OciHomeRegion = "us-ashburn-1",
            OciSvcUserName = "svc-newrelic-collector",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.cloud.OciLinkAccount;
    import com.pulumi.newrelic.cloud.OciLinkAccountArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 example = new OciLinkAccount("example", OciLinkAccountArgs.builder()
                .accountId("1234567")
                .tenantId("ocid1.tenancy.oc1..aaaaaaaaexample")
                .name("my-oci-link")
                .compartmentOcid("ocid1.compartment.oc1..bbbbbbbbexample")
                .ociClientId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
                .ociClientSecret(ociClientSecret)
                .ociDomainUrl("https://idcs-1234567890abcdef.identity.oraclecloud.com")
                .ociHomeRegion("us-ashburn-1")
                .ociSvcUserName("svc-newrelic-collector")
                .build());
    
        }
    }
    
    resources:
      example:
        type: newrelic:cloud:OciLinkAccount
        properties:
          accountId: 1.234567e+06 # Changing this forces replacement (ForceNew)
          tenantId: ocid1.tenancy.oc1..aaaaaaaaexample
          name: my-oci-link
          compartmentOcid: ocid1.compartment.oc1..bbbbbbbbexample
          ociClientId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
          ociClientSecret: ${ociClientSecret}
          ociDomainUrl: https://idcs-1234567890abcdef.identity.oraclecloud.com
          ociHomeRegion: us-ashburn-1
          ociSvcUserName: svc-newrelic-collector
    

    Example including optional secret references and update-only fields:

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const full = new newrelic.cloud.OciLinkAccount("full", {
        name: "my-oci-link-full",
        tenantId: "ocid1.tenancy.oc1..aaaaaaaaexample",
        compartmentOcid: "ocid1.compartment.oc1..bbbbbbbbexample",
        ociClientId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        ociClientSecret: ociClientSecret,
        ociDomainUrl: "https://idcs-1234567890abcdef.identity.oraclecloud.com",
        ociHomeRegion: "us-ashburn-1",
        ociSvcUserName: "svc-newrelic-collector",
        ingestVaultOcid: "ocid1.vaultsecret.oc1..ccccccccexample",
        userVaultOcid: "ocid1.vaultsecret.oc1..ddddddddexample",
        instrumentationType: "METRICS,LOGS",
        ociRegion: "us-phoenix-1",
        metricStackOcid: "ocid1.stack.oc1..eeeeeeeeexample",
        loggingStackOcid: "ocid1.stack.oc1..ffffffloggingstack",
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    full = newrelic.cloud.OciLinkAccount("full",
        name="my-oci-link-full",
        tenant_id="ocid1.tenancy.oc1..aaaaaaaaexample",
        compartment_ocid="ocid1.compartment.oc1..bbbbbbbbexample",
        oci_client_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        oci_client_secret=oci_client_secret,
        oci_domain_url="https://idcs-1234567890abcdef.identity.oraclecloud.com",
        oci_home_region="us-ashburn-1",
        oci_svc_user_name="svc-newrelic-collector",
        ingest_vault_ocid="ocid1.vaultsecret.oc1..ccccccccexample",
        user_vault_ocid="ocid1.vaultsecret.oc1..ddddddddexample",
        instrumentation_type="METRICS,LOGS",
        oci_region="us-phoenix-1",
        metric_stack_ocid="ocid1.stack.oc1..eeeeeeeeexample",
        logging_stack_ocid="ocid1.stack.oc1..ffffffloggingstack")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/cloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloud.NewOciLinkAccount(ctx, "full", &cloud.OciLinkAccountArgs{
    			Name:                pulumi.String("my-oci-link-full"),
    			TenantId:            pulumi.String("ocid1.tenancy.oc1..aaaaaaaaexample"),
    			CompartmentOcid:     pulumi.String("ocid1.compartment.oc1..bbbbbbbbexample"),
    			OciClientId:         pulumi.String("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
    			OciClientSecret:     pulumi.Any(ociClientSecret),
    			OciDomainUrl:        pulumi.String("https://idcs-1234567890abcdef.identity.oraclecloud.com"),
    			OciHomeRegion:       pulumi.String("us-ashburn-1"),
    			OciSvcUserName:      pulumi.String("svc-newrelic-collector"),
    			IngestVaultOcid:     pulumi.String("ocid1.vaultsecret.oc1..ccccccccexample"),
    			UserVaultOcid:       pulumi.String("ocid1.vaultsecret.oc1..ddddddddexample"),
    			InstrumentationType: pulumi.String("METRICS,LOGS"),
    			OciRegion:           pulumi.String("us-phoenix-1"),
    			MetricStackOcid:     pulumi.String("ocid1.stack.oc1..eeeeeeeeexample"),
    			LoggingStackOcid:    pulumi.String("ocid1.stack.oc1..ffffffloggingstack"),
    		})
    		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 full = new NewRelic.Cloud.OciLinkAccount("full", new()
        {
            Name = "my-oci-link-full",
            TenantId = "ocid1.tenancy.oc1..aaaaaaaaexample",
            CompartmentOcid = "ocid1.compartment.oc1..bbbbbbbbexample",
            OciClientId = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
            OciClientSecret = ociClientSecret,
            OciDomainUrl = "https://idcs-1234567890abcdef.identity.oraclecloud.com",
            OciHomeRegion = "us-ashburn-1",
            OciSvcUserName = "svc-newrelic-collector",
            IngestVaultOcid = "ocid1.vaultsecret.oc1..ccccccccexample",
            UserVaultOcid = "ocid1.vaultsecret.oc1..ddddddddexample",
            InstrumentationType = "METRICS,LOGS",
            OciRegion = "us-phoenix-1",
            MetricStackOcid = "ocid1.stack.oc1..eeeeeeeeexample",
            LoggingStackOcid = "ocid1.stack.oc1..ffffffloggingstack",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.cloud.OciLinkAccount;
    import com.pulumi.newrelic.cloud.OciLinkAccountArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 full = new OciLinkAccount("full", OciLinkAccountArgs.builder()
                .name("my-oci-link-full")
                .tenantId("ocid1.tenancy.oc1..aaaaaaaaexample")
                .compartmentOcid("ocid1.compartment.oc1..bbbbbbbbexample")
                .ociClientId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
                .ociClientSecret(ociClientSecret)
                .ociDomainUrl("https://idcs-1234567890abcdef.identity.oraclecloud.com")
                .ociHomeRegion("us-ashburn-1")
                .ociSvcUserName("svc-newrelic-collector")
                .ingestVaultOcid("ocid1.vaultsecret.oc1..ccccccccexample")
                .userVaultOcid("ocid1.vaultsecret.oc1..ddddddddexample")
                .instrumentationType("METRICS,LOGS")
                .ociRegion("us-phoenix-1")
                .metricStackOcid("ocid1.stack.oc1..eeeeeeeeexample")
                .loggingStackOcid("ocid1.stack.oc1..ffffffloggingstack")
                .build());
    
        }
    }
    
    resources:
      full:
        type: newrelic:cloud:OciLinkAccount
        properties:
          name: my-oci-link-full
          tenantId: ocid1.tenancy.oc1..aaaaaaaaexample
          compartmentOcid: ocid1.compartment.oc1..bbbbbbbbexample
          ociClientId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
          ociClientSecret: ${ociClientSecret}
          ociDomainUrl: https://idcs-1234567890abcdef.identity.oraclecloud.com
          ociHomeRegion: us-ashburn-1
          ociSvcUserName: svc-newrelic-collector
          ingestVaultOcid: ocid1.vaultsecret.oc1..ccccccccexample
          userVaultOcid: ocid1.vaultsecret.oc1..ddddddddexample
          instrumentationType: METRICS,LOGS
          ociRegion: us-phoenix-1
          metricStackOcid: ocid1.stack.oc1..eeeeeeeeexample
          loggingStackOcid: ocid1.stack.oc1..ffffffloggingstack
    

    Create OciLinkAccount Resource

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

    Constructor syntax

    new OciLinkAccount(name: string, args: OciLinkAccountArgs, opts?: CustomResourceOptions);
    @overload
    def OciLinkAccount(resource_name: str,
                       args: OciLinkAccountArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def OciLinkAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       oci_client_id: Optional[str] = None,
                       compartment_ocid: Optional[str] = None,
                       tenant_id: Optional[str] = None,
                       oci_svc_user_name: Optional[str] = None,
                       oci_home_region: Optional[str] = None,
                       oci_domain_url: Optional[str] = None,
                       oci_client_secret: Optional[str] = None,
                       instrumentation_type: Optional[str] = None,
                       name: Optional[str] = None,
                       metric_stack_ocid: Optional[str] = None,
                       logging_stack_ocid: Optional[str] = None,
                       oci_region: Optional[str] = None,
                       account_id: Optional[str] = None,
                       ingest_vault_ocid: Optional[str] = None,
                       user_vault_ocid: Optional[str] = None)
    func NewOciLinkAccount(ctx *Context, name string, args OciLinkAccountArgs, opts ...ResourceOption) (*OciLinkAccount, error)
    public OciLinkAccount(string name, OciLinkAccountArgs args, CustomResourceOptions? opts = null)
    public OciLinkAccount(String name, OciLinkAccountArgs args)
    public OciLinkAccount(String name, OciLinkAccountArgs args, CustomResourceOptions options)
    
    type: newrelic:cloud:OciLinkAccount
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OciLinkAccountArgs
    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 OciLinkAccountArgs
    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 OciLinkAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OciLinkAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OciLinkAccountArgs
    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 ociLinkAccountResource = new NewRelic.Cloud.OciLinkAccount("ociLinkAccountResource", new()
    {
        OciClientId = "string",
        CompartmentOcid = "string",
        TenantId = "string",
        OciSvcUserName = "string",
        OciHomeRegion = "string",
        OciDomainUrl = "string",
        OciClientSecret = "string",
        InstrumentationType = "string",
        Name = "string",
        MetricStackOcid = "string",
        LoggingStackOcid = "string",
        OciRegion = "string",
        AccountId = "string",
        IngestVaultOcid = "string",
        UserVaultOcid = "string",
    });
    
    example, err := cloud.NewOciLinkAccount(ctx, "ociLinkAccountResource", &cloud.OciLinkAccountArgs{
    	OciClientId:         pulumi.String("string"),
    	CompartmentOcid:     pulumi.String("string"),
    	TenantId:            pulumi.String("string"),
    	OciSvcUserName:      pulumi.String("string"),
    	OciHomeRegion:       pulumi.String("string"),
    	OciDomainUrl:        pulumi.String("string"),
    	OciClientSecret:     pulumi.String("string"),
    	InstrumentationType: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	MetricStackOcid:     pulumi.String("string"),
    	LoggingStackOcid:    pulumi.String("string"),
    	OciRegion:           pulumi.String("string"),
    	AccountId:           pulumi.String("string"),
    	IngestVaultOcid:     pulumi.String("string"),
    	UserVaultOcid:       pulumi.String("string"),
    })
    
    var ociLinkAccountResource = new OciLinkAccount("ociLinkAccountResource", OciLinkAccountArgs.builder()
        .ociClientId("string")
        .compartmentOcid("string")
        .tenantId("string")
        .ociSvcUserName("string")
        .ociHomeRegion("string")
        .ociDomainUrl("string")
        .ociClientSecret("string")
        .instrumentationType("string")
        .name("string")
        .metricStackOcid("string")
        .loggingStackOcid("string")
        .ociRegion("string")
        .accountId("string")
        .ingestVaultOcid("string")
        .userVaultOcid("string")
        .build());
    
    oci_link_account_resource = newrelic.cloud.OciLinkAccount("ociLinkAccountResource",
        oci_client_id="string",
        compartment_ocid="string",
        tenant_id="string",
        oci_svc_user_name="string",
        oci_home_region="string",
        oci_domain_url="string",
        oci_client_secret="string",
        instrumentation_type="string",
        name="string",
        metric_stack_ocid="string",
        logging_stack_ocid="string",
        oci_region="string",
        account_id="string",
        ingest_vault_ocid="string",
        user_vault_ocid="string")
    
    const ociLinkAccountResource = new newrelic.cloud.OciLinkAccount("ociLinkAccountResource", {
        ociClientId: "string",
        compartmentOcid: "string",
        tenantId: "string",
        ociSvcUserName: "string",
        ociHomeRegion: "string",
        ociDomainUrl: "string",
        ociClientSecret: "string",
        instrumentationType: "string",
        name: "string",
        metricStackOcid: "string",
        loggingStackOcid: "string",
        ociRegion: "string",
        accountId: "string",
        ingestVaultOcid: "string",
        userVaultOcid: "string",
    });
    
    type: newrelic:cloud:OciLinkAccount
    properties:
        accountId: string
        compartmentOcid: string
        ingestVaultOcid: string
        instrumentationType: string
        loggingStackOcid: string
        metricStackOcid: string
        name: string
        ociClientId: string
        ociClientSecret: string
        ociDomainUrl: string
        ociHomeRegion: string
        ociRegion: string
        ociSvcUserName: string
        tenantId: string
        userVaultOcid: string
    

    OciLinkAccount 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 OciLinkAccount resource accepts the following input properties:

    CompartmentOcid string
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    OciClientId string
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    OciClientSecret string
    OAuth2 client secret. Not displayed in plans or state outputs.
    OciDomainUrl string
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    OciHomeRegion string
    Home region of the tenancy (e.g. us-ashburn-1).
    OciSvcUserName string
    Service user name associated with the WIF configuration.
    TenantId string
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    AccountId string
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    IngestVaultOcid string
    Vault secret OCID containing an ingest secret.
    InstrumentationType string
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    LoggingStackOcid string
    The Logging stack identifier for the OCI account.
    MetricStackOcid string
    Metric stack OCID (ignored on create, applied on update).
    Name string
    Display name for the linked account.
    OciRegion string
    OCI region for the linkage (ignored on create, applied on update).
    UserVaultOcid string
    Vault secret OCID containing a user or auxiliary secret.
    CompartmentOcid string
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    OciClientId string
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    OciClientSecret string
    OAuth2 client secret. Not displayed in plans or state outputs.
    OciDomainUrl string
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    OciHomeRegion string
    Home region of the tenancy (e.g. us-ashburn-1).
    OciSvcUserName string
    Service user name associated with the WIF configuration.
    TenantId string
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    AccountId string
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    IngestVaultOcid string
    Vault secret OCID containing an ingest secret.
    InstrumentationType string
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    LoggingStackOcid string
    The Logging stack identifier for the OCI account.
    MetricStackOcid string
    Metric stack OCID (ignored on create, applied on update).
    Name string
    Display name for the linked account.
    OciRegion string
    OCI region for the linkage (ignored on create, applied on update).
    UserVaultOcid string
    Vault secret OCID containing a user or auxiliary secret.
    compartmentOcid String
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    ociClientId String
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    ociClientSecret String
    OAuth2 client secret. Not displayed in plans or state outputs.
    ociDomainUrl String
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    ociHomeRegion String
    Home region of the tenancy (e.g. us-ashburn-1).
    ociSvcUserName String
    Service user name associated with the WIF configuration.
    tenantId String
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    accountId String
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    ingestVaultOcid String
    Vault secret OCID containing an ingest secret.
    instrumentationType String
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    loggingStackOcid String
    The Logging stack identifier for the OCI account.
    metricStackOcid String
    Metric stack OCID (ignored on create, applied on update).
    name String
    Display name for the linked account.
    ociRegion String
    OCI region for the linkage (ignored on create, applied on update).
    userVaultOcid String
    Vault secret OCID containing a user or auxiliary secret.
    compartmentOcid string
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    ociClientId string
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    ociClientSecret string
    OAuth2 client secret. Not displayed in plans or state outputs.
    ociDomainUrl string
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    ociHomeRegion string
    Home region of the tenancy (e.g. us-ashburn-1).
    ociSvcUserName string
    Service user name associated with the WIF configuration.
    tenantId string
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    accountId string
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    ingestVaultOcid string
    Vault secret OCID containing an ingest secret.
    instrumentationType string
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    loggingStackOcid string
    The Logging stack identifier for the OCI account.
    metricStackOcid string
    Metric stack OCID (ignored on create, applied on update).
    name string
    Display name for the linked account.
    ociRegion string
    OCI region for the linkage (ignored on create, applied on update).
    userVaultOcid string
    Vault secret OCID containing a user or auxiliary secret.
    compartment_ocid str
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    oci_client_id str
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    oci_client_secret str
    OAuth2 client secret. Not displayed in plans or state outputs.
    oci_domain_url str
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    oci_home_region str
    Home region of the tenancy (e.g. us-ashburn-1).
    oci_svc_user_name str
    Service user name associated with the WIF configuration.
    tenant_id str
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    account_id str
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    ingest_vault_ocid str
    Vault secret OCID containing an ingest secret.
    instrumentation_type str
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    logging_stack_ocid str
    The Logging stack identifier for the OCI account.
    metric_stack_ocid str
    Metric stack OCID (ignored on create, applied on update).
    name str
    Display name for the linked account.
    oci_region str
    OCI region for the linkage (ignored on create, applied on update).
    user_vault_ocid str
    Vault secret OCID containing a user or auxiliary secret.
    compartmentOcid String
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    ociClientId String
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    ociClientSecret String
    OAuth2 client secret. Not displayed in plans or state outputs.
    ociDomainUrl String
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    ociHomeRegion String
    Home region of the tenancy (e.g. us-ashburn-1).
    ociSvcUserName String
    Service user name associated with the WIF configuration.
    tenantId String
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    accountId String
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    ingestVaultOcid String
    Vault secret OCID containing an ingest secret.
    instrumentationType String
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    loggingStackOcid String
    The Logging stack identifier for the OCI account.
    metricStackOcid String
    Metric stack OCID (ignored on create, applied on update).
    name String
    Display name for the linked account.
    ociRegion String
    OCI region for the linkage (ignored on create, applied on update).
    userVaultOcid String
    Vault secret OCID containing a user or auxiliary secret.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing OciLinkAccount Resource

    Get an existing OciLinkAccount 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?: OciLinkAccountState, opts?: CustomResourceOptions): OciLinkAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            compartment_ocid: Optional[str] = None,
            ingest_vault_ocid: Optional[str] = None,
            instrumentation_type: Optional[str] = None,
            logging_stack_ocid: Optional[str] = None,
            metric_stack_ocid: Optional[str] = None,
            name: Optional[str] = None,
            oci_client_id: Optional[str] = None,
            oci_client_secret: Optional[str] = None,
            oci_domain_url: Optional[str] = None,
            oci_home_region: Optional[str] = None,
            oci_region: Optional[str] = None,
            oci_svc_user_name: Optional[str] = None,
            tenant_id: Optional[str] = None,
            user_vault_ocid: Optional[str] = None) -> OciLinkAccount
    func GetOciLinkAccount(ctx *Context, name string, id IDInput, state *OciLinkAccountState, opts ...ResourceOption) (*OciLinkAccount, error)
    public static OciLinkAccount Get(string name, Input<string> id, OciLinkAccountState? state, CustomResourceOptions? opts = null)
    public static OciLinkAccount get(String name, Output<String> id, OciLinkAccountState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:cloud:OciLinkAccount    get:      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:
    AccountId string
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    CompartmentOcid string
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    IngestVaultOcid string
    Vault secret OCID containing an ingest secret.
    InstrumentationType string
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    LoggingStackOcid string
    The Logging stack identifier for the OCI account.
    MetricStackOcid string
    Metric stack OCID (ignored on create, applied on update).
    Name string
    Display name for the linked account.
    OciClientId string
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    OciClientSecret string
    OAuth2 client secret. Not displayed in plans or state outputs.
    OciDomainUrl string
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    OciHomeRegion string
    Home region of the tenancy (e.g. us-ashburn-1).
    OciRegion string
    OCI region for the linkage (ignored on create, applied on update).
    OciSvcUserName string
    Service user name associated with the WIF configuration.
    TenantId string
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    UserVaultOcid string
    Vault secret OCID containing a user or auxiliary secret.
    AccountId string
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    CompartmentOcid string
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    IngestVaultOcid string
    Vault secret OCID containing an ingest secret.
    InstrumentationType string
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    LoggingStackOcid string
    The Logging stack identifier for the OCI account.
    MetricStackOcid string
    Metric stack OCID (ignored on create, applied on update).
    Name string
    Display name for the linked account.
    OciClientId string
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    OciClientSecret string
    OAuth2 client secret. Not displayed in plans or state outputs.
    OciDomainUrl string
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    OciHomeRegion string
    Home region of the tenancy (e.g. us-ashburn-1).
    OciRegion string
    OCI region for the linkage (ignored on create, applied on update).
    OciSvcUserName string
    Service user name associated with the WIF configuration.
    TenantId string
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    UserVaultOcid string
    Vault secret OCID containing a user or auxiliary secret.
    accountId String
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    compartmentOcid String
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    ingestVaultOcid String
    Vault secret OCID containing an ingest secret.
    instrumentationType String
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    loggingStackOcid String
    The Logging stack identifier for the OCI account.
    metricStackOcid String
    Metric stack OCID (ignored on create, applied on update).
    name String
    Display name for the linked account.
    ociClientId String
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    ociClientSecret String
    OAuth2 client secret. Not displayed in plans or state outputs.
    ociDomainUrl String
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    ociHomeRegion String
    Home region of the tenancy (e.g. us-ashburn-1).
    ociRegion String
    OCI region for the linkage (ignored on create, applied on update).
    ociSvcUserName String
    Service user name associated with the WIF configuration.
    tenantId String
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    userVaultOcid String
    Vault secret OCID containing a user or auxiliary secret.
    accountId string
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    compartmentOcid string
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    ingestVaultOcid string
    Vault secret OCID containing an ingest secret.
    instrumentationType string
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    loggingStackOcid string
    The Logging stack identifier for the OCI account.
    metricStackOcid string
    Metric stack OCID (ignored on create, applied on update).
    name string
    Display name for the linked account.
    ociClientId string
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    ociClientSecret string
    OAuth2 client secret. Not displayed in plans or state outputs.
    ociDomainUrl string
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    ociHomeRegion string
    Home region of the tenancy (e.g. us-ashburn-1).
    ociRegion string
    OCI region for the linkage (ignored on create, applied on update).
    ociSvcUserName string
    Service user name associated with the WIF configuration.
    tenantId string
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    userVaultOcid string
    Vault secret OCID containing a user or auxiliary secret.
    account_id str
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    compartment_ocid str
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    ingest_vault_ocid str
    Vault secret OCID containing an ingest secret.
    instrumentation_type str
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    logging_stack_ocid str
    The Logging stack identifier for the OCI account.
    metric_stack_ocid str
    Metric stack OCID (ignored on create, applied on update).
    name str
    Display name for the linked account.
    oci_client_id str
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    oci_client_secret str
    OAuth2 client secret. Not displayed in plans or state outputs.
    oci_domain_url str
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    oci_home_region str
    Home region of the tenancy (e.g. us-ashburn-1).
    oci_region str
    OCI region for the linkage (ignored on create, applied on update).
    oci_svc_user_name str
    Service user name associated with the WIF configuration.
    tenant_id str
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    user_vault_ocid str
    Vault secret OCID containing a user or auxiliary secret.
    accountId String
    New Relic account to operate on. Overrides the provider-level account_id. If omitted, use the provider default or NEW_RELIC_ACCOUNT_ID.
    compartmentOcid String
    OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
    ingestVaultOcid String
    Vault secret OCID containing an ingest secret.
    instrumentationType String
    Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g., METRICS, LOGS, METRICS,LOGS).
    loggingStackOcid String
    The Logging stack identifier for the OCI account.
    metricStackOcid String
    Metric stack OCID (ignored on create, applied on update).
    name String
    Display name for the linked account.
    ociClientId String
    OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
    ociClientSecret String
    OAuth2 client secret. Not displayed in plans or state outputs.
    ociDomainUrl String
    Base URL of the OCI Identity Domain (e.g. https://idcs-<hash>.identity.oraclecloud.com).
    ociHomeRegion String
    Home region of the tenancy (e.g. us-ashburn-1).
    ociRegion String
    OCI region for the linkage (ignored on create, applied on update).
    ociSvcUserName String
    Service user name associated with the WIF configuration.
    tenantId String
    OCI tenancy OCID (root tenancy). Changing forces a new linked account.
    userVaultOcid String
    Vault secret OCID containing a user or auxiliary secret.

    Import

    Linked OCI accounts can be imported using the id, e.g.

    bash

    $ pulumi import newrelic:cloud/ociLinkAccount:OciLinkAccount foo <id>
    

    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
    New Relic v5.55.2 published on Saturday, Oct 18, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate