1. Packages
  2. OpenStack
  3. API Docs
  4. sharedfilesystem
  5. SecurityService
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

openstack.sharedfilesystem.SecurityService

Explore with Pulumi AI

openstack logo
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

    Use this resource to configure a security service.

    Note: All arguments including the security service password will be stored in the raw state as plain-text. Read more about sensitive data in state.

    A security service stores configuration information for clients for authentication and authorization (AuthN/AuthZ). For example, a share server will be the client for an existing service such as LDAP, Kerberos, or Microsoft Active Directory.

    Minimum supported Manila microversion is 2.7.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const securityservice1 = new openstack.sharedfilesystem.SecurityService("securityservice_1", {
        name: "security",
        description: "created by terraform",
        type: "active_directory",
        server: "192.168.199.10",
        dnsIp: "192.168.199.10",
        domain: "example.com",
        ou: "CN=Computers,DC=example,DC=com",
        user: "joinDomainUser",
        password: "s8cret",
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    securityservice1 = openstack.sharedfilesystem.SecurityService("securityservice_1",
        name="security",
        description="created by terraform",
        type="active_directory",
        server="192.168.199.10",
        dns_ip="192.168.199.10",
        domain="example.com",
        ou="CN=Computers,DC=example,DC=com",
        user="joinDomainUser",
        password="s8cret")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/sharedfilesystem"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sharedfilesystem.NewSecurityService(ctx, "securityservice_1", &sharedfilesystem.SecurityServiceArgs{
    			Name:        pulumi.String("security"),
    			Description: pulumi.String("created by terraform"),
    			Type:        pulumi.String("active_directory"),
    			Server:      pulumi.String("192.168.199.10"),
    			DnsIp:       pulumi.String("192.168.199.10"),
    			Domain:      pulumi.String("example.com"),
    			Ou:          pulumi.String("CN=Computers,DC=example,DC=com"),
    			User:        pulumi.String("joinDomainUser"),
    			Password:    pulumi.String("s8cret"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var securityservice1 = new OpenStack.SharedFileSystem.SecurityService("securityservice_1", new()
        {
            Name = "security",
            Description = "created by terraform",
            Type = "active_directory",
            Server = "192.168.199.10",
            DnsIp = "192.168.199.10",
            Domain = "example.com",
            Ou = "CN=Computers,DC=example,DC=com",
            User = "joinDomainUser",
            Password = "s8cret",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.sharedfilesystem.SecurityService;
    import com.pulumi.openstack.sharedfilesystem.SecurityServiceArgs;
    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 securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder()        
                .name("security")
                .description("created by terraform")
                .type("active_directory")
                .server("192.168.199.10")
                .dnsIp("192.168.199.10")
                .domain("example.com")
                .ou("CN=Computers,DC=example,DC=com")
                .user("joinDomainUser")
                .password("s8cret")
                .build());
    
        }
    }
    
    resources:
      securityservice1:
        type: openstack:sharedfilesystem:SecurityService
        name: securityservice_1
        properties:
          name: security
          description: created by terraform
          type: active_directory
          server: 192.168.199.10
          dnsIp: 192.168.199.10
          domain: example.com
          ou: CN=Computers,DC=example,DC=com
          user: joinDomainUser
          password: s8cret
    

    Create SecurityService Resource

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

    Constructor syntax

    new SecurityService(name: string, args: SecurityServiceArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityService(resource_name: str,
                        args: SecurityServiceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityService(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        type: Optional[str] = None,
                        description: Optional[str] = None,
                        dns_ip: Optional[str] = None,
                        domain: Optional[str] = None,
                        name: Optional[str] = None,
                        ou: Optional[str] = None,
                        password: Optional[str] = None,
                        region: Optional[str] = None,
                        server: Optional[str] = None,
                        user: Optional[str] = None)
    func NewSecurityService(ctx *Context, name string, args SecurityServiceArgs, opts ...ResourceOption) (*SecurityService, error)
    public SecurityService(string name, SecurityServiceArgs args, CustomResourceOptions? opts = null)
    public SecurityService(String name, SecurityServiceArgs args)
    public SecurityService(String name, SecurityServiceArgs args, CustomResourceOptions options)
    
    type: openstack:sharedfilesystem:SecurityService
    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 SecurityServiceArgs
    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 SecurityServiceArgs
    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 SecurityServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityServiceArgs
    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 securityServiceResource = new OpenStack.SharedFileSystem.SecurityService("securityServiceResource", new()
    {
        Type = "string",
        Description = "string",
        DnsIp = "string",
        Domain = "string",
        Name = "string",
        Ou = "string",
        Password = "string",
        Region = "string",
        Server = "string",
        User = "string",
    });
    
    example, err := sharedfilesystem.NewSecurityService(ctx, "securityServiceResource", &sharedfilesystem.SecurityServiceArgs{
    	Type:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    	DnsIp:       pulumi.String("string"),
    	Domain:      pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Ou:          pulumi.String("string"),
    	Password:    pulumi.String("string"),
    	Region:      pulumi.String("string"),
    	Server:      pulumi.String("string"),
    	User:        pulumi.String("string"),
    })
    
    var securityServiceResource = new SecurityService("securityServiceResource", SecurityServiceArgs.builder()
        .type("string")
        .description("string")
        .dnsIp("string")
        .domain("string")
        .name("string")
        .ou("string")
        .password("string")
        .region("string")
        .server("string")
        .user("string")
        .build());
    
    security_service_resource = openstack.sharedfilesystem.SecurityService("securityServiceResource",
        type="string",
        description="string",
        dns_ip="string",
        domain="string",
        name="string",
        ou="string",
        password="string",
        region="string",
        server="string",
        user="string")
    
    const securityServiceResource = new openstack.sharedfilesystem.SecurityService("securityServiceResource", {
        type: "string",
        description: "string",
        dnsIp: "string",
        domain: "string",
        name: "string",
        ou: "string",
        password: "string",
        region: "string",
        server: "string",
        user: "string",
    });
    
    type: openstack:sharedfilesystem:SecurityService
    properties:
        description: string
        dnsIp: string
        domain: string
        name: string
        ou: string
        password: string
        region: string
        server: string
        type: string
        user: string
    

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

    Type string
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    Description string
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    DnsIp string
    The security service DNS IP address that is used inside the tenant network.
    Domain string
    The security service domain.
    Name string
    The name of the security service. Changing this updates the name of the existing security service.
    Ou string
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    Password string
    The user password, if you specify a user.
    Region string
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    Server string
    The security service host name or IP address.
    User string
    The security service user or group name that is used by the tenant.
    Type string
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    Description string
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    DnsIp string
    The security service DNS IP address that is used inside the tenant network.
    Domain string
    The security service domain.
    Name string
    The name of the security service. Changing this updates the name of the existing security service.
    Ou string
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    Password string
    The user password, if you specify a user.
    Region string
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    Server string
    The security service host name or IP address.
    User string
    The security service user or group name that is used by the tenant.
    type String
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    description String
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dnsIp String
    The security service DNS IP address that is used inside the tenant network.
    domain String
    The security service domain.
    name String
    The name of the security service. Changing this updates the name of the existing security service.
    ou String
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password String
    The user password, if you specify a user.
    region String
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server String
    The security service host name or IP address.
    user String
    The security service user or group name that is used by the tenant.
    type string
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    description string
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dnsIp string
    The security service DNS IP address that is used inside the tenant network.
    domain string
    The security service domain.
    name string
    The name of the security service. Changing this updates the name of the existing security service.
    ou string
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password string
    The user password, if you specify a user.
    region string
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server string
    The security service host name or IP address.
    user string
    The security service user or group name that is used by the tenant.
    type str
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    description str
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dns_ip str
    The security service DNS IP address that is used inside the tenant network.
    domain str
    The security service domain.
    name str
    The name of the security service. Changing this updates the name of the existing security service.
    ou str
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password str
    The user password, if you specify a user.
    region str
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server str
    The security service host name or IP address.
    user str
    The security service user or group name that is used by the tenant.
    type String
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    description String
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dnsIp String
    The security service DNS IP address that is used inside the tenant network.
    domain String
    The security service domain.
    name String
    The name of the security service. Changing this updates the name of the existing security service.
    ou String
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password String
    The user password, if you specify a user.
    region String
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server String
    The security service host name or IP address.
    user String
    The security service user or group name that is used by the tenant.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    The owner of the Security Service.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    The owner of the Security Service.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    The owner of the Security Service.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    The owner of the Security Service.
    id str
    The provider-assigned unique ID for this managed resource.
    project_id str
    The owner of the Security Service.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    The owner of the Security Service.

    Look up Existing SecurityService Resource

    Get an existing SecurityService 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?: SecurityServiceState, opts?: CustomResourceOptions): SecurityService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            dns_ip: Optional[str] = None,
            domain: Optional[str] = None,
            name: Optional[str] = None,
            ou: Optional[str] = None,
            password: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            server: Optional[str] = None,
            type: Optional[str] = None,
            user: Optional[str] = None) -> SecurityService
    func GetSecurityService(ctx *Context, name string, id IDInput, state *SecurityServiceState, opts ...ResourceOption) (*SecurityService, error)
    public static SecurityService Get(string name, Input<string> id, SecurityServiceState? state, CustomResourceOptions? opts = null)
    public static SecurityService get(String name, Output<String> id, SecurityServiceState 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.
    The following state arguments are supported:
    Description string
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    DnsIp string
    The security service DNS IP address that is used inside the tenant network.
    Domain string
    The security service domain.
    Name string
    The name of the security service. Changing this updates the name of the existing security service.
    Ou string
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    Password string
    The user password, if you specify a user.
    ProjectId string
    The owner of the Security Service.
    Region string
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    Server string
    The security service host name or IP address.
    Type string
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    User string
    The security service user or group name that is used by the tenant.
    Description string
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    DnsIp string
    The security service DNS IP address that is used inside the tenant network.
    Domain string
    The security service domain.
    Name string
    The name of the security service. Changing this updates the name of the existing security service.
    Ou string
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    Password string
    The user password, if you specify a user.
    ProjectId string
    The owner of the Security Service.
    Region string
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    Server string
    The security service host name or IP address.
    Type string
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    User string
    The security service user or group name that is used by the tenant.
    description String
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dnsIp String
    The security service DNS IP address that is used inside the tenant network.
    domain String
    The security service domain.
    name String
    The name of the security service. Changing this updates the name of the existing security service.
    ou String
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password String
    The user password, if you specify a user.
    projectId String
    The owner of the Security Service.
    region String
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server String
    The security service host name or IP address.
    type String
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    user String
    The security service user or group name that is used by the tenant.
    description string
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dnsIp string
    The security service DNS IP address that is used inside the tenant network.
    domain string
    The security service domain.
    name string
    The name of the security service. Changing this updates the name of the existing security service.
    ou string
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password string
    The user password, if you specify a user.
    projectId string
    The owner of the Security Service.
    region string
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server string
    The security service host name or IP address.
    type string
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    user string
    The security service user or group name that is used by the tenant.
    description str
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dns_ip str
    The security service DNS IP address that is used inside the tenant network.
    domain str
    The security service domain.
    name str
    The name of the security service. Changing this updates the name of the existing security service.
    ou str
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password str
    The user password, if you specify a user.
    project_id str
    The owner of the Security Service.
    region str
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server str
    The security service host name or IP address.
    type str
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    user str
    The security service user or group name that is used by the tenant.
    description String
    The human-readable description for the security service. Changing this updates the description of the existing security service.
    dnsIp String
    The security service DNS IP address that is used inside the tenant network.
    domain String
    The security service domain.
    name String
    The name of the security service. Changing this updates the name of the existing security service.
    ou String
    The security service ou. An organizational unit can be added to specify where the share ends up. New in Manila microversion 2.44.
    password String
    The user password, if you specify a user.
    projectId String
    The owner of the Security Service.
    region String
    The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a security service. If omitted, the region argument of the provider is used. Changing this creates a new security service.
    server String
    The security service host name or IP address.
    type String
    The security service type - can either be active_directory, kerberos or ldap. Changing this updates the existing security service.
    user String
    The security service user or group name that is used by the tenant.

    Import

    This resource can be imported by specifying the ID of the security service:

    $ pulumi import openstack:sharedfilesystem/securityService:SecurityService securityservice_1 id
    

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

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi