newrelic.Group
Explore with Pulumi AI
Import
A group can be imported using its ID. Example:
$ pulumi import newrelic:index/group:Group foo <group_id>
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelic
Terraform Provider.