1. Packages
  2. Vkcs Provider
  3. API Docs
  4. SharedfilesystemShareAccess
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.SharedfilesystemShareAccess

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const opencloud = new vkcs.SharedfilesystemShareAccess("opencloud", {
        shareId: vkcs_sharedfilesystem_share.data.id,
        accessType: "ip",
        accessTo: "192.168.199.11",
        accessLevel: "rw",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    opencloud = vkcs.SharedfilesystemShareAccess("opencloud",
        share_id=vkcs_sharedfilesystem_share["data"]["id"],
        access_type="ip",
        access_to="192.168.199.11",
        access_level="rw")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.NewSharedfilesystemShareAccess(ctx, "opencloud", &vkcs.SharedfilesystemShareAccessArgs{
    			ShareId:     pulumi.Any(vkcs_sharedfilesystem_share.Data.Id),
    			AccessType:  pulumi.String("ip"),
    			AccessTo:    pulumi.String("192.168.199.11"),
    			AccessLevel: pulumi.String("rw"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var opencloud = new Vkcs.SharedfilesystemShareAccess("opencloud", new()
        {
            ShareId = vkcs_sharedfilesystem_share.Data.Id,
            AccessType = "ip",
            AccessTo = "192.168.199.11",
            AccessLevel = "rw",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.SharedfilesystemShareAccess;
    import com.pulumi.vkcs.SharedfilesystemShareAccessArgs;
    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 opencloud = new SharedfilesystemShareAccess("opencloud", SharedfilesystemShareAccessArgs.builder()
                .shareId(vkcs_sharedfilesystem_share.data().id())
                .accessType("ip")
                .accessTo("192.168.199.11")
                .accessLevel("rw")
                .build());
    
        }
    }
    
    resources:
      opencloud:
        type: vkcs:SharedfilesystemShareAccess
        properties:
          shareId: ${vkcs_sharedfilesystem_share.data.id}
          accessType: ip
          accessTo: 192.168.199.11
          accessLevel: rw
    

    Create SharedfilesystemShareAccess Resource

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

    Constructor syntax

    new SharedfilesystemShareAccess(name: string, args: SharedfilesystemShareAccessArgs, opts?: CustomResourceOptions);
    @overload
    def SharedfilesystemShareAccess(resource_name: str,
                                    args: SharedfilesystemShareAccessArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SharedfilesystemShareAccess(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    access_level: Optional[str] = None,
                                    access_to: Optional[str] = None,
                                    access_type: Optional[str] = None,
                                    share_id: Optional[str] = None,
                                    region: Optional[str] = None,
                                    sharedfilesystem_share_access_id: Optional[str] = None,
                                    timeouts: Optional[SharedfilesystemShareAccessTimeoutsArgs] = None)
    func NewSharedfilesystemShareAccess(ctx *Context, name string, args SharedfilesystemShareAccessArgs, opts ...ResourceOption) (*SharedfilesystemShareAccess, error)
    public SharedfilesystemShareAccess(string name, SharedfilesystemShareAccessArgs args, CustomResourceOptions? opts = null)
    public SharedfilesystemShareAccess(String name, SharedfilesystemShareAccessArgs args)
    public SharedfilesystemShareAccess(String name, SharedfilesystemShareAccessArgs args, CustomResourceOptions options)
    
    type: vkcs:SharedfilesystemShareAccess
    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 SharedfilesystemShareAccessArgs
    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 SharedfilesystemShareAccessArgs
    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 SharedfilesystemShareAccessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SharedfilesystemShareAccessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SharedfilesystemShareAccessArgs
    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 sharedfilesystemShareAccessResource = new Vkcs.SharedfilesystemShareAccess("sharedfilesystemShareAccessResource", new()
    {
        AccessLevel = "string",
        AccessTo = "string",
        AccessType = "string",
        ShareId = "string",
        Region = "string",
        SharedfilesystemShareAccessId = "string",
        Timeouts = new Vkcs.Inputs.SharedfilesystemShareAccessTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := vkcs.NewSharedfilesystemShareAccess(ctx, "sharedfilesystemShareAccessResource", &vkcs.SharedfilesystemShareAccessArgs{
    	AccessLevel:                   pulumi.String("string"),
    	AccessTo:                      pulumi.String("string"),
    	AccessType:                    pulumi.String("string"),
    	ShareId:                       pulumi.String("string"),
    	Region:                        pulumi.String("string"),
    	SharedfilesystemShareAccessId: pulumi.String("string"),
    	Timeouts: &vkcs.SharedfilesystemShareAccessTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var sharedfilesystemShareAccessResource = new SharedfilesystemShareAccess("sharedfilesystemShareAccessResource", SharedfilesystemShareAccessArgs.builder()
        .accessLevel("string")
        .accessTo("string")
        .accessType("string")
        .shareId("string")
        .region("string")
        .sharedfilesystemShareAccessId("string")
        .timeouts(SharedfilesystemShareAccessTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    sharedfilesystem_share_access_resource = vkcs.SharedfilesystemShareAccess("sharedfilesystemShareAccessResource",
        access_level="string",
        access_to="string",
        access_type="string",
        share_id="string",
        region="string",
        sharedfilesystem_share_access_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const sharedfilesystemShareAccessResource = new vkcs.SharedfilesystemShareAccess("sharedfilesystemShareAccessResource", {
        accessLevel: "string",
        accessTo: "string",
        accessType: "string",
        shareId: "string",
        region: "string",
        sharedfilesystemShareAccessId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: vkcs:SharedfilesystemShareAccess
    properties:
        accessLevel: string
        accessTo: string
        accessType: string
        region: string
        shareId: string
        sharedfilesystemShareAccessId: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    AccessLevel string
    required string → The access level to the share. Can either be rw or ro.
    AccessTo string
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    ShareId string
    required string → The UUID of the share to which you are granted access.
    Region string
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    SharedfilesystemShareAccessId string
    string → ID of the resource.
    Timeouts SharedfilesystemShareAccessTimeouts
    AccessLevel string
    required string → The access level to the share. Can either be rw or ro.
    AccessTo string
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    ShareId string
    required string → The UUID of the share to which you are granted access.
    Region string
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    SharedfilesystemShareAccessId string
    string → ID of the resource.
    Timeouts SharedfilesystemShareAccessTimeoutsArgs
    accessLevel String
    required string → The access level to the share. Can either be rw or ro.
    accessTo String
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    shareId String
    required string → The UUID of the share to which you are granted access.
    region String
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    sharedfilesystemShareAccessId String
    string → ID of the resource.
    timeouts SharedfilesystemShareAccessTimeouts
    accessLevel string
    required string → The access level to the share. Can either be rw or ro.
    accessTo string
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType string
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    shareId string
    required string → The UUID of the share to which you are granted access.
    region string
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    sharedfilesystemShareAccessId string
    string → ID of the resource.
    timeouts SharedfilesystemShareAccessTimeouts
    access_level str
    required string → The access level to the share. Can either be rw or ro.
    access_to str
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    access_type str
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    share_id str
    required string → The UUID of the share to which you are granted access.
    region str
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    sharedfilesystem_share_access_id str
    string → ID of the resource.
    timeouts SharedfilesystemShareAccessTimeoutsArgs
    accessLevel String
    required string → The access level to the share. Can either be rw or ro.
    accessTo String
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    shareId String
    required string → The UUID of the share to which you are granted access.
    region String
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    sharedfilesystemShareAccessId String
    string → ID of the resource.
    timeouts Property Map

    Outputs

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

    Get an existing SharedfilesystemShareAccess 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?: SharedfilesystemShareAccessState, opts?: CustomResourceOptions): SharedfilesystemShareAccess
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_level: Optional[str] = None,
            access_to: Optional[str] = None,
            access_type: Optional[str] = None,
            region: Optional[str] = None,
            share_id: Optional[str] = None,
            sharedfilesystem_share_access_id: Optional[str] = None,
            timeouts: Optional[SharedfilesystemShareAccessTimeoutsArgs] = None) -> SharedfilesystemShareAccess
    func GetSharedfilesystemShareAccess(ctx *Context, name string, id IDInput, state *SharedfilesystemShareAccessState, opts ...ResourceOption) (*SharedfilesystemShareAccess, error)
    public static SharedfilesystemShareAccess Get(string name, Input<string> id, SharedfilesystemShareAccessState? state, CustomResourceOptions? opts = null)
    public static SharedfilesystemShareAccess get(String name, Output<String> id, SharedfilesystemShareAccessState state, CustomResourceOptions options)
    resources:  _:    type: vkcs:SharedfilesystemShareAccess    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:
    AccessLevel string
    required string → The access level to the share. Can either be rw or ro.
    AccessTo string
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    Region string
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    ShareId string
    required string → The UUID of the share to which you are granted access.
    SharedfilesystemShareAccessId string
    string → ID of the resource.
    Timeouts SharedfilesystemShareAccessTimeouts
    AccessLevel string
    required string → The access level to the share. Can either be rw or ro.
    AccessTo string
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    Region string
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    ShareId string
    required string → The UUID of the share to which you are granted access.
    SharedfilesystemShareAccessId string
    string → ID of the resource.
    Timeouts SharedfilesystemShareAccessTimeoutsArgs
    accessLevel String
    required string → The access level to the share. Can either be rw or ro.
    accessTo String
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    region String
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    shareId String
    required string → The UUID of the share to which you are granted access.
    sharedfilesystemShareAccessId String
    string → ID of the resource.
    timeouts SharedfilesystemShareAccessTimeouts
    accessLevel string
    required string → The access level to the share. Can either be rw or ro.
    accessTo string
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType string
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    region string
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    shareId string
    required string → The UUID of the share to which you are granted access.
    sharedfilesystemShareAccessId string
    string → ID of the resource.
    timeouts SharedfilesystemShareAccessTimeouts
    access_level str
    required string → The access level to the share. Can either be rw or ro.
    access_to str
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    access_type str
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    region str
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    share_id str
    required string → The UUID of the share to which you are granted access.
    sharedfilesystem_share_access_id str
    string → ID of the resource.
    timeouts SharedfilesystemShareAccessTimeoutsArgs
    accessLevel String
    required string → The access level to the share. Can either be rw or ro.
    accessTo String
    required string → The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    required string → The access rule type. Can either be an ip, user, cert, or cephx.
    region String
    optional string → The region in which to obtain the Shared File System client. A Shared File System client is needed to create a share access. Changing this creates a new share access.
    shareId String
    required string → The UUID of the share to which you are granted access.
    sharedfilesystemShareAccessId String
    string → ID of the resource.
    timeouts Property Map

    Supporting Types

    SharedfilesystemShareAccessTimeouts, SharedfilesystemShareAccessTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    This resource can be imported by specifying the ID of the share and the ID of the share access, separated by a slash, e.g.:

    $ pulumi import vkcs:index/sharedfilesystemShareAccess:SharedfilesystemShareAccess share_access_1 1c68f8cb-20b5-4f91-b761-6c612b4aae53/c8207c63-6a6d-4a7b-872f-047049582172
    

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

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs