1. Packages
  2. Opennebula Provider
  3. API Docs
  4. GroupAdmins
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

opennebula.GroupAdmins

Explore with Pulumi AI

opennebula logo
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

    Provides an OpenNebula group administrators resource.

    This resource allows you to manage group administrators on OpenNebula. When applied, adminstrator are added or removed from the group. When destroyed, all adminstrators are removed from the group.

    Create GroupAdmins Resource

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

    Constructor syntax

    new GroupAdmins(name: string, args: GroupAdminsArgs, opts?: CustomResourceOptions);
    @overload
    def GroupAdmins(resource_name: str,
                    args: GroupAdminsArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupAdmins(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    group_id: Optional[float] = None,
                    users_ids: Optional[Sequence[float]] = None,
                    group_admins_id: Optional[str] = None)
    func NewGroupAdmins(ctx *Context, name string, args GroupAdminsArgs, opts ...ResourceOption) (*GroupAdmins, error)
    public GroupAdmins(string name, GroupAdminsArgs args, CustomResourceOptions? opts = null)
    public GroupAdmins(String name, GroupAdminsArgs args)
    public GroupAdmins(String name, GroupAdminsArgs args, CustomResourceOptions options)
    
    type: opennebula:GroupAdmins
    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 GroupAdminsArgs
    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 GroupAdminsArgs
    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 GroupAdminsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupAdminsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupAdminsArgs
    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 groupAdminsResource = new Opennebula.GroupAdmins("groupAdminsResource", new()
    {
        GroupId = 0,
        UsersIds = new[]
        {
            0,
        },
        GroupAdminsId = "string",
    });
    
    example, err := opennebula.NewGroupAdmins(ctx, "groupAdminsResource", &opennebula.GroupAdminsArgs{
    	GroupId: pulumi.Float64(0),
    	UsersIds: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	GroupAdminsId: pulumi.String("string"),
    })
    
    var groupAdminsResource = new GroupAdmins("groupAdminsResource", GroupAdminsArgs.builder()
        .groupId(0)
        .usersIds(0)
        .groupAdminsId("string")
        .build());
    
    group_admins_resource = opennebula.GroupAdmins("groupAdminsResource",
        group_id=0,
        users_ids=[0],
        group_admins_id="string")
    
    const groupAdminsResource = new opennebula.GroupAdmins("groupAdminsResource", {
        groupId: 0,
        usersIds: [0],
        groupAdminsId: "string",
    });
    
    type: opennebula:GroupAdmins
    properties:
        groupAdminsId: string
        groupId: 0
        usersIds:
            - 0
    

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

    GroupId double
    The id of the related group.
    UsersIds List<double>
    List of users ids
    GroupAdminsId string
    GroupId float64
    The id of the related group.
    UsersIds []float64
    List of users ids
    GroupAdminsId string
    groupId Double
    The id of the related group.
    usersIds List<Double>
    List of users ids
    groupAdminsId String
    groupId number
    The id of the related group.
    usersIds number[]
    List of users ids
    groupAdminsId string
    group_id float
    The id of the related group.
    users_ids Sequence[float]
    List of users ids
    group_admins_id str
    groupId Number
    The id of the related group.
    usersIds List<Number>
    List of users ids
    groupAdminsId String

    Outputs

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

    Get an existing GroupAdmins 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?: GroupAdminsState, opts?: CustomResourceOptions): GroupAdmins
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_admins_id: Optional[str] = None,
            group_id: Optional[float] = None,
            users_ids: Optional[Sequence[float]] = None) -> GroupAdmins
    func GetGroupAdmins(ctx *Context, name string, id IDInput, state *GroupAdminsState, opts ...ResourceOption) (*GroupAdmins, error)
    public static GroupAdmins Get(string name, Input<string> id, GroupAdminsState? state, CustomResourceOptions? opts = null)
    public static GroupAdmins get(String name, Output<String> id, GroupAdminsState state, CustomResourceOptions options)
    resources:  _:    type: opennebula:GroupAdmins    get:      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:
    GroupAdminsId string
    GroupId double
    The id of the related group.
    UsersIds List<double>
    List of users ids
    GroupAdminsId string
    GroupId float64
    The id of the related group.
    UsersIds []float64
    List of users ids
    groupAdminsId String
    groupId Double
    The id of the related group.
    usersIds List<Double>
    List of users ids
    groupAdminsId string
    groupId number
    The id of the related group.
    usersIds number[]
    List of users ids
    group_admins_id str
    group_id float
    The id of the related group.
    users_ids Sequence[float]
    List of users ids
    groupAdminsId String
    groupId Number
    The id of the related group.
    usersIds List<Number>
    List of users ids

    Import

    opennebula_group_admins can be imported using the group ID:

    $ pulumi import opennebula:index/groupAdmins:GroupAdmins example 123
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opennebula opennebula/terraform-provider-opennebula
    License
    Notes
    This Pulumi package is based on the opennebula Terraform Provider.
    opennebula logo
    opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula