1. Packages
  2. New Relic
  3. API Docs
  4. OneDashboardJson
New Relic v5.25.3 published on Tuesday, Jun 25, 2024 by Pulumi

newrelic.OneDashboardJson

Explore with Pulumi AI

newrelic logo
New Relic v5.25.3 published on Tuesday, Jun 25, 2024 by Pulumi

    Import

    New Relic dashboards can be imported using their GUID, e.g.

    bash

    $ pulumi import newrelic:index/oneDashboardJson:OneDashboardJson my_dashboard <dashboard GUID>
    

    Create OneDashboardJson Resource

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

    Constructor syntax

    new OneDashboardJson(name: string, args: OneDashboardJsonArgs, opts?: CustomResourceOptions);
    @overload
    def OneDashboardJson(resource_name: str,
                         args: OneDashboardJsonArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def OneDashboardJson(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         json: Optional[str] = None,
                         account_id: Optional[str] = None)
    func NewOneDashboardJson(ctx *Context, name string, args OneDashboardJsonArgs, opts ...ResourceOption) (*OneDashboardJson, error)
    public OneDashboardJson(string name, OneDashboardJsonArgs args, CustomResourceOptions? opts = null)
    public OneDashboardJson(String name, OneDashboardJsonArgs args)
    public OneDashboardJson(String name, OneDashboardJsonArgs args, CustomResourceOptions options)
    
    type: newrelic:OneDashboardJson
    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 OneDashboardJsonArgs
    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 OneDashboardJsonArgs
    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 OneDashboardJsonArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OneDashboardJsonArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OneDashboardJsonArgs
    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 oneDashboardJsonResource = new NewRelic.OneDashboardJson("oneDashboardJsonResource", new()
    {
        Json = "string",
        AccountId = "string",
    });
    
    example, err := newrelic.NewOneDashboardJson(ctx, "oneDashboardJsonResource", &newrelic.OneDashboardJsonArgs{
    	Json:      pulumi.String("string"),
    	AccountId: pulumi.String("string"),
    })
    
    var oneDashboardJsonResource = new OneDashboardJson("oneDashboardJsonResource", OneDashboardJsonArgs.builder()
        .json("string")
        .accountId("string")
        .build());
    
    one_dashboard_json_resource = newrelic.OneDashboardJson("oneDashboardJsonResource",
        json="string",
        account_id="string")
    
    const oneDashboardJsonResource = new newrelic.OneDashboardJson("oneDashboardJsonResource", {
        json: "string",
        accountId: "string",
    });
    
    type: newrelic:OneDashboardJson
    properties:
        accountId: string
        json: string
    

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

    Json string
    The JSON export of a dashboard. The JSON can be exported from the UI
    AccountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    Json string
    The JSON export of a dashboard. The JSON can be exported from the UI
    AccountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    json String
    The JSON export of a dashboard. The JSON can be exported from the UI
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    json string
    The JSON export of a dashboard. The JSON can be exported from the UI
    accountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    json str
    The JSON export of a dashboard. The JSON can be exported from the UI
    account_id str
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    json String
    The JSON export of a dashboard. The JSON can be exported from the UI
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.

    Outputs

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

    Guid string
    The unique entity identifier of the dashboard in New Relic.
    Id string
    The provider-assigned unique ID for this managed resource.
    Permalink string
    The URL for viewing the dashboard.
    UpdatedAt string
    The date and time when the dashboard was last updated.
    Guid string
    The unique entity identifier of the dashboard in New Relic.
    Id string
    The provider-assigned unique ID for this managed resource.
    Permalink string
    The URL for viewing the dashboard.
    UpdatedAt string
    The date and time when the dashboard was last updated.
    guid String
    The unique entity identifier of the dashboard in New Relic.
    id String
    The provider-assigned unique ID for this managed resource.
    permalink String
    The URL for viewing the dashboard.
    updatedAt String
    The date and time when the dashboard was last updated.
    guid string
    The unique entity identifier of the dashboard in New Relic.
    id string
    The provider-assigned unique ID for this managed resource.
    permalink string
    The URL for viewing the dashboard.
    updatedAt string
    The date and time when the dashboard was last updated.
    guid str
    The unique entity identifier of the dashboard in New Relic.
    id str
    The provider-assigned unique ID for this managed resource.
    permalink str
    The URL for viewing the dashboard.
    updated_at str
    The date and time when the dashboard was last updated.
    guid String
    The unique entity identifier of the dashboard in New Relic.
    id String
    The provider-assigned unique ID for this managed resource.
    permalink String
    The URL for viewing the dashboard.
    updatedAt String
    The date and time when the dashboard was last updated.

    Look up Existing OneDashboardJson Resource

    Get an existing OneDashboardJson 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?: OneDashboardJsonState, opts?: CustomResourceOptions): OneDashboardJson
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            guid: Optional[str] = None,
            json: Optional[str] = None,
            permalink: Optional[str] = None,
            updated_at: Optional[str] = None) -> OneDashboardJson
    func GetOneDashboardJson(ctx *Context, name string, id IDInput, state *OneDashboardJsonState, opts ...ResourceOption) (*OneDashboardJson, error)
    public static OneDashboardJson Get(string name, Input<string> id, OneDashboardJsonState? state, CustomResourceOptions? opts = null)
    public static OneDashboardJson get(String name, Output<String> id, OneDashboardJsonState 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 string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    Guid string
    The unique entity identifier of the dashboard in New Relic.
    Json string
    The JSON export of a dashboard. The JSON can be exported from the UI
    Permalink string
    The URL for viewing the dashboard.
    UpdatedAt string
    The date and time when the dashboard was last updated.
    AccountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    Guid string
    The unique entity identifier of the dashboard in New Relic.
    Json string
    The JSON export of a dashboard. The JSON can be exported from the UI
    Permalink string
    The URL for viewing the dashboard.
    UpdatedAt string
    The date and time when the dashboard was last updated.
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    guid String
    The unique entity identifier of the dashboard in New Relic.
    json String
    The JSON export of a dashboard. The JSON can be exported from the UI
    permalink String
    The URL for viewing the dashboard.
    updatedAt String
    The date and time when the dashboard was last updated.
    accountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    guid string
    The unique entity identifier of the dashboard in New Relic.
    json string
    The JSON export of a dashboard. The JSON can be exported from the UI
    permalink string
    The URL for viewing the dashboard.
    updatedAt string
    The date and time when the dashboard was last updated.
    account_id str
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    guid str
    The unique entity identifier of the dashboard in New Relic.
    json str
    The JSON export of a dashboard. The JSON can be exported from the UI
    permalink str
    The URL for viewing the dashboard.
    updated_at str
    The date and time when the dashboard was last updated.
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    guid String
    The unique entity identifier of the dashboard in New Relic.
    json String
    The JSON export of a dashboard. The JSON can be exported from the UI
    permalink String
    The URL for viewing the dashboard.
    updatedAt String
    The date and time when the dashboard was last updated.

    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.25.3 published on Tuesday, Jun 25, 2024 by Pulumi