opennebula.Acl
Explore with Pulumi AI
Provides an OpenNebula ACL resource.
This resource allows you to manage ACLs on your OpenNebula clusters. When applied, a new ACL is created. When destroyed, this ACL is removed. Note that ACLs currently cannot be changed, hence they are deleted and re-created upon change.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opennebula from "@pulumi/opennebula";
const example = new opennebula.Acl("example", {
resource: "HOST+CLUSTER+DATASTORE/*",
rights: "USE+MANAGE+ADMIN",
user: "@1",
});
import pulumi
import pulumi_opennebula as opennebula
example = opennebula.Acl("example",
resource="HOST+CLUSTER+DATASTORE/*",
rights="USE+MANAGE+ADMIN",
user="@1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opennebula.NewAcl(ctx, "example", &opennebula.AclArgs{
Resource: pulumi.String("HOST+CLUSTER+DATASTORE/*"),
Rights: pulumi.String("USE+MANAGE+ADMIN"),
User: pulumi.String("@1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opennebula = Pulumi.Opennebula;
return await Deployment.RunAsync(() =>
{
var example = new Opennebula.Acl("example", new()
{
Resource = "HOST+CLUSTER+DATASTORE/*",
Rights = "USE+MANAGE+ADMIN",
User = "@1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opennebula.Acl;
import com.pulumi.opennebula.AclArgs;
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) {
var example = new Acl("example", AclArgs.builder()
.resource("HOST+CLUSTER+DATASTORE/*")
.rights("USE+MANAGE+ADMIN")
.user("@1")
.build());
}
}
resources:
example:
type: opennebula:Acl
properties:
resource: HOST+CLUSTER+DATASTORE/*
rights: USE+MANAGE+ADMIN
user: '@1'
Create Acl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Acl(name: string, args: AclArgs, opts?: CustomResourceOptions);
@overload
def Acl(resource_name: str,
args: AclArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Acl(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource: Optional[str] = None,
rights: Optional[str] = None,
user: Optional[str] = None,
acl_id: Optional[str] = None,
zone: Optional[str] = None)
func NewAcl(ctx *Context, name string, args AclArgs, opts ...ResourceOption) (*Acl, error)
public Acl(string name, AclArgs args, CustomResourceOptions? opts = null)
type: opennebula:Acl
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 AclArgs
- 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 AclArgs
- 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 AclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AclArgs
- 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 aclResource = new Opennebula.Acl("aclResource", new()
{
Resource = "string",
Rights = "string",
User = "string",
AclId = "string",
Zone = "string",
});
example, err := opennebula.NewAcl(ctx, "aclResource", &opennebula.AclArgs{
Resource: pulumi.String("string"),
Rights: pulumi.String("string"),
User: pulumi.String("string"),
AclId: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var aclResource = new Acl("aclResource", AclArgs.builder()
.resource("string")
.rights("string")
.user("string")
.aclId("string")
.zone("string")
.build());
acl_resource = opennebula.Acl("aclResource",
resource="string",
rights="string",
user="string",
acl_id="string",
zone="string")
const aclResource = new opennebula.Acl("aclResource", {
resource: "string",
rights: "string",
user: "string",
aclId: "string",
zone: "string",
});
type: opennebula:Acl
properties:
aclId: string
resource: string
rights: string
user: string
zone: string
Acl 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 Acl resource accepts the following input properties:
- Resource string
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- Rights string
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- User string
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- Acl
Id string - Zone string
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- Resource string
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- Rights string
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- User string
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- Acl
Id string - Zone string
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- resource String
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights String
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user String
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- acl
Id String - zone String
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- resource string
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights string
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user string
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- acl
Id string - zone string
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- resource str
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights str
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user str
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- acl_
id str - zone str
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- resource String
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights String
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user String
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- acl
Id String - zone String
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
Outputs
All input properties are implicitly available as output properties. Additionally, the Acl 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 Acl Resource
Get an existing Acl 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?: AclState, opts?: CustomResourceOptions): Acl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_id: Optional[str] = None,
resource: Optional[str] = None,
rights: Optional[str] = None,
user: Optional[str] = None,
zone: Optional[str] = None) -> Acl
func GetAcl(ctx *Context, name string, id IDInput, state *AclState, opts ...ResourceOption) (*Acl, error)
public static Acl Get(string name, Input<string> id, AclState? state, CustomResourceOptions? opts = null)
public static Acl get(String name, Output<String> id, AclState state, CustomResourceOptions options)
resources: _: type: opennebula:Acl 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.
- Acl
Id string - Resource string
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- Rights string
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- User string
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- Zone string
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- Acl
Id string - Resource string
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- Rights string
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- User string
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- Zone string
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- acl
Id String - resource String
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights String
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user String
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- zone String
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- acl
Id string - resource string
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights string
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user string
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- zone string
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- acl_
id str - resource str
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights str
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user str
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- zone str
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
- acl
Id String - resource String
Resource component of the new rule. Any combination of valid resources, separated by a
+
.Must contain a slash for resource subset. Resource subset string uses the same syntax as the User-string, and additionally supports
%<id>
to limit by Cluster ID.The following objects are valid:
- VM
- HOST
- NET
- IMAGE
- USER
- TEMPLATE
- GROUP
- DATASTORE
- CLUSTER
- DOCUMENT
- ZONE
- SECGROUP
- VDC
- VROUTER
- MARKETPLACE
- MARKETPLACEAPP
- VMGROUP
- VNTEMPLATE
- rights String
Rights component of the new rule. Any combination of valid Rights, separated by a
+
.The following rights are valid:
- USE
- MANAGE
- ADMIN
- CREATE
- user String
- User component of the new rule.
#<id>
matches a single user id@<id>
matches a group id*
matches everything.
- zone String
- Zone component of the new rule.
#<id>
matches a single zone id*
matches everything.
Import
opennebula_acl
can be imported using its ID:
$ pulumi import opennebula:index/acl:Acl 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.