newrelic.cloud.OciLinkAccount
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:
- Create (or identify) an Identity Domain and register an OAuth2 confidential application (client) to represent New Relic ingestion.
- 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 viaingest_vault_ocid/user_vault_ocidif desired). - Use the Identity Domain base URL as
oci_domain_url(format:https://idcs-<hash>.identity.oraclecloud.com). - Provide / map a service user (or principal) used for workload identity federation as
oci_svc_user_name. - 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:
- Compartment
Ocid string - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- Oci
Client stringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- Oci
Client stringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- Oci
Domain stringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - Oci
Home stringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - Oci
Svc stringUser Name - Service user name associated with the WIF configuration.
- Tenant
Id string - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- Account
Id string - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - Ingest
Vault stringOcid - Vault secret OCID containing an ingest secret.
- Instrumentation
Type string - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - Logging
Stack stringOcid - The Logging stack identifier for the OCI account.
- Metric
Stack stringOcid - Metric stack OCID (ignored on create, applied on update).
- Name string
- Display name for the linked account.
- Oci
Region string - OCI region for the linkage (ignored on create, applied on update).
- User
Vault stringOcid - Vault secret OCID containing a user or auxiliary secret.
- Compartment
Ocid string - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- Oci
Client stringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- Oci
Client stringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- Oci
Domain stringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - Oci
Home stringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - Oci
Svc stringUser Name - Service user name associated with the WIF configuration.
- Tenant
Id string - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- Account
Id string - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - Ingest
Vault stringOcid - Vault secret OCID containing an ingest secret.
- Instrumentation
Type string - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - Logging
Stack stringOcid - The Logging stack identifier for the OCI account.
- Metric
Stack stringOcid - Metric stack OCID (ignored on create, applied on update).
- Name string
- Display name for the linked account.
- Oci
Region string - OCI region for the linkage (ignored on create, applied on update).
- User
Vault stringOcid - Vault secret OCID containing a user or auxiliary secret.
- compartment
Ocid String - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- oci
Client StringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci
Client StringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci
Domain StringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci
Home StringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - oci
Svc StringUser Name - Service user name associated with the WIF configuration.
- tenant
Id String - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- account
Id String - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - ingest
Vault StringOcid - Vault secret OCID containing an ingest secret.
- instrumentation
Type String - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - logging
Stack StringOcid - The Logging stack identifier for the OCI account.
- metric
Stack StringOcid - Metric stack OCID (ignored on create, applied on update).
- name String
- Display name for the linked account.
- oci
Region String - OCI region for the linkage (ignored on create, applied on update).
- user
Vault StringOcid - Vault secret OCID containing a user or auxiliary secret.
- compartment
Ocid string - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- oci
Client stringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci
Client stringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci
Domain stringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci
Home stringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - oci
Svc stringUser Name - Service user name associated with the WIF configuration.
- tenant
Id string - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- account
Id string - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - ingest
Vault stringOcid - Vault secret OCID containing an ingest secret.
- instrumentation
Type string - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - logging
Stack stringOcid - The Logging stack identifier for the OCI account.
- metric
Stack stringOcid - Metric stack OCID (ignored on create, applied on update).
- name string
- Display name for the linked account.
- oci
Region string - OCI region for the linkage (ignored on create, applied on update).
- user
Vault stringOcid - 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_ strid - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci_
client_ strsecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci_
domain_ strurl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci_
home_ strregion - Home region of the tenancy (e.g.
us-ashburn-1). - oci_
svc_ struser_ name - 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 orNEW_RELIC_ACCOUNT_ID. - ingest_
vault_ strocid - 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_ strocid - The Logging stack identifier for the OCI account.
- metric_
stack_ strocid - 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_ strocid - Vault secret OCID containing a user or auxiliary secret.
- compartment
Ocid String - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- oci
Client StringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci
Client StringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci
Domain StringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci
Home StringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - oci
Svc StringUser Name - Service user name associated with the WIF configuration.
- tenant
Id String - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- account
Id String - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - ingest
Vault StringOcid - Vault secret OCID containing an ingest secret.
- instrumentation
Type String - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - logging
Stack StringOcid - The Logging stack identifier for the OCI account.
- metric
Stack StringOcid - Metric stack OCID (ignored on create, applied on update).
- name String
- Display name for the linked account.
- oci
Region String - OCI region for the linkage (ignored on create, applied on update).
- user
Vault StringOcid - 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) -> OciLinkAccountfunc 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.
- Account
Id string - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - Compartment
Ocid string - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- Ingest
Vault stringOcid - Vault secret OCID containing an ingest secret.
- Instrumentation
Type string - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - Logging
Stack stringOcid - The Logging stack identifier for the OCI account.
- Metric
Stack stringOcid - Metric stack OCID (ignored on create, applied on update).
- Name string
- Display name for the linked account.
- Oci
Client stringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- Oci
Client stringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- Oci
Domain stringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - Oci
Home stringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - Oci
Region string - OCI region for the linkage (ignored on create, applied on update).
- Oci
Svc stringUser Name - Service user name associated with the WIF configuration.
- Tenant
Id string - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- User
Vault stringOcid - Vault secret OCID containing a user or auxiliary secret.
- Account
Id string - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - Compartment
Ocid string - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- Ingest
Vault stringOcid - Vault secret OCID containing an ingest secret.
- Instrumentation
Type string - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - Logging
Stack stringOcid - The Logging stack identifier for the OCI account.
- Metric
Stack stringOcid - Metric stack OCID (ignored on create, applied on update).
- Name string
- Display name for the linked account.
- Oci
Client stringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- Oci
Client stringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- Oci
Domain stringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - Oci
Home stringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - Oci
Region string - OCI region for the linkage (ignored on create, applied on update).
- Oci
Svc stringUser Name - Service user name associated with the WIF configuration.
- Tenant
Id string - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- User
Vault stringOcid - Vault secret OCID containing a user or auxiliary secret.
- account
Id String - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - compartment
Ocid String - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- ingest
Vault StringOcid - Vault secret OCID containing an ingest secret.
- instrumentation
Type String - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - logging
Stack StringOcid - The Logging stack identifier for the OCI account.
- metric
Stack StringOcid - Metric stack OCID (ignored on create, applied on update).
- name String
- Display name for the linked account.
- oci
Client StringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci
Client StringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci
Domain StringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci
Home StringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - oci
Region String - OCI region for the linkage (ignored on create, applied on update).
- oci
Svc StringUser Name - Service user name associated with the WIF configuration.
- tenant
Id String - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- user
Vault StringOcid - Vault secret OCID containing a user or auxiliary secret.
- account
Id string - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - compartment
Ocid string - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- ingest
Vault stringOcid - Vault secret OCID containing an ingest secret.
- instrumentation
Type string - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - logging
Stack stringOcid - The Logging stack identifier for the OCI account.
- metric
Stack stringOcid - Metric stack OCID (ignored on create, applied on update).
- name string
- Display name for the linked account.
- oci
Client stringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci
Client stringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci
Domain stringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci
Home stringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - oci
Region string - OCI region for the linkage (ignored on create, applied on update).
- oci
Svc stringUser Name - Service user name associated with the WIF configuration.
- tenant
Id string - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- user
Vault stringOcid - 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 orNEW_RELIC_ACCOUNT_ID. - compartment_
ocid str - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- ingest_
vault_ strocid - 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_ strocid - The Logging stack identifier for the OCI account.
- metric_
stack_ strocid - Metric stack OCID (ignored on create, applied on update).
- name str
- Display name for the linked account.
- oci_
client_ strid - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci_
client_ strsecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci_
domain_ strurl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci_
home_ strregion - 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_ struser_ name - Service user name associated with the WIF configuration.
- tenant_
id str - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- user_
vault_ strocid - Vault secret OCID containing a user or auxiliary secret.
- account
Id String - New Relic account to operate on. Overrides the provider-level
account_id. If omitted, use the provider default orNEW_RELIC_ACCOUNT_ID. - compartment
Ocid String - OCI compartment OCID representing (or containing) the monitored resources/newrelic compartment.
- ingest
Vault StringOcid - Vault secret OCID containing an ingest secret.
- instrumentation
Type String - Specifies the type of integration, such as metrics, logs, or a combination of logs and metrics (e.g.,
METRICS,LOGS,METRICS,LOGS). - logging
Stack StringOcid - The Logging stack identifier for the OCI account.
- metric
Stack StringOcid - Metric stack OCID (ignored on create, applied on update).
- name String
- Display name for the linked account.
- oci
Client StringId - OCI Identity Domain (IDCS) OAuth2 client ID used for workload identity federation.
- oci
Client StringSecret - OAuth2 client secret. Not displayed in plans or state outputs.
- oci
Domain StringUrl - Base URL of the OCI Identity Domain (e.g.
https://idcs-<hash>.identity.oraclecloud.com). - oci
Home StringRegion - Home region of the tenancy (e.g.
us-ashburn-1). - oci
Region String - OCI region for the linkage (ignored on create, applied on update).
- oci
Svc StringUser Name - Service user name associated with the WIF configuration.
- tenant
Id String - OCI tenancy OCID (root tenancy). Changing forces a new linked account.
- user
Vault StringOcid - 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
newrelicTerraform Provider.
