vkcs.SharedfilesystemSharenetwork
Explore with Pulumi AI
Use this resource to configure a share network.
A share network stores network information that share servers can use when shares are created.
Example Usage
Basic share network
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const data = new vkcs.SharedfilesystemSharenetwork("data", {
description: "sharing network for tf example",
neutronNetId: vkcs_networking_network.app.id,
neutronSubnetId: vkcs_networking_subnet.app.id,
});
import pulumi
import pulumi_vkcs as vkcs
data = vkcs.SharedfilesystemSharenetwork("data",
description="sharing network for tf example",
neutron_net_id=vkcs_networking_network["app"]["id"],
neutron_subnet_id=vkcs_networking_subnet["app"]["id"])
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.NewSharedfilesystemSharenetwork(ctx, "data", &vkcs.SharedfilesystemSharenetworkArgs{
Description: pulumi.String("sharing network for tf example"),
NeutronNetId: pulumi.Any(vkcs_networking_network.App.Id),
NeutronSubnetId: pulumi.Any(vkcs_networking_subnet.App.Id),
})
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 data = new Vkcs.SharedfilesystemSharenetwork("data", new()
{
Description = "sharing network for tf example",
NeutronNetId = vkcs_networking_network.App.Id,
NeutronSubnetId = vkcs_networking_subnet.App.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.SharedfilesystemSharenetwork;
import com.pulumi.vkcs.SharedfilesystemSharenetworkArgs;
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 data = new SharedfilesystemSharenetwork("data", SharedfilesystemSharenetworkArgs.builder()
.description("sharing network for tf example")
.neutronNetId(vkcs_networking_network.app().id())
.neutronSubnetId(vkcs_networking_subnet.app().id())
.build());
}
}
resources:
data:
type: vkcs:SharedfilesystemSharenetwork
properties:
description: sharing network for tf example
neutronNetId: ${vkcs_networking_network.app.id}
neutronSubnetId: ${vkcs_networking_subnet.app.id}
Share network with associated security services
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
network1:
type: vkcs:NetworkingNetwork
properties:
adminStateUp: 'true'
subnet1:
type: vkcs:NetworkingSubnet
properties:
cidr: 192.168.199.0/24
ipVersion: 4
networkId: ${network1.networkingNetworkId}
securityservice1:
type: vkcs:SharedfilesystemSecurityservice
properties:
description: created by terraform
type: active_directory
server: 192.168.199.10
dnsIp: 192.168.199.10
domain: example.com
user: joinDomainUser
password: s8cret
sharenetwork1:
type: vkcs:SharedfilesystemSharenetwork
properties:
description: test share network with security services
neutronNetId: ${network1.networkingNetworkId}
neutronSubnetId: ${subnet1.networkingSubnetId}
securityServiceIds:
- ${securityservice1.sharedfilesystemSecurityserviceId}
Create SharedfilesystemSharenetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SharedfilesystemSharenetwork(name: string, args: SharedfilesystemSharenetworkArgs, opts?: CustomResourceOptions);
@overload
def SharedfilesystemSharenetwork(resource_name: str,
args: SharedfilesystemSharenetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SharedfilesystemSharenetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
neutron_net_id: Optional[str] = None,
neutron_subnet_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
security_service_ids: Optional[Sequence[str]] = None,
sharedfilesystem_sharenetwork_id: Optional[str] = None,
timeouts: Optional[SharedfilesystemSharenetworkTimeoutsArgs] = None)
func NewSharedfilesystemSharenetwork(ctx *Context, name string, args SharedfilesystemSharenetworkArgs, opts ...ResourceOption) (*SharedfilesystemSharenetwork, error)
public SharedfilesystemSharenetwork(string name, SharedfilesystemSharenetworkArgs args, CustomResourceOptions? opts = null)
public SharedfilesystemSharenetwork(String name, SharedfilesystemSharenetworkArgs args)
public SharedfilesystemSharenetwork(String name, SharedfilesystemSharenetworkArgs args, CustomResourceOptions options)
type: vkcs:SharedfilesystemSharenetwork
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 SharedfilesystemSharenetworkArgs
- 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 SharedfilesystemSharenetworkArgs
- 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 SharedfilesystemSharenetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SharedfilesystemSharenetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SharedfilesystemSharenetworkArgs
- 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 sharedfilesystemSharenetworkResource = new Vkcs.SharedfilesystemSharenetwork("sharedfilesystemSharenetworkResource", new()
{
NeutronNetId = "string",
NeutronSubnetId = "string",
Description = "string",
Name = "string",
Region = "string",
SecurityServiceIds = new[]
{
"string",
},
SharedfilesystemSharenetworkId = "string",
Timeouts = new Vkcs.Inputs.SharedfilesystemSharenetworkTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := vkcs.NewSharedfilesystemSharenetwork(ctx, "sharedfilesystemSharenetworkResource", &vkcs.SharedfilesystemSharenetworkArgs{
NeutronNetId: pulumi.String("string"),
NeutronSubnetId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SecurityServiceIds: pulumi.StringArray{
pulumi.String("string"),
},
SharedfilesystemSharenetworkId: pulumi.String("string"),
Timeouts: &vkcs.SharedfilesystemSharenetworkTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var sharedfilesystemSharenetworkResource = new SharedfilesystemSharenetwork("sharedfilesystemSharenetworkResource", SharedfilesystemSharenetworkArgs.builder()
.neutronNetId("string")
.neutronSubnetId("string")
.description("string")
.name("string")
.region("string")
.securityServiceIds("string")
.sharedfilesystemSharenetworkId("string")
.timeouts(SharedfilesystemSharenetworkTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
sharedfilesystem_sharenetwork_resource = vkcs.SharedfilesystemSharenetwork("sharedfilesystemSharenetworkResource",
neutron_net_id="string",
neutron_subnet_id="string",
description="string",
name="string",
region="string",
security_service_ids=["string"],
sharedfilesystem_sharenetwork_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const sharedfilesystemSharenetworkResource = new vkcs.SharedfilesystemSharenetwork("sharedfilesystemSharenetworkResource", {
neutronNetId: "string",
neutronSubnetId: "string",
description: "string",
name: "string",
region: "string",
securityServiceIds: ["string"],
sharedfilesystemSharenetworkId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: vkcs:SharedfilesystemSharenetwork
properties:
description: string
name: string
neutronNetId: string
neutronSubnetId: string
region: string
securityServiceIds:
- string
sharedfilesystemSharenetworkId: string
timeouts:
create: string
delete: string
update: string
SharedfilesystemSharenetwork 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 SharedfilesystemSharenetwork resource accepts the following input properties:
- Neutron
Net stringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Neutron
Subnet stringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Description string
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- Name string
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - Security
Service List<string>Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Sharenetwork Timeouts
- Neutron
Net stringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Neutron
Subnet stringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Description string
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- Name string
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - Security
Service []stringIds - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Sharenetwork Timeouts Args
- neutron
Net StringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron
Subnet StringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- description String
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name String
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security
Service List<String>Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- String
- string → ID of the resource.
- timeouts
Sharedfilesystem
Sharenetwork Timeouts
- neutron
Net stringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron
Subnet stringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- description string
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name string
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security
Service string[]Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- string
- string → ID of the resource.
- timeouts
Sharedfilesystem
Sharenetwork Timeouts
- neutron_
net_ strid - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron_
subnet_ strid - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- description str
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name str
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security_
service_ Sequence[str]ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- str
- string → ID of the resource.
- timeouts
Sharedfilesystem
Sharenetwork Timeouts Args
- neutron
Net StringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron
Subnet StringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- description String
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name String
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security
Service List<String>Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- String
- string → ID of the resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SharedfilesystemSharenetwork resource produces the following output properties:
- cidr str
- string → The share network CIDR.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - string → The owner of the Share Network.
Look up Existing SharedfilesystemSharenetwork Resource
Get an existing SharedfilesystemSharenetwork 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?: SharedfilesystemSharenetworkState, opts?: CustomResourceOptions): SharedfilesystemSharenetwork
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
neutron_net_id: Optional[str] = None,
neutron_subnet_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
security_service_ids: Optional[Sequence[str]] = None,
sharedfilesystem_sharenetwork_id: Optional[str] = None,
timeouts: Optional[SharedfilesystemSharenetworkTimeoutsArgs] = None) -> SharedfilesystemSharenetwork
func GetSharedfilesystemSharenetwork(ctx *Context, name string, id IDInput, state *SharedfilesystemSharenetworkState, opts ...ResourceOption) (*SharedfilesystemSharenetwork, error)
public static SharedfilesystemSharenetwork Get(string name, Input<string> id, SharedfilesystemSharenetworkState? state, CustomResourceOptions? opts = null)
public static SharedfilesystemSharenetwork get(String name, Output<String> id, SharedfilesystemSharenetworkState state, CustomResourceOptions options)
resources: _: type: vkcs:SharedfilesystemSharenetwork 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.
- Cidr string
- string → The share network CIDR.
- Description string
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- Name string
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- Neutron
Net stringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Neutron
Subnet stringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Project
Id string - string → The owner of the Share Network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - Security
Service List<string>Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Sharenetwork Timeouts
- Cidr string
- string → The share network CIDR.
- Description string
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- Name string
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- Neutron
Net stringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Neutron
Subnet stringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- Project
Id string - string → The owner of the Share Network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - Security
Service []stringIds - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- string
- string → ID of the resource.
- Timeouts
Sharedfilesystem
Sharenetwork Timeouts Args
- cidr String
- string → The share network CIDR.
- description String
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name String
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- neutron
Net StringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron
Subnet StringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- project
Id String - string → The owner of the Share Network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security
Service List<String>Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- String
- string → ID of the resource.
- timeouts
Sharedfilesystem
Sharenetwork Timeouts
- cidr string
- string → The share network CIDR.
- description string
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name string
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- neutron
Net stringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron
Subnet stringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- project
Id string - string → The owner of the Share Network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security
Service string[]Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- string
- string → ID of the resource.
- timeouts
Sharedfilesystem
Sharenetwork Timeouts
- cidr str
- string → The share network CIDR.
- description str
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name str
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- neutron_
net_ strid - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron_
subnet_ strid - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- project_
id str - string → The owner of the Share Network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security_
service_ Sequence[str]ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- str
- string → ID of the resource.
- timeouts
Sharedfilesystem
Sharenetwork Timeouts Args
- cidr String
- string → The share network CIDR.
- description String
- optional string → The human-readable description for the share network. Changing this updates the description of the existing share network.
- name String
- optional string → The name for the share network. Changing this updates the name of the existing share network.
- neutron
Net StringId - required string → The UUID of a neutron network when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- neutron
Subnet StringId - required string → The UUID of the neutron subnet when setting up or updating a share network. Changing this updates the existing share network if it's not used by shares.
- project
Id String - string → The owner of the Share Network.
- 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 network. If omitted, the
region
argument of the provider is used. Changing this creates a new share network. - security
Service List<String>Ids - optional set of string → The list of security service IDs to associate with the share network. The security service must be specified by ID and not name.
- String
- string → ID of the resource.
- timeouts Property Map
Supporting Types
SharedfilesystemSharenetworkTimeouts, SharedfilesystemSharenetworkTimeoutsArgs
Import
This resource can be imported by specifying the ID of the share:
$ pulumi import vkcs:index/sharedfilesystemSharenetwork:SharedfilesystemSharenetwork sharenetwork_1 e4018a0b-e869-437d-870c-e51f50e051db
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.