1. Packages
  2. Packages
  3. Newrelic Provider
  4. API Docs
  5. AccountManagement
Viewing docs for New Relic v5.75.2
published on Wednesday, Aug 12, 2026 by Pulumi
newrelic logo newrelic logo
Viewing docs for New Relic v5.75.2
published on Wednesday, Aug 12, 2026 by Pulumi

    Use this resource to create and manage New Relic sub accounts.

    Example Usage

    Create Account
    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const foo = new newrelic.AccountManagement("foo", {name: "Test Account Name"});
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    foo = newrelic.AccountManagement("foo", name="Test Account Name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewAccountManagement(ctx, "foo", &newrelic.AccountManagementArgs{
    			Name: pulumi.String("Test Account Name"),
    		})
    		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 foo = new NewRelic.AccountManagement("foo", new()
        {
            Name = "Test Account Name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.AccountManagement;
    import com.pulumi.newrelic.AccountManagementArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new AccountManagement("foo", AccountManagementArgs.builder()
                .name("Test Account Name")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: newrelic:AccountManagement
        properties:
          name: Test Account Name
    
    pulumi {
      required_providers {
        newrelic = {
          source = "pulumi/newrelic"
        }
      }
    }
    
    resource "newrelic_accountmanagement" "foo" {
      name = "Test Account Name"
    }
    

    Create AccountManagement Resource

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

    Constructor syntax

    new AccountManagement(name: string, args?: AccountManagementArgs, opts?: CustomResourceOptions);
    @overload
    def AccountManagement(resource_name: str,
                          args: Optional[AccountManagementArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountManagement(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          name: Optional[str] = None,
                          region: Optional[str] = None)
    func NewAccountManagement(ctx *Context, name string, args *AccountManagementArgs, opts ...ResourceOption) (*AccountManagement, error)
    public AccountManagement(string name, AccountManagementArgs? args = null, CustomResourceOptions? opts = null)
    public AccountManagement(String name, AccountManagementArgs args)
    public AccountManagement(String name, AccountManagementArgs args, CustomResourceOptions options)
    
    type: newrelic:AccountManagement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "newrelic_account_management" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccountManagementArgs
    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 AccountManagementArgs
    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 AccountManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountManagementArgs
    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 accountManagementResource = new NewRelic.AccountManagement("accountManagementResource", new()
    {
        Name = "string",
    });
    
    example, err := newrelic.NewAccountManagement(ctx, "accountManagementResource", &newrelic.AccountManagementArgs{
    	Name: pulumi.String("string"),
    })
    
    resource "newrelic_account_management" "accountManagementResource" {
      lifecycle {
        create_before_destroy = true
      }
      name = "string"
    }
    
    var accountManagementResource = new AccountManagement("accountManagementResource", AccountManagementArgs.builder()
        .name("string")
        .build());
    
    account_management_resource = newrelic.AccountManagement("accountManagementResource", name="string")
    
    const accountManagementResource = new newrelic.AccountManagement("accountManagementResource", {name: "string"});
    
    type: newrelic:AccountManagement
    properties:
        name: string
    

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

    Name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    Region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    Name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    Region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    name String

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region String
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    name str

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region str
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    name String

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region String
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the account - active or canceled
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the account - active or canceled
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the account - active or canceled
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the account - active or canceled
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the account - active or canceled
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the account - active or canceled
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the account - active or canceled

    Look up Existing AccountManagement Resource

    Get an existing AccountManagement 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?: AccountManagementState, opts?: CustomResourceOptions): AccountManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None) -> AccountManagement
    func GetAccountManagement(ctx *Context, name string, id IDInput, state *AccountManagementState, opts ...ResourceOption) (*AccountManagement, error)
    public static AccountManagement Get(string name, Input<string> id, AccountManagementState? state, CustomResourceOptions? opts = null)
    public static AccountManagement get(String name, Output<String> id, AccountManagementState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:AccountManagement    get:      id: ${id}
    import {
      to = newrelic_account_management.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    Region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    Status string
    Status of the account - active or canceled
    Name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    Region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    Status string
    Status of the account - active or canceled
    name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    status string
    Status of the account - active or canceled
    name String

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region String
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    status String
    Status of the account - active or canceled
    name string

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region string
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    status string
    Status of the account - active or canceled
    name str

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region str
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    status str
    Status of the account - active or canceled
    name String

    The name of the Account.

    NOTE Starting v3.95.0 of the New Relic Terraform Provider, the region argument on newrelic.AccountManagement is deprecated and will be removed in a future major release.Every New Relic organization is now tied to a specific region, and any sub-account you create is automatically placed in the region of the organization that owns your API key. The regionCode field on the underlying accountManagementCreateAccount mutation has been deprecated upstream, and this provider no longer forwards it to the API.Setting region in your configuration is still accepted for backward compatibility, but it has no effect on where the account is created. Please stop setting it in new configurations, and remove it from existing ones when it's convenient.

    region String
    DEPRECATED. The region argument is no longer meaningful and has no effect on where the account is created.

    Deprecated: region is deprecated. New Relic organizations are single-region - the account is created in the region of the organization tied to your API key. Leave this argument unset.

    status String
    Status of the account - active or canceled

    Import

    Accounts can be imported using the id, e.g.

    $ pulumi import newrelic:index/accountManagement:AccountManagement 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 newrelic logo
    Viewing docs for New Relic v5.75.2
    published on Wednesday, Aug 12, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial