newrelic.Group
Explore with Pulumi AI
The newrelic.Group
resource facilitates creating, updating, and deleting groups in New Relic, while also enabling the addition and removal of users from these groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = newrelic.getAuthenticationDomain({
name: "Test Authentication Domain",
});
const fooGroup = new newrelic.Group("foo", {
name: "Test Group",
authenticationDomainId: foo.then(foo => foo.id),
userIds: [
"0001112222",
"2221110000",
],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
foo_group = newrelic.Group("foo",
name="Test Group",
authentication_domain_id=foo.id,
user_ids=[
"0001112222",
"2221110000",
])
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 {
foo, err := newrelic.GetAuthenticationDomain(ctx, &newrelic.GetAuthenticationDomainArgs{
Name: "Test Authentication Domain",
}, nil)
if err != nil {
return err
}
_, err = newrelic.NewGroup(ctx, "foo", &newrelic.GroupArgs{
Name: pulumi.String("Test Group"),
AuthenticationDomainId: pulumi.String(foo.Id),
UserIds: pulumi.StringArray{
pulumi.String("0001112222"),
pulumi.String("2221110000"),
},
})
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 = NewRelic.GetAuthenticationDomain.Invoke(new()
{
Name = "Test Authentication Domain",
});
var fooGroup = new NewRelic.Group("foo", new()
{
Name = "Test Group",
AuthenticationDomainId = foo.Apply(getAuthenticationDomainResult => getAuthenticationDomainResult.Id),
UserIds = new[]
{
"0001112222",
"2221110000",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.NewrelicFunctions;
import com.pulumi.newrelic.inputs.GetAuthenticationDomainArgs;
import com.pulumi.newrelic.Group;
import com.pulumi.newrelic.GroupArgs;
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) {
final var foo = NewrelicFunctions.getAuthenticationDomain(GetAuthenticationDomainArgs.builder()
.name("Test Authentication Domain")
.build());
var fooGroup = new Group("fooGroup", GroupArgs.builder()
.name("Test Group")
.authenticationDomainId(foo.applyValue(getAuthenticationDomainResult -> getAuthenticationDomainResult.id()))
.userIds(
"0001112222",
"2221110000")
.build());
}
}
resources:
fooGroup:
type: newrelic:Group
name: foo
properties:
name: Test Group
authenticationDomainId: ${foo.id}
userIds:
- '0001112222'
- '2221110000'
variables:
foo:
fn::invoke:
Function: newrelic:getAuthenticationDomain
Arguments:
name: Test Authentication Domain
Additional Examples
Addition of New Users to a New Group
The following example illustrates the creation of a group using the newrelic.Group
resource, to which users created using the newrelic.User
resource are added.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = newrelic.getAuthenticationDomain({
name: "Test Authentication Domain",
});
const fooUser = new newrelic.User("foo", {
name: "Test User One",
emailId: "test_user_one@test.com",
authenticationDomainId: foo.then(foo => foo.id),
userType: "CORE_USER_TIER",
});
const bar = new newrelic.User("bar", {
name: "Test User Two",
emailId: "test_user_two@test.com",
authenticationDomainId: foo.then(foo => foo.id),
userType: "BASIC_USER_TIER",
});
const fooGroup = new newrelic.Group("foo", {
name: "Test Group",
authenticationDomainId: foo.then(foo => foo.id),
userIds: [
fooUser.id,
bar.id,
],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
foo_user = newrelic.User("foo",
name="Test User One",
email_id="test_user_one@test.com",
authentication_domain_id=foo.id,
user_type="CORE_USER_TIER")
bar = newrelic.User("bar",
name="Test User Two",
email_id="test_user_two@test.com",
authentication_domain_id=foo.id,
user_type="BASIC_USER_TIER")
foo_group = newrelic.Group("foo",
name="Test Group",
authentication_domain_id=foo.id,
user_ids=[
foo_user.id,
bar.id,
])
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 {
foo, err := newrelic.GetAuthenticationDomain(ctx, &newrelic.GetAuthenticationDomainArgs{
Name: "Test Authentication Domain",
}, nil)
if err != nil {
return err
}
fooUser, err := newrelic.NewUser(ctx, "foo", &newrelic.UserArgs{
Name: pulumi.String("Test User One"),
EmailId: pulumi.String("test_user_one@test.com"),
AuthenticationDomainId: pulumi.String(foo.Id),
UserType: pulumi.String("CORE_USER_TIER"),
})
if err != nil {
return err
}
bar, err := newrelic.NewUser(ctx, "bar", &newrelic.UserArgs{
Name: pulumi.String("Test User Two"),
EmailId: pulumi.String("test_user_two@test.com"),
AuthenticationDomainId: pulumi.String(foo.Id),
UserType: pulumi.String("BASIC_USER_TIER"),
})
if err != nil {
return err
}
_, err = newrelic.NewGroup(ctx, "foo", &newrelic.GroupArgs{
Name: pulumi.String("Test Group"),
AuthenticationDomainId: pulumi.String(foo.Id),
UserIds: pulumi.StringArray{
fooUser.ID(),
bar.ID(),
},
})
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 = NewRelic.GetAuthenticationDomain.Invoke(new()
{
Name = "Test Authentication Domain",
});
var fooUser = new NewRelic.User("foo", new()
{
Name = "Test User One",
EmailId = "test_user_one@test.com",
AuthenticationDomainId = foo.Apply(getAuthenticationDomainResult => getAuthenticationDomainResult.Id),
UserType = "CORE_USER_TIER",
});
var bar = new NewRelic.User("bar", new()
{
Name = "Test User Two",
EmailId = "test_user_two@test.com",
AuthenticationDomainId = foo.Apply(getAuthenticationDomainResult => getAuthenticationDomainResult.Id),
UserType = "BASIC_USER_TIER",
});
var fooGroup = new NewRelic.Group("foo", new()
{
Name = "Test Group",
AuthenticationDomainId = foo.Apply(getAuthenticationDomainResult => getAuthenticationDomainResult.Id),
UserIds = new[]
{
fooUser.Id,
bar.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.NewrelicFunctions;
import com.pulumi.newrelic.inputs.GetAuthenticationDomainArgs;
import com.pulumi.newrelic.User;
import com.pulumi.newrelic.UserArgs;
import com.pulumi.newrelic.Group;
import com.pulumi.newrelic.GroupArgs;
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) {
final var foo = NewrelicFunctions.getAuthenticationDomain(GetAuthenticationDomainArgs.builder()
.name("Test Authentication Domain")
.build());
var fooUser = new User("fooUser", UserArgs.builder()
.name("Test User One")
.emailId("test_user_one@test.com")
.authenticationDomainId(foo.applyValue(getAuthenticationDomainResult -> getAuthenticationDomainResult.id()))
.userType("CORE_USER_TIER")
.build());
var bar = new User("bar", UserArgs.builder()
.name("Test User Two")
.emailId("test_user_two@test.com")
.authenticationDomainId(foo.applyValue(getAuthenticationDomainResult -> getAuthenticationDomainResult.id()))
.userType("BASIC_USER_TIER")
.build());
var fooGroup = new Group("fooGroup", GroupArgs.builder()
.name("Test Group")
.authenticationDomainId(foo.applyValue(getAuthenticationDomainResult -> getAuthenticationDomainResult.id()))
.userIds(
fooUser.id(),
bar.id())
.build());
}
}
resources:
fooUser:
type: newrelic:User
name: foo
properties:
name: Test User One
emailId: test_user_one@test.com
authenticationDomainId: ${foo.id}
userType: CORE_USER_TIER
bar:
type: newrelic:User
properties:
name: Test User Two
emailId: test_user_two@test.com
authenticationDomainId: ${foo.id}
userType: BASIC_USER_TIER
fooGroup:
type: newrelic:Group
name: foo
properties:
name: Test Group
authenticationDomainId: ${foo.id}
userIds:
- ${fooUser.id}
- ${bar.id}
variables:
foo:
fn::invoke:
Function: newrelic:getAuthenticationDomain
Arguments:
name: Test Authentication Domain
Addition of Existing Users to a New Group
The following example demonstrates the usage of the newrelic.Group
resource to create a group, wherein the newrelic.User
data source is employed to associate existing users with the newly formed group.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = newrelic.getAuthenticationDomain({
name: "Test Authentication Domain",
});
const fooGetUser = foo.then(foo => newrelic.getUser({
authenticationDomainId: foo.id,
emailId: "test_user_one@test.com",
}));
const bar = foo.then(foo => newrelic.getUser({
authenticationDomainId: foo.id,
name: "Test User Two",
}));
const fooGroup = new newrelic.Group("foo", {
name: "Test Group",
authenticationDomainId: foo.then(foo => foo.id),
userIds: [
fooGetUser.then(fooGetUser => fooGetUser.id),
bar.then(bar => bar.id),
],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
foo_get_user = newrelic.get_user(authentication_domain_id=foo.id,
email_id="test_user_one@test.com")
bar = newrelic.get_user(authentication_domain_id=foo.id,
name="Test User Two")
foo_group = newrelic.Group("foo",
name="Test Group",
authentication_domain_id=foo.id,
user_ids=[
foo_get_user.id,
bar.id,
])
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 {
foo, err := newrelic.GetAuthenticationDomain(ctx, &newrelic.GetAuthenticationDomainArgs{
Name: "Test Authentication Domain",
}, nil)
if err != nil {
return err
}
fooGetUser, err := newrelic.LookupUser(ctx, &newrelic.LookupUserArgs{
AuthenticationDomainId: foo.Id,
EmailId: pulumi.StringRef("test_user_one@test.com"),
}, nil)
if err != nil {
return err
}
bar, err := newrelic.LookupUser(ctx, &newrelic.LookupUserArgs{
AuthenticationDomainId: foo.Id,
Name: pulumi.StringRef("Test User Two"),
}, nil)
if err != nil {
return err
}
_, err = newrelic.NewGroup(ctx, "foo", &newrelic.GroupArgs{
Name: pulumi.String("Test Group"),
AuthenticationDomainId: pulumi.String(foo.Id),
UserIds: pulumi.StringArray{
pulumi.String(fooGetUser.Id),
pulumi.String(bar.Id),
},
})
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 = NewRelic.GetAuthenticationDomain.Invoke(new()
{
Name = "Test Authentication Domain",
});
var fooGetUser = NewRelic.GetUser.Invoke(new()
{
AuthenticationDomainId = foo.Apply(getAuthenticationDomainResult => getAuthenticationDomainResult.Id),
EmailId = "test_user_one@test.com",
});
var bar = NewRelic.GetUser.Invoke(new()
{
AuthenticationDomainId = foo.Apply(getAuthenticationDomainResult => getAuthenticationDomainResult.Id),
Name = "Test User Two",
});
var fooGroup = new NewRelic.Group("foo", new()
{
Name = "Test Group",
AuthenticationDomainId = foo.Apply(getAuthenticationDomainResult => getAuthenticationDomainResult.Id),
UserIds = new[]
{
fooGetUser.Apply(getUserResult => getUserResult.Id),
bar.Apply(getUserResult => getUserResult.Id),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.NewrelicFunctions;
import com.pulumi.newrelic.inputs.GetAuthenticationDomainArgs;
import com.pulumi.newrelic.inputs.GetUserArgs;
import com.pulumi.newrelic.Group;
import com.pulumi.newrelic.GroupArgs;
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) {
final var foo = NewrelicFunctions.getAuthenticationDomain(GetAuthenticationDomainArgs.builder()
.name("Test Authentication Domain")
.build());
final var fooGetUser = NewrelicFunctions.getUser(GetUserArgs.builder()
.authenticationDomainId(foo.applyValue(getAuthenticationDomainResult -> getAuthenticationDomainResult.id()))
.emailId("test_user_one@test.com")
.build());
final var bar = NewrelicFunctions.getUser(GetUserArgs.builder()
.authenticationDomainId(foo.applyValue(getAuthenticationDomainResult -> getAuthenticationDomainResult.id()))
.name("Test User Two")
.build());
var fooGroup = new Group("fooGroup", GroupArgs.builder()
.name("Test Group")
.authenticationDomainId(foo.applyValue(getAuthenticationDomainResult -> getAuthenticationDomainResult.id()))
.userIds(
fooGetUser.applyValue(getUserResult -> getUserResult.id()),
bar.applyValue(getUserResult -> getUserResult.id()))
.build());
}
}
resources:
fooGroup:
type: newrelic:Group
name: foo
properties:
name: Test Group
authenticationDomainId: ${foo.id}
userIds:
- ${fooGetUser.id}
- ${bar.id}
variables:
foo:
fn::invoke:
Function: newrelic:getAuthenticationDomain
Arguments:
name: Test Authentication Domain
fooGetUser:
fn::invoke:
Function: newrelic:getUser
Arguments:
authenticationDomainId: ${foo.id}
emailId: test_user_one@test.com
bar:
fn::invoke:
Function: newrelic:getUser
Arguments:
authenticationDomainId: ${foo.id}
name: Test User Two
NOTE Please note that the addition of users to groups is only possible when both the group and the users to be added to it belong to the same authentication domain. If the group being created and the users being added to it belong to different authentication domains, an error indicating
user not found
or an equivalent error will be thrown.
Create Group Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Group(name: string, args: GroupArgs, opts?: CustomResourceOptions);
@overload
def Group(resource_name: str,
args: GroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Group(resource_name: str,
opts: Optional[ResourceOptions] = None,
authentication_domain_id: Optional[str] = None,
name: Optional[str] = None,
user_ids: Optional[Sequence[str]] = None)
func NewGroup(ctx *Context, name string, args GroupArgs, opts ...ResourceOption) (*Group, error)
public Group(string name, GroupArgs args, CustomResourceOptions? opts = null)
type: newrelic:Group
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 GroupArgs
- 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 GroupArgs
- 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 GroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupArgs
- 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 groupResource = new NewRelic.Group("groupResource", new()
{
AuthenticationDomainId = "string",
Name = "string",
UserIds = new[]
{
"string",
},
});
example, err := newrelic.NewGroup(ctx, "groupResource", &newrelic.GroupArgs{
AuthenticationDomainId: pulumi.String("string"),
Name: pulumi.String("string"),
UserIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var groupResource = new Group("groupResource", GroupArgs.builder()
.authenticationDomainId("string")
.name("string")
.userIds("string")
.build());
group_resource = newrelic.Group("groupResource",
authentication_domain_id="string",
name="string",
user_ids=["string"])
const groupResource = new newrelic.Group("groupResource", {
authenticationDomainId: "string",
name: "string",
userIds: ["string"],
});
type: newrelic:Group
properties:
authenticationDomainId: string
name: string
userIds:
- string
Group 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 Group resource accepts the following input properties:
- Authentication
Domain stringId - The ID of the authentication domain to which the group to be created would belong.
- Name string
- The name of the group to be created.
- User
Ids List<string> A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- Authentication
Domain stringId - The ID of the authentication domain to which the group to be created would belong.
- Name string
- The name of the group to be created.
- User
Ids []string A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication
Domain StringId - The ID of the authentication domain to which the group to be created would belong.
- name String
- The name of the group to be created.
- user
Ids List<String> A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication
Domain stringId - The ID of the authentication domain to which the group to be created would belong.
- name string
- The name of the group to be created.
- user
Ids string[] A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication_
domain_ strid - The ID of the authentication domain to which the group to be created would belong.
- name str
- The name of the group to be created.
- user_
ids Sequence[str] A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication
Domain StringId - The ID of the authentication domain to which the group to be created would belong.
- name String
- The name of the group to be created.
- user
Ids List<String> A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the Group 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 Group Resource
Get an existing Group 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?: GroupState, opts?: CustomResourceOptions): Group
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication_domain_id: Optional[str] = None,
name: Optional[str] = None,
user_ids: Optional[Sequence[str]] = None) -> Group
func GetGroup(ctx *Context, name string, id IDInput, state *GroupState, opts ...ResourceOption) (*Group, error)
public static Group Get(string name, Input<string> id, GroupState? state, CustomResourceOptions? opts = null)
public static Group get(String name, Output<String> id, GroupState 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.
- Authentication
Domain stringId - The ID of the authentication domain to which the group to be created would belong.
- Name string
- The name of the group to be created.
- User
Ids List<string> A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- Authentication
Domain stringId - The ID of the authentication domain to which the group to be created would belong.
- Name string
- The name of the group to be created.
- User
Ids []string A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication
Domain StringId - The ID of the authentication domain to which the group to be created would belong.
- name String
- The name of the group to be created.
- user
Ids List<String> A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication
Domain stringId - The ID of the authentication domain to which the group to be created would belong.
- name string
- The name of the group to be created.
- user
Ids string[] A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication_
domain_ strid - The ID of the authentication domain to which the group to be created would belong.
- name str
- The name of the group to be created.
- user_
ids Sequence[str] A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
- authentication
Domain StringId - The ID of the authentication domain to which the group to be created would belong.
- name String
- The name of the group to be created.
- user
Ids List<String> A list of IDs of users to be included in the group to be created.
NOTE The ID of an authentication domain can be retrieved using its name, via the data source
newrelic.getAuthenticationDomain
, as shown in the example above. Head over to the documentation of this data source for more details and examples.WARNING: Changing the
authentication_domain_id
of anewrelic.Group
resource that has already been applied would result in a replacement of the resource – destruction of the existing resource, followed by the addition of a new resource with the specified configuration. This is due to the fact that updating theauthentication_domain_id
of an existing group is not supported.
Import
A group can be imported using its ID. Example:
$ pulumi import newrelic:index/group:Group foo <group_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.