sharedfilesystem

package
v2.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAvailbilityZonesArgs

type GetAvailbilityZonesArgs struct {
	// The region in which to obtain the V2 Shared File System
	// client. If omitted, the `region` argument of the provider is used.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getAvailbilityZones.

type GetAvailbilityZonesResult

type GetAvailbilityZonesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The names of the availability zones, ordered alphanumerically.
	Names []string `pulumi:"names"`
	// See Argument Reference above.
	Region string `pulumi:"region"`
}

A collection of values returned by getAvailbilityZones.

func GetAvailbilityZones

func GetAvailbilityZones(ctx *pulumi.Context, args *GetAvailbilityZonesArgs, opts ...pulumi.InvokeOption) (*GetAvailbilityZonesResult, error)

Use this data source to get a list of Shared File System availability zones from OpenStack

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sharedfilesystem.GetAvailbilityZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetShareExportLocation

type GetShareExportLocation struct {
	Path      string `pulumi:"path"`
	Preferred string `pulumi:"preferred"`
}

type GetShareExportLocationArgs

type GetShareExportLocationArgs struct {
	Path      pulumi.StringInput `pulumi:"path"`
	Preferred pulumi.StringInput `pulumi:"preferred"`
}

func (GetShareExportLocationArgs) ElementType

func (GetShareExportLocationArgs) ElementType() reflect.Type

func (GetShareExportLocationArgs) ToGetShareExportLocationOutput

func (i GetShareExportLocationArgs) ToGetShareExportLocationOutput() GetShareExportLocationOutput

func (GetShareExportLocationArgs) ToGetShareExportLocationOutputWithContext

func (i GetShareExportLocationArgs) ToGetShareExportLocationOutputWithContext(ctx context.Context) GetShareExportLocationOutput

type GetShareExportLocationArray

type GetShareExportLocationArray []GetShareExportLocationInput

func (GetShareExportLocationArray) ElementType

func (GetShareExportLocationArray) ToGetShareExportLocationArrayOutput

func (i GetShareExportLocationArray) ToGetShareExportLocationArrayOutput() GetShareExportLocationArrayOutput

func (GetShareExportLocationArray) ToGetShareExportLocationArrayOutputWithContext

func (i GetShareExportLocationArray) ToGetShareExportLocationArrayOutputWithContext(ctx context.Context) GetShareExportLocationArrayOutput

type GetShareExportLocationArrayInput

type GetShareExportLocationArrayInput interface {
	pulumi.Input

	ToGetShareExportLocationArrayOutput() GetShareExportLocationArrayOutput
	ToGetShareExportLocationArrayOutputWithContext(context.Context) GetShareExportLocationArrayOutput
}

GetShareExportLocationArrayInput is an input type that accepts GetShareExportLocationArray and GetShareExportLocationArrayOutput values. You can construct a concrete instance of `GetShareExportLocationArrayInput` via:

GetShareExportLocationArray{ GetShareExportLocationArgs{...} }

type GetShareExportLocationArrayOutput

type GetShareExportLocationArrayOutput struct{ *pulumi.OutputState }

func (GetShareExportLocationArrayOutput) ElementType

func (GetShareExportLocationArrayOutput) Index

func (GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutput

func (o GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutput() GetShareExportLocationArrayOutput

func (GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutputWithContext

func (o GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutputWithContext(ctx context.Context) GetShareExportLocationArrayOutput

type GetShareExportLocationInput

type GetShareExportLocationInput interface {
	pulumi.Input

	ToGetShareExportLocationOutput() GetShareExportLocationOutput
	ToGetShareExportLocationOutputWithContext(context.Context) GetShareExportLocationOutput
}

GetShareExportLocationInput is an input type that accepts GetShareExportLocationArgs and GetShareExportLocationOutput values. You can construct a concrete instance of `GetShareExportLocationInput` via:

GetShareExportLocationArgs{...}

type GetShareExportLocationOutput

type GetShareExportLocationOutput struct{ *pulumi.OutputState }

func (GetShareExportLocationOutput) ElementType

func (GetShareExportLocationOutput) Path

func (GetShareExportLocationOutput) Preferred

func (GetShareExportLocationOutput) ToGetShareExportLocationOutput

func (o GetShareExportLocationOutput) ToGetShareExportLocationOutput() GetShareExportLocationOutput

func (GetShareExportLocationOutput) ToGetShareExportLocationOutputWithContext

func (o GetShareExportLocationOutput) ToGetShareExportLocationOutputWithContext(ctx context.Context) GetShareExportLocationOutput

type GetSnapshotArgs

type GetSnapshotArgs struct {
	// The human-readable description of the snapshot.
	Description *string `pulumi:"description"`
	// The name of the snapshot.
	Name *string `pulumi:"name"`
	// The region in which to obtain the V2 Shared File System client.
	Region *string `pulumi:"region"`
	// The UUID of the source share that was used to create the snapshot.
	ShareId *string `pulumi:"shareId"`
	// A snapshot status filter. A valid value is `available`, `error`,
	// `creating`, `deleting`, `manageStarting`, `manageError`, `unmanageStarting`,
	// `unmanageError` or `errorDeleting`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getSnapshot.

type GetSnapshotResult

type GetSnapshotResult struct {
	// See Argument Reference above.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// See Argument Reference above.
	Name string `pulumi:"name"`
	// See Argument Reference above.
	ProjectId string `pulumi:"projectId"`
	Region    string `pulumi:"region"`
	// The UUID of the source share that was used to create the snapshot.
	ShareId string `pulumi:"shareId"`
	// The file system protocol of a share snapshot.
	ShareProto string `pulumi:"shareProto"`
	// The share snapshot size, in GBs.
	ShareSize int `pulumi:"shareSize"`
	// The snapshot size, in GBs.
	Size int `pulumi:"size"`
	// See Argument Reference above.
	Status string `pulumi:"status"`
}

A collection of values returned by getSnapshot.

func GetSnapshot

func GetSnapshot(ctx *pulumi.Context, args *GetSnapshotArgs, opts ...pulumi.InvokeOption) (*GetSnapshotResult, error)

Use this data source to get the ID of an available Shared File System snapshot.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "snapshot_1"
		_, err := sharedfilesystem.GetSnapshot(ctx, &sharedfilesystem.GetSnapshotArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupShareArgs

type LookupShareArgs struct {
	// The human-readable description for the share.
	Description *string `pulumi:"description"`
	// The export location path of the share. Available
	// since Manila API version 2.35.
	ExportLocationPath *string `pulumi:"exportLocationPath"`
	// The level of visibility for the share.
	// length.
	IsPublic *bool `pulumi:"isPublic"`
	// One or more metadata key and value pairs as a dictionary of
	// strings.
	Metadata map[string]interface{} `pulumi:"metadata"`
	// The name of the share.
	Name *string `pulumi:"name"`
	// The region in which to obtain the V2 Shared File System client.
	Region *string `pulumi:"region"`
	// The UUID of the share's share network.
	ShareNetworkId *string `pulumi:"shareNetworkId"`
	// The UUID of the share's base snapshot.
	SnapshotId *string `pulumi:"snapshotId"`
	// A share status filter. A valid value is `creating`,
	// `error`, `available`, `deleting`, `errorDeleting`, `manageStarting`,
	// `manageError`, `unmanageStarting`, `unmanageError`, `unmanaged`,
	// `extending`, `extendingError`, `shrinking`, `shrinkingError`, or
	// `shrinkingPossibleDataLossError`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getShare.

type LookupShareNetworkArgs

type LookupShareNetworkArgs struct {
	// The human-readable description of the share network.
	Description *string `pulumi:"description"`
	// The IP version of the share network. Can either be 4 or 6.
	IpVersion *int `pulumi:"ipVersion"`
	// The name of the share network.
	Name *string `pulumi:"name"`
	// The share network type. Can either be VLAN, VXLAN,
	// GRE, or flat.
	NetworkType *string `pulumi:"networkType"`
	// The neutron network UUID of the share network.
	NeutronNetId *string `pulumi:"neutronNetId"`
	// The neutron subnet UUID of the share network.
	NeutronSubnetId *string `pulumi:"neutronSubnetId"`
	// The region in which to obtain the V2 Shared File System client.
	// A Shared File System client is needed to read a share network. If omitted, the
	// `region` argument of the provider is used.
	Region *string `pulumi:"region"`
	// The security service IDs associated with
	// the share network.
	SecurityServiceId *string `pulumi:"securityServiceId"`
	// The share network segmentation ID.
	SegmentationId *int `pulumi:"segmentationId"`
}

A collection of arguments for invoking getShareNetwork.

type LookupShareNetworkResult

type LookupShareNetworkResult struct {
	// See Argument Reference above.
	Cidr string `pulumi:"cidr"`
	// See Argument Reference above.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// See Argument Reference above.
	IpVersion int `pulumi:"ipVersion"`
	// See Argument Reference above.
	Name string `pulumi:"name"`
	// See Argument Reference above.
	NetworkType string `pulumi:"networkType"`
	// See Argument Reference above.
	NeutronNetId string `pulumi:"neutronNetId"`
	// See Argument Reference above.
	NeutronSubnetId string `pulumi:"neutronSubnetId"`
	// The owner of the Share Network.
	ProjectId string `pulumi:"projectId"`
	// See Argument Reference above.
	Region string `pulumi:"region"`
	// See Argument Reference above.
	SecurityServiceId *string `pulumi:"securityServiceId"`
	// The list of security service IDs associated with
	// the share network.
	SecurityServiceIds []string `pulumi:"securityServiceIds"`
	// See Argument Reference above.
	SegmentationId int `pulumi:"segmentationId"`
}

A collection of values returned by getShareNetwork.

func LookupShareNetwork

func LookupShareNetwork(ctx *pulumi.Context, args *LookupShareNetworkArgs, opts ...pulumi.InvokeOption) (*LookupShareNetworkResult, error)

Use this data source to get the ID of an available Shared File System share network.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "sharenetwork_1"
		_, err := sharedfilesystem.LookupShareNetwork(ctx, &sharedfilesystem.LookupShareNetworkArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupShareResult

type LookupShareResult struct {
	// The share availability zone.
	AvailabilityZone string `pulumi:"availabilityZone"`
	// See Argument Reference above.
	Description string `pulumi:"description"`
	// See Argument Reference above.
	ExportLocationPath *string `pulumi:"exportLocationPath"`
	// A list of export locations. For example, when a share
	// server has more than one network interface, it can have multiple export
	// locations.
	ExportLocations []GetShareExportLocation `pulumi:"exportLocations"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// See Argument Reference above.
	IsPublic bool `pulumi:"isPublic"`
	// See Argument Reference above.
	Metadata map[string]interface{} `pulumi:"metadata"`
	// See Argument Reference above.
	Name string `pulumi:"name"`
	// See Argument Reference above.
	ProjectId string `pulumi:"projectId"`
	// The region in which to obtain the V2 Shared File System client.
	Region string `pulumi:"region"`
	// See Argument Reference above.
	ShareNetworkId string `pulumi:"shareNetworkId"`
	// The share protocol.
	ShareProto string `pulumi:"shareProto"`
	// The share size, in GBs.
	Size int `pulumi:"size"`
	// See Argument Reference above.
	SnapshotId string `pulumi:"snapshotId"`
	// See Argument Reference above.
	Status string `pulumi:"status"`
}

A collection of values returned by getShare.

func LookupShare

func LookupShare(ctx *pulumi.Context, args *LookupShareArgs, opts ...pulumi.InvokeOption) (*LookupShareResult, error)

Use this data source to get the ID of an available Shared File System share.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "share_1"
		_, err := sharedfilesystem.LookupShare(ctx, &sharedfilesystem.LookupShareArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type SecurityService

type SecurityService struct {
	pulumi.CustomResourceState

	// The human-readable description for the security service.
	// Changing this updates the description of the existing security service.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The security service DNS IP address that is used inside the
	// tenant network.
	DnsIp pulumi.StringPtrOutput `pulumi:"dnsIp"`
	// The security service domain.
	Domain pulumi.StringPtrOutput `pulumi:"domain"`
	// The name of the security service. Changing this updates the name
	// of the existing security service.
	Name pulumi.StringOutput `pulumi:"name"`
	// The security service ou. An organizational unit can be added to
	// specify where the share ends up. New in Manila microversion 2.44.
	Ou pulumi.StringPtrOutput `pulumi:"ou"`
	// The user password, if you specify a user.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The owner of the Security Service.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// 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.
	Region pulumi.StringOutput `pulumi:"region"`
	// The security service host name or IP address.
	Server pulumi.StringPtrOutput `pulumi:"server"`
	// The security service type - can either be active\_directory,
	// kerberos or ldap.  Changing this updates the existing security service.
	Type pulumi.StringOutput `pulumi:"type"`
	// The security service user or group name that is used by the
	// tenant.
	User pulumi.StringPtrOutput `pulumi:"user"`
}

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](https://www.terraform.io/docs/state/sensitive-data.html).

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

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sharedfilesystem.NewSecurityService(ctx, "securityservice1", &sharedfilesystem.SecurityServiceArgs{
			Description: pulumi.String("created by terraform"),
			DnsIp:       pulumi.String("192.168.199.10"),
			Domain:      pulumi.String("example.com"),
			Ou:          pulumi.String("CN=Computers,DC=example,DC=com"),
			Password:    pulumi.String("s8cret"),
			Server:      pulumi.String("192.168.199.10"),
			Type:        pulumi.String("active_directory"),
			User:        pulumi.String("joinDomainUser"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

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

```

func GetSecurityService

func GetSecurityService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SecurityServiceState, opts ...pulumi.ResourceOption) (*SecurityService, error)

GetSecurityService gets an existing SecurityService resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSecurityService

func NewSecurityService(ctx *pulumi.Context,
	name string, args *SecurityServiceArgs, opts ...pulumi.ResourceOption) (*SecurityService, error)

NewSecurityService registers a new resource with the given unique name, arguments, and options.

func (*SecurityService) ElementType added in v2.10.0

func (*SecurityService) ElementType() reflect.Type

func (*SecurityService) ToSecurityServiceOutput added in v2.10.0

func (i *SecurityService) ToSecurityServiceOutput() SecurityServiceOutput

func (*SecurityService) ToSecurityServiceOutputWithContext added in v2.10.0

func (i *SecurityService) ToSecurityServiceOutputWithContext(ctx context.Context) SecurityServiceOutput

func (*SecurityService) ToSecurityServicePtrOutput added in v2.14.1

func (i *SecurityService) ToSecurityServicePtrOutput() SecurityServicePtrOutput

func (*SecurityService) ToSecurityServicePtrOutputWithContext added in v2.14.1

func (i *SecurityService) ToSecurityServicePtrOutputWithContext(ctx context.Context) SecurityServicePtrOutput

type SecurityServiceArgs

type SecurityServiceArgs struct {
	// The human-readable description for the security service.
	// Changing this updates the description of the existing security service.
	Description pulumi.StringPtrInput
	// The security service DNS IP address that is used inside the
	// tenant network.
	DnsIp pulumi.StringPtrInput
	// The security service domain.
	Domain pulumi.StringPtrInput
	// The name of the security service. Changing this updates the name
	// of the existing security service.
	Name pulumi.StringPtrInput
	// The security service ou. An organizational unit can be added to
	// specify where the share ends up. New in Manila microversion 2.44.
	Ou pulumi.StringPtrInput
	// The user password, if you specify a user.
	Password pulumi.StringPtrInput
	// 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.
	Region pulumi.StringPtrInput
	// The security service host name or IP address.
	Server pulumi.StringPtrInput
	// The security service type - can either be active\_directory,
	// kerberos or ldap.  Changing this updates the existing security service.
	Type pulumi.StringInput
	// The security service user or group name that is used by the
	// tenant.
	User pulumi.StringPtrInput
}

The set of arguments for constructing a SecurityService resource.

func (SecurityServiceArgs) ElementType

func (SecurityServiceArgs) ElementType() reflect.Type

type SecurityServiceArray added in v2.14.1

type SecurityServiceArray []SecurityServiceInput

func (SecurityServiceArray) ElementType added in v2.14.1

func (SecurityServiceArray) ElementType() reflect.Type

func (SecurityServiceArray) ToSecurityServiceArrayOutput added in v2.14.1

func (i SecurityServiceArray) ToSecurityServiceArrayOutput() SecurityServiceArrayOutput

func (SecurityServiceArray) ToSecurityServiceArrayOutputWithContext added in v2.14.1

func (i SecurityServiceArray) ToSecurityServiceArrayOutputWithContext(ctx context.Context) SecurityServiceArrayOutput

type SecurityServiceArrayInput added in v2.14.1

type SecurityServiceArrayInput interface {
	pulumi.Input

	ToSecurityServiceArrayOutput() SecurityServiceArrayOutput
	ToSecurityServiceArrayOutputWithContext(context.Context) SecurityServiceArrayOutput
}

SecurityServiceArrayInput is an input type that accepts SecurityServiceArray and SecurityServiceArrayOutput values. You can construct a concrete instance of `SecurityServiceArrayInput` via:

SecurityServiceArray{ SecurityServiceArgs{...} }

type SecurityServiceArrayOutput added in v2.14.1

type SecurityServiceArrayOutput struct{ *pulumi.OutputState }

func (SecurityServiceArrayOutput) ElementType added in v2.14.1

func (SecurityServiceArrayOutput) ElementType() reflect.Type

func (SecurityServiceArrayOutput) Index added in v2.14.1

func (SecurityServiceArrayOutput) ToSecurityServiceArrayOutput added in v2.14.1

func (o SecurityServiceArrayOutput) ToSecurityServiceArrayOutput() SecurityServiceArrayOutput

func (SecurityServiceArrayOutput) ToSecurityServiceArrayOutputWithContext added in v2.14.1

func (o SecurityServiceArrayOutput) ToSecurityServiceArrayOutputWithContext(ctx context.Context) SecurityServiceArrayOutput

type SecurityServiceInput added in v2.10.0

type SecurityServiceInput interface {
	pulumi.Input

	ToSecurityServiceOutput() SecurityServiceOutput
	ToSecurityServiceOutputWithContext(ctx context.Context) SecurityServiceOutput
}

type SecurityServiceMap added in v2.14.1

type SecurityServiceMap map[string]SecurityServiceInput

func (SecurityServiceMap) ElementType added in v2.14.1

func (SecurityServiceMap) ElementType() reflect.Type

func (SecurityServiceMap) ToSecurityServiceMapOutput added in v2.14.1

func (i SecurityServiceMap) ToSecurityServiceMapOutput() SecurityServiceMapOutput

func (SecurityServiceMap) ToSecurityServiceMapOutputWithContext added in v2.14.1

func (i SecurityServiceMap) ToSecurityServiceMapOutputWithContext(ctx context.Context) SecurityServiceMapOutput

type SecurityServiceMapInput added in v2.14.1

type SecurityServiceMapInput interface {
	pulumi.Input

	ToSecurityServiceMapOutput() SecurityServiceMapOutput
	ToSecurityServiceMapOutputWithContext(context.Context) SecurityServiceMapOutput
}

SecurityServiceMapInput is an input type that accepts SecurityServiceMap and SecurityServiceMapOutput values. You can construct a concrete instance of `SecurityServiceMapInput` via:

SecurityServiceMap{ "key": SecurityServiceArgs{...} }

type SecurityServiceMapOutput added in v2.14.1

type SecurityServiceMapOutput struct{ *pulumi.OutputState }

func (SecurityServiceMapOutput) ElementType added in v2.14.1

func (SecurityServiceMapOutput) ElementType() reflect.Type

func (SecurityServiceMapOutput) MapIndex added in v2.14.1

func (SecurityServiceMapOutput) ToSecurityServiceMapOutput added in v2.14.1

func (o SecurityServiceMapOutput) ToSecurityServiceMapOutput() SecurityServiceMapOutput

func (SecurityServiceMapOutput) ToSecurityServiceMapOutputWithContext added in v2.14.1

func (o SecurityServiceMapOutput) ToSecurityServiceMapOutputWithContext(ctx context.Context) SecurityServiceMapOutput

type SecurityServiceOutput added in v2.10.0

type SecurityServiceOutput struct {
	*pulumi.OutputState
}

func (SecurityServiceOutput) ElementType added in v2.10.0

func (SecurityServiceOutput) ElementType() reflect.Type

func (SecurityServiceOutput) ToSecurityServiceOutput added in v2.10.0

func (o SecurityServiceOutput) ToSecurityServiceOutput() SecurityServiceOutput

func (SecurityServiceOutput) ToSecurityServiceOutputWithContext added in v2.10.0

func (o SecurityServiceOutput) ToSecurityServiceOutputWithContext(ctx context.Context) SecurityServiceOutput

func (SecurityServiceOutput) ToSecurityServicePtrOutput added in v2.14.1

func (o SecurityServiceOutput) ToSecurityServicePtrOutput() SecurityServicePtrOutput

func (SecurityServiceOutput) ToSecurityServicePtrOutputWithContext added in v2.14.1

func (o SecurityServiceOutput) ToSecurityServicePtrOutputWithContext(ctx context.Context) SecurityServicePtrOutput

type SecurityServicePtrInput added in v2.14.1

type SecurityServicePtrInput interface {
	pulumi.Input

	ToSecurityServicePtrOutput() SecurityServicePtrOutput
	ToSecurityServicePtrOutputWithContext(ctx context.Context) SecurityServicePtrOutput
}

type SecurityServicePtrOutput added in v2.14.1

type SecurityServicePtrOutput struct {
	*pulumi.OutputState
}

func (SecurityServicePtrOutput) ElementType added in v2.14.1

func (SecurityServicePtrOutput) ElementType() reflect.Type

func (SecurityServicePtrOutput) ToSecurityServicePtrOutput added in v2.14.1

func (o SecurityServicePtrOutput) ToSecurityServicePtrOutput() SecurityServicePtrOutput

func (SecurityServicePtrOutput) ToSecurityServicePtrOutputWithContext added in v2.14.1

func (o SecurityServicePtrOutput) ToSecurityServicePtrOutputWithContext(ctx context.Context) SecurityServicePtrOutput

type SecurityServiceState

type SecurityServiceState struct {
	// The human-readable description for the security service.
	// Changing this updates the description of the existing security service.
	Description pulumi.StringPtrInput
	// The security service DNS IP address that is used inside the
	// tenant network.
	DnsIp pulumi.StringPtrInput
	// The security service domain.
	Domain pulumi.StringPtrInput
	// The name of the security service. Changing this updates the name
	// of the existing security service.
	Name pulumi.StringPtrInput
	// The security service ou. An organizational unit can be added to
	// specify where the share ends up. New in Manila microversion 2.44.
	Ou pulumi.StringPtrInput
	// The user password, if you specify a user.
	Password pulumi.StringPtrInput
	// The owner of the Security Service.
	ProjectId pulumi.StringPtrInput
	// 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.
	Region pulumi.StringPtrInput
	// The security service host name or IP address.
	Server pulumi.StringPtrInput
	// The security service type - can either be active\_directory,
	// kerberos or ldap.  Changing this updates the existing security service.
	Type pulumi.StringPtrInput
	// The security service user or group name that is used by the
	// tenant.
	User pulumi.StringPtrInput
}

func (SecurityServiceState) ElementType

func (SecurityServiceState) ElementType() reflect.Type

type Share

type Share struct {
	pulumi.CustomResourceState

	// The map of metadata, assigned on the share, which has been
	// explicitly and implicitly added.
	AllMetadata pulumi.MapOutput `pulumi:"allMetadata"`
	// The share availability zone. Changing this creates a
	// new share.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The human-readable description for the share.
	// Changing this updates the description of the existing share.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// A list of export locations. For example, when a share server
	// has more than one network interface, it can have multiple export locations.
	ExportLocations ShareExportLocationArrayOutput `pulumi:"exportLocations"`
	// Indicates whether a share has replicas or not.
	HasReplicas pulumi.BoolOutput `pulumi:"hasReplicas"`
	// The share host name.
	Host pulumi.StringOutput `pulumi:"host"`
	// The level of visibility for the share. Set to true to make
	// share public. Set to false to make it private. Default value is false. Changing this
	// updates the existing share.
	IsPublic pulumi.BoolPtrOutput `pulumi:"isPublic"`
	// One or more metadata key and value pairs as a dictionary of
	// strings.
	Metadata pulumi.MapOutput `pulumi:"metadata"`
	// The name of the share. Changing this updates the name
	// of the existing share.
	Name pulumi.StringOutput `pulumi:"name"`
	// The owner of the Share.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// The region in which to obtain the V2 Shared File System client.
	// A Shared File System client is needed to create a share. Changing this
	// creates a new share.
	Region pulumi.StringOutput `pulumi:"region"`
	// The share replication type.
	ReplicationType pulumi.StringOutput `pulumi:"replicationType"`
	// The UUID of a share network where the share server exists
	// or will be created. If `shareNetworkId` is not set and you provide a `snapshotId`,
	// the shareNetworkId value from the snapshot is used. Changing this creates a new share.
	ShareNetworkId pulumi.StringOutput `pulumi:"shareNetworkId"`
	// The share protocol - can either be NFS, CIFS,
	// CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
	ShareProto pulumi.StringOutput `pulumi:"shareProto"`
	// The UUID of the share server.
	ShareServerId pulumi.StringOutput `pulumi:"shareServerId"`
	// The share type name. If you omit this parameter, the default
	// share type is used.
	ShareType pulumi.StringOutput `pulumi:"shareType"`
	// The share size, in GBs. The requested share size cannot be greater
	// than the allowed GB quota. Changing this resizes the existing share.
	Size pulumi.IntOutput `pulumi:"size"`
	// The UUID of the share's base snapshot. Changing this creates
	// a new share.
	SnapshotId pulumi.StringPtrOutput `pulumi:"snapshotId"`
}

Use this resource to configure a share.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/networking"
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		network1, err := networking.NewNetwork(ctx, "network1", &networking.NetworkArgs{
			AdminStateUp: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		subnet1, err := networking.NewSubnet(ctx, "subnet1", &networking.SubnetArgs{
			Cidr:      pulumi.String("192.168.199.0/24"),
			IpVersion: pulumi.Int(4),
			NetworkId: network1.ID(),
		})
		if err != nil {
			return err
		}
		sharenetwork1, err := sharedfilesystem.NewShareNetwork(ctx, "sharenetwork1", &sharedfilesystem.ShareNetworkArgs{
			Description:     pulumi.String("test share network with security services"),
			NeutronNetId:    network1.ID(),
			NeutronSubnetId: subnet1.ID(),
		})
		if err != nil {
			return err
		}
		_, err = sharedfilesystem.NewShare(ctx, "share1", &sharedfilesystem.ShareArgs{
			Description:    pulumi.String("test share description"),
			ShareNetworkId: sharenetwork1.ID(),
			ShareProto:     pulumi.String("NFS"),
			Size:           pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported by specifying the ID of the share

```sh

$ pulumi import openstack:sharedfilesystem/share:Share share_1 <id>

```

func GetShare

func GetShare(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShareState, opts ...pulumi.ResourceOption) (*Share, error)

GetShare gets an existing Share resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewShare

func NewShare(ctx *pulumi.Context,
	name string, args *ShareArgs, opts ...pulumi.ResourceOption) (*Share, error)

NewShare registers a new resource with the given unique name, arguments, and options.

func (*Share) ElementType added in v2.10.0

func (*Share) ElementType() reflect.Type

func (*Share) ToShareOutput added in v2.10.0

func (i *Share) ToShareOutput() ShareOutput

func (*Share) ToShareOutputWithContext added in v2.10.0

func (i *Share) ToShareOutputWithContext(ctx context.Context) ShareOutput

func (*Share) ToSharePtrOutput added in v2.14.1

func (i *Share) ToSharePtrOutput() SharePtrOutput

func (*Share) ToSharePtrOutputWithContext added in v2.14.1

func (i *Share) ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput

type ShareAccess

type ShareAccess struct {
	pulumi.CustomResourceState

	// The access credential of the entity granted access.
	AccessKey pulumi.StringOutput `pulumi:"accessKey"`
	// The access level to the share. Can either be `rw` or `ro`.
	AccessLevel pulumi.StringOutput `pulumi:"accessLevel"`
	// The value that defines the access. Can either be an IP
	// address or a username verified by configured Security Service of the Share Network.
	AccessTo pulumi.StringOutput `pulumi:"accessTo"`
	// The access rule type. Can either be an ip, user,
	// cert, or cephx. cephx support requires an OpenStack environment that supports
	// Shared Filesystem microversion 2.13 (Mitaka) or later.
	AccessType pulumi.StringOutput `pulumi:"accessType"`
	// The region in which to obtain the V2 Shared File System client.
	// A Shared File System client is needed to create a share access. Changing this
	// creates a new share access.
	Region pulumi.StringOutput `pulumi:"region"`
	// The UUID of the share to which you are granted access.
	ShareId pulumi.StringOutput `pulumi:"shareId"`
}

## 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.

```sh

$ pulumi import openstack:sharedfilesystem/shareAccess:ShareAccess share_access_1 <share id>/<share access id>

```

func GetShareAccess

func GetShareAccess(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShareAccessState, opts ...pulumi.ResourceOption) (*ShareAccess, error)

GetShareAccess gets an existing ShareAccess resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewShareAccess

func NewShareAccess(ctx *pulumi.Context,
	name string, args *ShareAccessArgs, opts ...pulumi.ResourceOption) (*ShareAccess, error)

NewShareAccess registers a new resource with the given unique name, arguments, and options.

func (*ShareAccess) ElementType added in v2.10.0

func (*ShareAccess) ElementType() reflect.Type

func (*ShareAccess) ToShareAccessOutput added in v2.10.0

func (i *ShareAccess) ToShareAccessOutput() ShareAccessOutput

func (*ShareAccess) ToShareAccessOutputWithContext added in v2.10.0

func (i *ShareAccess) ToShareAccessOutputWithContext(ctx context.Context) ShareAccessOutput

func (*ShareAccess) ToShareAccessPtrOutput added in v2.14.1

func (i *ShareAccess) ToShareAccessPtrOutput() ShareAccessPtrOutput

func (*ShareAccess) ToShareAccessPtrOutputWithContext added in v2.14.1

func (i *ShareAccess) ToShareAccessPtrOutputWithContext(ctx context.Context) ShareAccessPtrOutput

type ShareAccessArgs

type ShareAccessArgs struct {
	// The access level to the share. Can either be `rw` or `ro`.
	AccessLevel pulumi.StringInput
	// The value that defines the access. Can either be an IP
	// address or a username verified by configured Security Service of the Share Network.
	AccessTo pulumi.StringInput
	// The access rule type. Can either be an ip, user,
	// cert, or cephx. cephx support requires an OpenStack environment that supports
	// Shared Filesystem microversion 2.13 (Mitaka) or later.
	AccessType pulumi.StringInput
	// The region in which to obtain the V2 Shared File System client.
	// A Shared File System client is needed to create a share access. Changing this
	// creates a new share access.
	Region pulumi.StringPtrInput
	// The UUID of the share to which you are granted access.
	ShareId pulumi.StringInput
}

The set of arguments for constructing a ShareAccess resource.

func (ShareAccessArgs) ElementType

func (ShareAccessArgs) ElementType() reflect.Type

type ShareAccessArray added in v2.14.1

type ShareAccessArray []ShareAccessInput

func (ShareAccessArray) ElementType added in v2.14.1

func (ShareAccessArray) ElementType() reflect.Type

func (ShareAccessArray) ToShareAccessArrayOutput added in v2.14.1

func (i ShareAccessArray) ToShareAccessArrayOutput() ShareAccessArrayOutput

func (ShareAccessArray) ToShareAccessArrayOutputWithContext added in v2.14.1

func (i ShareAccessArray) ToShareAccessArrayOutputWithContext(ctx context.Context) ShareAccessArrayOutput

type ShareAccessArrayInput added in v2.14.1

type ShareAccessArrayInput interface {
	pulumi.Input

	ToShareAccessArrayOutput() ShareAccessArrayOutput
	ToShareAccessArrayOutputWithContext(context.Context) ShareAccessArrayOutput
}

ShareAccessArrayInput is an input type that accepts ShareAccessArray and ShareAccessArrayOutput values. You can construct a concrete instance of `ShareAccessArrayInput` via:

ShareAccessArray{ ShareAccessArgs{...} }

type ShareAccessArrayOutput added in v2.14.1

type ShareAccessArrayOutput struct{ *pulumi.OutputState }

func (ShareAccessArrayOutput) ElementType added in v2.14.1

func (ShareAccessArrayOutput) ElementType() reflect.Type

func (ShareAccessArrayOutput) Index added in v2.14.1

func (ShareAccessArrayOutput) ToShareAccessArrayOutput added in v2.14.1

func (o ShareAccessArrayOutput) ToShareAccessArrayOutput() ShareAccessArrayOutput

func (ShareAccessArrayOutput) ToShareAccessArrayOutputWithContext added in v2.14.1

func (o ShareAccessArrayOutput) ToShareAccessArrayOutputWithContext(ctx context.Context) ShareAccessArrayOutput

type ShareAccessInput added in v2.10.0

type ShareAccessInput interface {
	pulumi.Input

	ToShareAccessOutput() ShareAccessOutput
	ToShareAccessOutputWithContext(ctx context.Context) ShareAccessOutput
}

type ShareAccessMap added in v2.14.1

type ShareAccessMap map[string]ShareAccessInput

func (ShareAccessMap) ElementType added in v2.14.1

func (ShareAccessMap) ElementType() reflect.Type

func (ShareAccessMap) ToShareAccessMapOutput added in v2.14.1

func (i ShareAccessMap) ToShareAccessMapOutput() ShareAccessMapOutput

func (ShareAccessMap) ToShareAccessMapOutputWithContext added in v2.14.1

func (i ShareAccessMap) ToShareAccessMapOutputWithContext(ctx context.Context) ShareAccessMapOutput

type ShareAccessMapInput added in v2.14.1

type ShareAccessMapInput interface {
	pulumi.Input

	ToShareAccessMapOutput() ShareAccessMapOutput
	ToShareAccessMapOutputWithContext(context.Context) ShareAccessMapOutput
}

ShareAccessMapInput is an input type that accepts ShareAccessMap and ShareAccessMapOutput values. You can construct a concrete instance of `ShareAccessMapInput` via:

ShareAccessMap{ "key": ShareAccessArgs{...} }

type ShareAccessMapOutput added in v2.14.1

type ShareAccessMapOutput struct{ *pulumi.OutputState }

func (ShareAccessMapOutput) ElementType added in v2.14.1

func (ShareAccessMapOutput) ElementType() reflect.Type

func (ShareAccessMapOutput) MapIndex added in v2.14.1

func (ShareAccessMapOutput) ToShareAccessMapOutput added in v2.14.1

func (o ShareAccessMapOutput) ToShareAccessMapOutput() ShareAccessMapOutput

func (ShareAccessMapOutput) ToShareAccessMapOutputWithContext added in v2.14.1

func (o ShareAccessMapOutput) ToShareAccessMapOutputWithContext(ctx context.Context) ShareAccessMapOutput

type ShareAccessOutput added in v2.10.0

type ShareAccessOutput struct {
	*pulumi.OutputState
}

func (ShareAccessOutput) ElementType added in v2.10.0

func (ShareAccessOutput) ElementType() reflect.Type

func (ShareAccessOutput) ToShareAccessOutput added in v2.10.0

func (o ShareAccessOutput) ToShareAccessOutput() ShareAccessOutput

func (ShareAccessOutput) ToShareAccessOutputWithContext added in v2.10.0

func (o ShareAccessOutput) ToShareAccessOutputWithContext(ctx context.Context) ShareAccessOutput

func (ShareAccessOutput) ToShareAccessPtrOutput added in v2.14.1

func (o ShareAccessOutput) ToShareAccessPtrOutput() ShareAccessPtrOutput

func (ShareAccessOutput) ToShareAccessPtrOutputWithContext added in v2.14.1

func (o ShareAccessOutput) ToShareAccessPtrOutputWithContext(ctx context.Context) ShareAccessPtrOutput

type ShareAccessPtrInput added in v2.14.1

type ShareAccessPtrInput interface {
	pulumi.Input

	ToShareAccessPtrOutput() ShareAccessPtrOutput
	ToShareAccessPtrOutputWithContext(ctx context.Context) ShareAccessPtrOutput
}

type ShareAccessPtrOutput added in v2.14.1

type ShareAccessPtrOutput struct {
	*pulumi.OutputState
}

func (ShareAccessPtrOutput) ElementType added in v2.14.1

func (ShareAccessPtrOutput) ElementType() reflect.Type

func (ShareAccessPtrOutput) ToShareAccessPtrOutput added in v2.14.1

func (o ShareAccessPtrOutput) ToShareAccessPtrOutput() ShareAccessPtrOutput

func (ShareAccessPtrOutput) ToShareAccessPtrOutputWithContext added in v2.14.1

func (o ShareAccessPtrOutput) ToShareAccessPtrOutputWithContext(ctx context.Context) ShareAccessPtrOutput

type ShareAccessState

type ShareAccessState struct {
	// The access credential of the entity granted access.
	AccessKey pulumi.StringPtrInput
	// The access level to the share. Can either be `rw` or `ro`.
	AccessLevel pulumi.StringPtrInput
	// The value that defines the access. Can either be an IP
	// address or a username verified by configured Security Service of the Share Network.
	AccessTo pulumi.StringPtrInput
	// The access rule type. Can either be an ip, user,
	// cert, or cephx. cephx support requires an OpenStack environment that supports
	// Shared Filesystem microversion 2.13 (Mitaka) or later.
	AccessType pulumi.StringPtrInput
	// The region in which to obtain the V2 Shared File System client.
	// A Shared File System client is needed to create a share access. Changing this
	// creates a new share access.
	Region pulumi.StringPtrInput
	// The UUID of the share to which you are granted access.
	ShareId pulumi.StringPtrInput
}

func (ShareAccessState) ElementType

func (ShareAccessState) ElementType() reflect.Type

type ShareArgs

type ShareArgs struct {
	// The share availability zone. Changing this creates a
	// new share.
	AvailabilityZone pulumi.StringPtrInput
	// The human-readable description for the share.
	// Changing this updates the description of the existing share.
	Description pulumi.StringPtrInput
	// The level of visibility for the share. Set to true to make
	// share public. Set to false to make it private. Default value is false. Changing this
	// updates the existing share.
	IsPublic pulumi.BoolPtrInput
	// One or more metadata key and value pairs as a dictionary of
	// strings.
	Metadata pulumi.MapInput
	// The name of the share. Changing this updates the name
	// of the existing share.
	Name pulumi.StringPtrInput
	// The region in which to obtain the V2 Shared File System client.
	// A Shared File System client is needed to create a share. Changing this
	// creates a new share.
	Region pulumi.StringPtrInput
	// The UUID of a share network where the share server exists
	// or will be created. If `shareNetworkId` is not set and you provide a `snapshotId`,
	// the shareNetworkId value from the snapshot is used. Changing this creates a new share.
	ShareNetworkId pulumi.StringPtrInput
	// The share protocol - can either be NFS, CIFS,
	// CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
	ShareProto pulumi.StringInput
	// The share type name. If you omit this parameter, the default
	// share type is used.
	ShareType pulumi.StringPtrInput
	// The share size, in GBs. The requested share size cannot be greater
	// than the allowed GB quota. Changing this resizes the existing share.
	Size pulumi.IntInput
	// The UUID of the share's base snapshot. Changing this creates
	// a new share.
	SnapshotId pulumi.StringPtrInput
}

The set of arguments for constructing a Share resource.

func (ShareArgs) ElementType

func (ShareArgs) ElementType() reflect.Type

type ShareArray added in v2.14.1

type ShareArray []ShareInput

func (ShareArray) ElementType added in v2.14.1

func (ShareArray) ElementType() reflect.Type

func (ShareArray) ToShareArrayOutput added in v2.14.1

func (i ShareArray) ToShareArrayOutput() ShareArrayOutput

func (ShareArray) ToShareArrayOutputWithContext added in v2.14.1

func (i ShareArray) ToShareArrayOutputWithContext(ctx context.Context) ShareArrayOutput

type ShareArrayInput added in v2.14.1

type ShareArrayInput interface {
	pulumi.Input

	ToShareArrayOutput() ShareArrayOutput
	ToShareArrayOutputWithContext(context.Context) ShareArrayOutput
}

ShareArrayInput is an input type that accepts ShareArray and ShareArrayOutput values. You can construct a concrete instance of `ShareArrayInput` via:

ShareArray{ ShareArgs{...} }

type ShareArrayOutput added in v2.14.1

type ShareArrayOutput struct{ *pulumi.OutputState }

func (ShareArrayOutput) ElementType added in v2.14.1

func (ShareArrayOutput) ElementType() reflect.Type

func (ShareArrayOutput) Index added in v2.14.1

func (ShareArrayOutput) ToShareArrayOutput added in v2.14.1

func (o ShareArrayOutput) ToShareArrayOutput() ShareArrayOutput

func (ShareArrayOutput) ToShareArrayOutputWithContext added in v2.14.1

func (o ShareArrayOutput) ToShareArrayOutputWithContext(ctx context.Context) ShareArrayOutput

type ShareExportLocation

type ShareExportLocation struct {
	Path      *string `pulumi:"path"`
	Preferred *string `pulumi:"preferred"`
}

type ShareExportLocationArgs

type ShareExportLocationArgs struct {
	Path      pulumi.StringPtrInput `pulumi:"path"`
	Preferred pulumi.StringPtrInput `pulumi:"preferred"`
}

func (ShareExportLocationArgs) ElementType

func (ShareExportLocationArgs) ElementType() reflect.Type

func (ShareExportLocationArgs) ToShareExportLocationOutput

func (i ShareExportLocationArgs) ToShareExportLocationOutput() ShareExportLocationOutput

func (ShareExportLocationArgs) ToShareExportLocationOutputWithContext

func (i ShareExportLocationArgs) ToShareExportLocationOutputWithContext(ctx context.Context) ShareExportLocationOutput

type ShareExportLocationArray

type ShareExportLocationArray []ShareExportLocationInput

func (ShareExportLocationArray) ElementType

func (ShareExportLocationArray) ElementType() reflect.Type

func (ShareExportLocationArray) ToShareExportLocationArrayOutput

func (i ShareExportLocationArray) ToShareExportLocationArrayOutput() ShareExportLocationArrayOutput

func (ShareExportLocationArray) ToShareExportLocationArrayOutputWithContext

func (i ShareExportLocationArray) ToShareExportLocationArrayOutputWithContext(ctx context.Context) ShareExportLocationArrayOutput

type ShareExportLocationArrayInput

type ShareExportLocationArrayInput interface {
	pulumi.Input

	ToShareExportLocationArrayOutput() ShareExportLocationArrayOutput
	ToShareExportLocationArrayOutputWithContext(context.Context) ShareExportLocationArrayOutput
}

ShareExportLocationArrayInput is an input type that accepts ShareExportLocationArray and ShareExportLocationArrayOutput values. You can construct a concrete instance of `ShareExportLocationArrayInput` via:

ShareExportLocationArray{ ShareExportLocationArgs{...} }

type ShareExportLocationArrayOutput

type ShareExportLocationArrayOutput struct{ *pulumi.OutputState }

func (ShareExportLocationArrayOutput) ElementType

func (ShareExportLocationArrayOutput) Index

func (ShareExportLocationArrayOutput) ToShareExportLocationArrayOutput

func (o ShareExportLocationArrayOutput) ToShareExportLocationArrayOutput() ShareExportLocationArrayOutput

func (ShareExportLocationArrayOutput) ToShareExportLocationArrayOutputWithContext

func (o ShareExportLocationArrayOutput) ToShareExportLocationArrayOutputWithContext(ctx context.Context) ShareExportLocationArrayOutput

type ShareExportLocationInput

type ShareExportLocationInput interface {
	pulumi.Input

	ToShareExportLocationOutput() ShareExportLocationOutput
	ToShareExportLocationOutputWithContext(context.Context) ShareExportLocationOutput
}

ShareExportLocationInput is an input type that accepts ShareExportLocationArgs and ShareExportLocationOutput values. You can construct a concrete instance of `ShareExportLocationInput` via:

ShareExportLocationArgs{...}

type ShareExportLocationOutput

type ShareExportLocationOutput struct{ *pulumi.OutputState }

func (ShareExportLocationOutput) ElementType

func (ShareExportLocationOutput) ElementType() reflect.Type

func (ShareExportLocationOutput) Path

func (ShareExportLocationOutput) Preferred

func (ShareExportLocationOutput) ToShareExportLocationOutput

func (o ShareExportLocationOutput) ToShareExportLocationOutput() ShareExportLocationOutput

func (ShareExportLocationOutput) ToShareExportLocationOutputWithContext

func (o ShareExportLocationOutput) ToShareExportLocationOutputWithContext(ctx context.Context) ShareExportLocationOutput

type ShareInput added in v2.10.0

type ShareInput interface {
	pulumi.Input

	ToShareOutput() ShareOutput
	ToShareOutputWithContext(ctx context.Context) ShareOutput
}

type ShareMap added in v2.14.1

type ShareMap map[string]ShareInput

func (ShareMap) ElementType added in v2.14.1

func (ShareMap) ElementType() reflect.Type

func (ShareMap) ToShareMapOutput added in v2.14.1

func (i ShareMap) ToShareMapOutput() ShareMapOutput

func (ShareMap) ToShareMapOutputWithContext added in v2.14.1

func (i ShareMap) ToShareMapOutputWithContext(ctx context.Context) ShareMapOutput

type ShareMapInput added in v2.14.1

type ShareMapInput interface {
	pulumi.Input

	ToShareMapOutput() ShareMapOutput
	ToShareMapOutputWithContext(context.Context) ShareMapOutput
}

ShareMapInput is an input type that accepts ShareMap and ShareMapOutput values. You can construct a concrete instance of `ShareMapInput` via:

ShareMap{ "key": ShareArgs{...} }

type ShareMapOutput added in v2.14.1

type ShareMapOutput struct{ *pulumi.OutputState }

func (ShareMapOutput) ElementType added in v2.14.1

func (ShareMapOutput) ElementType() reflect.Type

func (ShareMapOutput) MapIndex added in v2.14.1

func (ShareMapOutput) ToShareMapOutput added in v2.14.1

func (o ShareMapOutput) ToShareMapOutput() ShareMapOutput

func (ShareMapOutput) ToShareMapOutputWithContext added in v2.14.1

func (o ShareMapOutput) ToShareMapOutputWithContext(ctx context.Context) ShareMapOutput

type ShareNetwork

type ShareNetwork struct {
	pulumi.CustomResourceState

	// The share network CIDR.
	Cidr pulumi.StringOutput `pulumi:"cidr"`
	// The human-readable description for the share network.
	// Changing this updates the description of the existing share network.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The IP version of the share network. Can either be 4 or 6.
	IpVersion pulumi.IntOutput `pulumi:"ipVersion"`
	// The name for the share network. Changing this updates the name
	// of the existing share network.
	Name pulumi.StringOutput `pulumi:"name"`
	// The share network type. Can either be VLAN, VXLAN, GRE, or flat.
	NetworkType pulumi.StringOutput `pulumi:"networkType"`
	// 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.
	NeutronNetId pulumi.StringOutput `pulumi:"neutronNetId"`
	// 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.
	NeutronSubnetId pulumi.StringOutput `pulumi:"neutronSubnetId"`
	// The owner of the Share Network.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// The region in which to obtain the V2 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.
	Region pulumi.StringOutput `pulumi:"region"`
	// The list of security service IDs to associate with
	// the share network. The security service must be specified by ID and not name.
	SecurityServiceIds pulumi.StringArrayOutput `pulumi:"securityServiceIds"`
	// The share network segmentation ID.
	SegmentationId pulumi.IntOutput `pulumi:"segmentationId"`
}

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

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/networking"
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		network1, err := networking.NewNetwork(ctx, "network1", &networking.NetworkArgs{
			AdminStateUp: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		subnet1, err := networking.NewSubnet(ctx, "subnet1", &networking.SubnetArgs{
			Cidr:      pulumi.String("192.168.199.0/24"),
			IpVersion: pulumi.Int(4),
			NetworkId: network1.ID(),
		})
		if err != nil {
			return err
		}
		_, err = sharedfilesystem.NewShareNetwork(ctx, "sharenetwork1", &sharedfilesystem.ShareNetworkArgs{
			Description:     pulumi.String("test share network"),
			NeutronNetId:    network1.ID(),
			NeutronSubnetId: subnet1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Share network with associated security services

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/networking"
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		network1, err := networking.NewNetwork(ctx, "network1", &networking.NetworkArgs{
			AdminStateUp: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		subnet1, err := networking.NewSubnet(ctx, "subnet1", &networking.SubnetArgs{
			Cidr:      pulumi.String("192.168.199.0/24"),
			IpVersion: pulumi.Int(4),
			NetworkId: network1.ID(),
		})
		if err != nil {
			return err
		}
		securityservice1, err := sharedfilesystem.NewSecurityService(ctx, "securityservice1", &sharedfilesystem.SecurityServiceArgs{
			Description: pulumi.String("created by terraform"),
			DnsIp:       pulumi.String("192.168.199.10"),
			Domain:      pulumi.String("example.com"),
			Ou:          pulumi.String("CN=Computers,DC=example,DC=com"),
			Password:    pulumi.String("s8cret"),
			Server:      pulumi.String("192.168.199.10"),
			Type:        pulumi.String("active_directory"),
			User:        pulumi.String("joinDomainUser"),
		})
		if err != nil {
			return err
		}
		_, err = sharedfilesystem.NewShareNetwork(ctx, "sharenetwork1", &sharedfilesystem.ShareNetworkArgs{
			Description:     pulumi.String("test share network with security services"),
			NeutronNetId:    network1.ID(),
			NeutronSubnetId: subnet1.ID(),
			SecurityServiceIds: pulumi.StringArray{
				securityservice1.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported by specifying the ID of the share network

```sh

$ pulumi import openstack:sharedfilesystem/shareNetwork:ShareNetwork sharenetwork_1 <id>

```

func GetShareNetwork

func GetShareNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShareNetworkState, opts ...pulumi.ResourceOption) (*ShareNetwork, error)

GetShareNetwork gets an existing ShareNetwork resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewShareNetwork

func NewShareNetwork(ctx *pulumi.Context,
	name string, args *ShareNetworkArgs, opts ...pulumi.ResourceOption) (*ShareNetwork, error)

NewShareNetwork registers a new resource with the given unique name, arguments, and options.

func (*ShareNetwork) ElementType added in v2.10.0

func (*ShareNetwork) ElementType() reflect.Type

func (*ShareNetwork) ToShareNetworkOutput added in v2.10.0

func (i *ShareNetwork) ToShareNetworkOutput() ShareNetworkOutput

func (*ShareNetwork) ToShareNetworkOutputWithContext added in v2.10.0

func (i *ShareNetwork) ToShareNetworkOutputWithContext(ctx context.Context) ShareNetworkOutput

func (*ShareNetwork) ToShareNetworkPtrOutput added in v2.14.1

func (i *ShareNetwork) ToShareNetworkPtrOutput() ShareNetworkPtrOutput

func (*ShareNetwork) ToShareNetworkPtrOutputWithContext added in v2.14.1

func (i *ShareNetwork) ToShareNetworkPtrOutputWithContext(ctx context.Context) ShareNetworkPtrOutput

type ShareNetworkArgs

type ShareNetworkArgs struct {
	// The human-readable description for the share network.
	// Changing this updates the description of the existing share network.
	Description pulumi.StringPtrInput
	// The name for the share network. Changing this updates the name
	// of the existing share network.
	Name pulumi.StringPtrInput
	// 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.
	NeutronNetId pulumi.StringInput
	// 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.
	NeutronSubnetId pulumi.StringInput
	// The region in which to obtain the V2 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.
	Region pulumi.StringPtrInput
	// The list of security service IDs to associate with
	// the share network. The security service must be specified by ID and not name.
	SecurityServiceIds pulumi.StringArrayInput
}

The set of arguments for constructing a ShareNetwork resource.

func (ShareNetworkArgs) ElementType

func (ShareNetworkArgs) ElementType() reflect.Type

type ShareNetworkArray added in v2.14.1

type ShareNetworkArray []ShareNetworkInput

func (ShareNetworkArray) ElementType added in v2.14.1

func (ShareNetworkArray) ElementType() reflect.Type

func (ShareNetworkArray) ToShareNetworkArrayOutput added in v2.14.1

func (i ShareNetworkArray) ToShareNetworkArrayOutput() ShareNetworkArrayOutput

func (ShareNetworkArray) ToShareNetworkArrayOutputWithContext added in v2.14.1

func (i ShareNetworkArray) ToShareNetworkArrayOutputWithContext(ctx context.Context) ShareNetworkArrayOutput

type ShareNetworkArrayInput added in v2.14.1

type ShareNetworkArrayInput interface {
	pulumi.Input

	ToShareNetworkArrayOutput() ShareNetworkArrayOutput
	ToShareNetworkArrayOutputWithContext(context.Context) ShareNetworkArrayOutput
}

ShareNetworkArrayInput is an input type that accepts ShareNetworkArray and ShareNetworkArrayOutput values. You can construct a concrete instance of `ShareNetworkArrayInput` via:

ShareNetworkArray{ ShareNetworkArgs{...} }

type ShareNetworkArrayOutput added in v2.14.1

type ShareNetworkArrayOutput struct{ *pulumi.OutputState }

func (ShareNetworkArrayOutput) ElementType added in v2.14.1

func (ShareNetworkArrayOutput) ElementType() reflect.Type

func (ShareNetworkArrayOutput) Index added in v2.14.1

func (ShareNetworkArrayOutput) ToShareNetworkArrayOutput added in v2.14.1

func (o ShareNetworkArrayOutput) ToShareNetworkArrayOutput() ShareNetworkArrayOutput

func (ShareNetworkArrayOutput) ToShareNetworkArrayOutputWithContext added in v2.14.1

func (o ShareNetworkArrayOutput) ToShareNetworkArrayOutputWithContext(ctx context.Context) ShareNetworkArrayOutput

type ShareNetworkInput added in v2.10.0

type ShareNetworkInput interface {
	pulumi.Input

	ToShareNetworkOutput() ShareNetworkOutput
	ToShareNetworkOutputWithContext(ctx context.Context) ShareNetworkOutput
}

type ShareNetworkMap added in v2.14.1

type ShareNetworkMap map[string]ShareNetworkInput

func (ShareNetworkMap) ElementType added in v2.14.1

func (ShareNetworkMap) ElementType() reflect.Type

func (ShareNetworkMap) ToShareNetworkMapOutput added in v2.14.1

func (i ShareNetworkMap) ToShareNetworkMapOutput() ShareNetworkMapOutput

func (ShareNetworkMap) ToShareNetworkMapOutputWithContext added in v2.14.1

func (i ShareNetworkMap) ToShareNetworkMapOutputWithContext(ctx context.Context) ShareNetworkMapOutput

type ShareNetworkMapInput added in v2.14.1

type ShareNetworkMapInput interface {
	pulumi.Input

	ToShareNetworkMapOutput() ShareNetworkMapOutput
	ToShareNetworkMapOutputWithContext(context.Context) ShareNetworkMapOutput
}

ShareNetworkMapInput is an input type that accepts ShareNetworkMap and ShareNetworkMapOutput values. You can construct a concrete instance of `ShareNetworkMapInput` via:

ShareNetworkMap{ "key": ShareNetworkArgs{...} }

type ShareNetworkMapOutput added in v2.14.1

type ShareNetworkMapOutput struct{ *pulumi.OutputState }

func (ShareNetworkMapOutput) ElementType added in v2.14.1

func (ShareNetworkMapOutput) ElementType() reflect.Type

func (ShareNetworkMapOutput) MapIndex added in v2.14.1

func (ShareNetworkMapOutput) ToShareNetworkMapOutput added in v2.14.1

func (o ShareNetworkMapOutput) ToShareNetworkMapOutput() ShareNetworkMapOutput

func (ShareNetworkMapOutput) ToShareNetworkMapOutputWithContext added in v2.14.1

func (o ShareNetworkMapOutput) ToShareNetworkMapOutputWithContext(ctx context.Context) ShareNetworkMapOutput

type ShareNetworkOutput added in v2.10.0

type ShareNetworkOutput struct {
	*pulumi.OutputState
}

func (ShareNetworkOutput) ElementType added in v2.10.0

func (ShareNetworkOutput) ElementType() reflect.Type

func (ShareNetworkOutput) ToShareNetworkOutput added in v2.10.0

func (o ShareNetworkOutput) ToShareNetworkOutput() ShareNetworkOutput

func (ShareNetworkOutput) ToShareNetworkOutputWithContext added in v2.10.0

func (o ShareNetworkOutput) ToShareNetworkOutputWithContext(ctx context.Context) ShareNetworkOutput

func (ShareNetworkOutput) ToShareNetworkPtrOutput added in v2.14.1

func (o ShareNetworkOutput) ToShareNetworkPtrOutput() ShareNetworkPtrOutput

func (ShareNetworkOutput) ToShareNetworkPtrOutputWithContext added in v2.14.1

func (o ShareNetworkOutput) ToShareNetworkPtrOutputWithContext(ctx context.Context) ShareNetworkPtrOutput

type ShareNetworkPtrInput added in v2.14.1

type ShareNetworkPtrInput interface {
	pulumi.Input

	ToShareNetworkPtrOutput() ShareNetworkPtrOutput
	ToShareNetworkPtrOutputWithContext(ctx context.Context) ShareNetworkPtrOutput
}

type ShareNetworkPtrOutput added in v2.14.1

type ShareNetworkPtrOutput struct {
	*pulumi.OutputState
}

func (ShareNetworkPtrOutput) ElementType added in v2.14.1

func (ShareNetworkPtrOutput) ElementType() reflect.Type

func (ShareNetworkPtrOutput) ToShareNetworkPtrOutput added in v2.14.1

func (o ShareNetworkPtrOutput) ToShareNetworkPtrOutput() ShareNetworkPtrOutput

func (ShareNetworkPtrOutput) ToShareNetworkPtrOutputWithContext added in v2.14.1

func (o ShareNetworkPtrOutput) ToShareNetworkPtrOutputWithContext(ctx context.Context) ShareNetworkPtrOutput

type ShareNetworkState

type ShareNetworkState struct {
	// The share network CIDR.
	Cidr pulumi.StringPtrInput
	// The human-readable description for the share network.
	// Changing this updates the description of the existing share network.
	Description pulumi.StringPtrInput
	// The IP version of the share network. Can either be 4 or 6.
	IpVersion pulumi.IntPtrInput
	// The name for the share network. Changing this updates the name
	// of the existing share network.
	Name pulumi.StringPtrInput
	// The share network type. Can either be VLAN, VXLAN, GRE, or flat.
	NetworkType pulumi.StringPtrInput
	// 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.
	NeutronNetId pulumi.StringPtrInput
	// 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.
	NeutronSubnetId pulumi.StringPtrInput
	// The owner of the Share Network.
	ProjectId pulumi.StringPtrInput
	// The region in which to obtain the V2 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.
	Region pulumi.StringPtrInput
	// The list of security service IDs to associate with
	// the share network. The security service must be specified by ID and not name.
	SecurityServiceIds pulumi.StringArrayInput
	// The share network segmentation ID.
	SegmentationId pulumi.IntPtrInput
}

func (ShareNetworkState) ElementType

func (ShareNetworkState) ElementType() reflect.Type

type ShareOutput added in v2.10.0

type ShareOutput struct {
	*pulumi.OutputState
}

func (ShareOutput) ElementType added in v2.10.0

func (ShareOutput) ElementType() reflect.Type

func (ShareOutput) ToShareOutput added in v2.10.0

func (o ShareOutput) ToShareOutput() ShareOutput

func (ShareOutput) ToShareOutputWithContext added in v2.10.0

func (o ShareOutput) ToShareOutputWithContext(ctx context.Context) ShareOutput

func (ShareOutput) ToSharePtrOutput added in v2.14.1

func (o ShareOutput) ToSharePtrOutput() SharePtrOutput

func (ShareOutput) ToSharePtrOutputWithContext added in v2.14.1

func (o ShareOutput) ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput

type SharePtrInput added in v2.14.1

type SharePtrInput interface {
	pulumi.Input

	ToSharePtrOutput() SharePtrOutput
	ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput
}

type SharePtrOutput added in v2.14.1

type SharePtrOutput struct {
	*pulumi.OutputState
}

func (SharePtrOutput) ElementType added in v2.14.1

func (SharePtrOutput) ElementType() reflect.Type

func (SharePtrOutput) ToSharePtrOutput added in v2.14.1

func (o SharePtrOutput) ToSharePtrOutput() SharePtrOutput

func (SharePtrOutput) ToSharePtrOutputWithContext added in v2.14.1

func (o SharePtrOutput) ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput

type ShareState

type ShareState struct {
	// The map of metadata, assigned on the share, which has been
	// explicitly and implicitly added.
	AllMetadata pulumi.MapInput
	// The share availability zone. Changing this creates a
	// new share.
	AvailabilityZone pulumi.StringPtrInput
	// The human-readable description for the share.
	// Changing this updates the description of the existing share.
	Description pulumi.StringPtrInput
	// A list of export locations. For example, when a share server
	// has more than one network interface, it can have multiple export locations.
	ExportLocations ShareExportLocationArrayInput
	// Indicates whether a share has replicas or not.
	HasReplicas pulumi.BoolPtrInput
	// The share host name.
	Host pulumi.StringPtrInput
	// The level of visibility for the share. Set to true to make
	// share public. Set to false to make it private. Default value is false. Changing this
	// updates the existing share.
	IsPublic pulumi.BoolPtrInput
	// One or more metadata key and value pairs as a dictionary of
	// strings.
	Metadata pulumi.MapInput
	// The name of the share. Changing this updates the name
	// of the existing share.
	Name pulumi.StringPtrInput
	// The owner of the Share.
	ProjectId pulumi.StringPtrInput
	// The region in which to obtain the V2 Shared File System client.
	// A Shared File System client is needed to create a share. Changing this
	// creates a new share.
	Region pulumi.StringPtrInput
	// The share replication type.
	ReplicationType pulumi.StringPtrInput
	// The UUID of a share network where the share server exists
	// or will be created. If `shareNetworkId` is not set and you provide a `snapshotId`,
	// the shareNetworkId value from the snapshot is used. Changing this creates a new share.
	ShareNetworkId pulumi.StringPtrInput
	// The share protocol - can either be NFS, CIFS,
	// CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
	ShareProto pulumi.StringPtrInput
	// The UUID of the share server.
	ShareServerId pulumi.StringPtrInput
	// The share type name. If you omit this parameter, the default
	// share type is used.
	ShareType pulumi.StringPtrInput
	// The share size, in GBs. The requested share size cannot be greater
	// than the allowed GB quota. Changing this resizes the existing share.
	Size pulumi.IntPtrInput
	// The UUID of the share's base snapshot. Changing this creates
	// a new share.
	SnapshotId pulumi.StringPtrInput
}

func (ShareState) ElementType

func (ShareState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL