New Relic

Pulumi Official
Package maintained by Pulumi
v4.19.0 published on Wednesday, Jul 20, 2022 by Pulumi

GcpLinkAccount

Import

Linked GCP accounts can be imported using id, you can find the id of an existing GCP linked accounts in GCP dashboard under Infrastructure in Newrelic Console. bash

 $ pulumi import newrelic:cloud/gcpLinkAccount:GcpLinkAccount newrelic_cloud_gcp_link_account.foo <id>

Create a GcpLinkAccount Resource

new GcpLinkAccount(name: string, args: GcpLinkAccountArgs, opts?: CustomResourceOptions);
@overload
def GcpLinkAccount(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   account_id: Optional[int] = None,
                   name: Optional[str] = None,
                   project_id: Optional[str] = None)
@overload
def GcpLinkAccount(resource_name: str,
                   args: GcpLinkAccountArgs,
                   opts: Optional[ResourceOptions] = None)
func NewGcpLinkAccount(ctx *Context, name string, args GcpLinkAccountArgs, opts ...ResourceOption) (*GcpLinkAccount, error)
public GcpLinkAccount(string name, GcpLinkAccountArgs args, CustomResourceOptions? opts = null)
public GcpLinkAccount(String name, GcpLinkAccountArgs args)
public GcpLinkAccount(String name, GcpLinkAccountArgs args, CustomResourceOptions options)
type: newrelic:cloud:GcpLinkAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GcpLinkAccountArgs
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 GcpLinkAccountArgs
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 GcpLinkAccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GcpLinkAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GcpLinkAccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GcpLinkAccount Resource Properties

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

Inputs

The GcpLinkAccount resource accepts the following input properties:

ProjectId string
  • Project ID of the GCP account.
AccountId int
  • Account ID of the New Relic account.
Name string
  • The name of the GCP account in New Relic.
ProjectId string
  • Project ID of the GCP account.
AccountId int
  • Account ID of the New Relic account.
Name string
  • The name of the GCP account in New Relic.
projectId String
  • Project ID of the GCP account.
accountId Integer
  • Account ID of the New Relic account.
name String
  • The name of the GCP account in New Relic.
projectId string
  • Project ID of the GCP account.
accountId number
  • Account ID of the New Relic account.
name string
  • The name of the GCP account in New Relic.
project_id str
  • Project ID of the GCP account.
account_id int
  • Account ID of the New Relic account.
name str
  • The name of the GCP account in New Relic.
projectId String
  • Project ID of the GCP account.
accountId Number
  • Account ID of the New Relic account.
name String
  • The name of the GCP account in New Relic.

Outputs

All input properties are implicitly available as output properties. Additionally, the GcpLinkAccount 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 an Existing GcpLinkAccount Resource

Get an existing GcpLinkAccount 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?: GcpLinkAccountState, opts?: CustomResourceOptions): GcpLinkAccount
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[int] = None,
        name: Optional[str] = None,
        project_id: Optional[str] = None) -> GcpLinkAccount
func GetGcpLinkAccount(ctx *Context, name string, id IDInput, state *GcpLinkAccountState, opts ...ResourceOption) (*GcpLinkAccount, error)
public static GcpLinkAccount Get(string name, Input<string> id, GcpLinkAccountState? state, CustomResourceOptions? opts = null)
public static GcpLinkAccount get(String name, Output<String> id, GcpLinkAccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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 int
  • Account ID of the New Relic account.
Name string
  • The name of the GCP account in New Relic.
ProjectId string
  • Project ID of the GCP account.
AccountId int
  • Account ID of the New Relic account.
Name string
  • The name of the GCP account in New Relic.
ProjectId string
  • Project ID of the GCP account.
accountId Integer
  • Account ID of the New Relic account.
name String
  • The name of the GCP account in New Relic.
projectId String
  • Project ID of the GCP account.
accountId number
  • Account ID of the New Relic account.
name string
  • The name of the GCP account in New Relic.
projectId string
  • Project ID of the GCP account.
account_id int
  • Account ID of the New Relic account.
name str
  • The name of the GCP account in New Relic.
project_id str
  • Project ID of the GCP account.
accountId Number
  • Account ID of the New Relic account.
name String
  • The name of the GCP account in New Relic.
projectId String
  • Project ID of the GCP account.

Package Details

Repository
https://github.com/pulumi/pulumi-newrelic
License
Apache-2.0
Notes

This Pulumi package is based on the newrelic Terraform Provider.