vkcs.SharedfilesystemShareAccess
Explore with Pulumi AI
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:
- Access
Level string - required string → The access level to the share. Can either be
rw
orro
. - Access
To 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.
- Access
Type string - required string → The access rule type. Can either be an ip, user, cert, or cephx.
- 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.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Share Access Timeouts
- Access
Level string - required string → The access level to the share. Can either be
rw
orro
. - Access
To 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.
- Access
Type string - required string → The access rule type. Can either be an ip, user, cert, or cephx.
- 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.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Share Access Timeouts Args
- access
Level String - required string → The access level to the share. Can either be
rw
orro
. - access
To 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.
- access
Type String - required string → The access rule type. Can either be an ip, user, cert, or cephx.
- 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.
- String
- string → ID of the resource.
- timeouts
Sharedfilesystem
Share Access Timeouts
- access
Level string - required string → The access level to the share. Can either be
rw
orro
. - access
To 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.
- access
Type string - required string → The access rule type. Can either be an ip, user, cert, or cephx.
- 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.
- string
- string → ID of the resource.
- timeouts
Sharedfilesystem
Share Access Timeouts
- access_
level str - required string → The access level to the share. Can either be
rw
orro
. - 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.
- 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.
- str
- string → ID of the resource.
- timeouts
Sharedfilesystem
Share Access Timeouts Args
- access
Level String - required string → The access level to the share. Can either be
rw
orro
. - access
To 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.
- access
Type String - required string → The access rule type. Can either be an ip, user, cert, or cephx.
- 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.
- 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.
- Access
Level string - required string → The access level to the share. Can either be
rw
orro
. - Access
To 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.
- Access
Type 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.
- string
- required string → The UUID of the share to which you are granted access.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Share Access Timeouts
- Access
Level string - required string → The access level to the share. Can either be
rw
orro
. - Access
To 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.
- Access
Type 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.
- string
- required string → The UUID of the share to which you are granted access.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Share Access Timeouts Args
- access
Level String - required string → The access level to the share. Can either be
rw
orro
. - access
To 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.
- access
Type 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.
- String
- required string → The UUID of the share to which you are granted access.
- String
- string → ID of the resource.
- timeouts
Sharedfilesystem
Share Access Timeouts
- access
Level string - required string → The access level to the share. Can either be
rw
orro
. - access
To 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.
- access
Type 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.
- string
- required string → The UUID of the share to which you are granted access.
- string
- string → ID of the resource.
- timeouts
Sharedfilesystem
Share Access Timeouts
- access_
level str - required string → The access level to the share. Can either be
rw
orro
. - 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.
- str
- required string → The UUID of the share to which you are granted access.
- str
- string → ID of the resource.
- timeouts
Sharedfilesystem
Share Access Timeouts Args
- access
Level String - required string → The access level to the share. Can either be
rw
orro
. - access
To 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.
- access
Type 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.
- String
- required string → The UUID of the share to which you are granted access.
- String
- string → ID of the resource.
- timeouts Property Map
Supporting Types
SharedfilesystemShareAccessTimeouts, SharedfilesystemShareAccessTimeoutsArgs
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.