Documentation ¶
Index ¶
- type GetAvailbilityZonesArgs
- type GetAvailbilityZonesResult
- type GetShareExportLocation
- type GetShareExportLocationArgs
- type GetShareExportLocationArray
- func (GetShareExportLocationArray) ElementType() reflect.Type
- func (i GetShareExportLocationArray) ToGetShareExportLocationArrayOutput() GetShareExportLocationArrayOutput
- func (i GetShareExportLocationArray) ToGetShareExportLocationArrayOutputWithContext(ctx context.Context) GetShareExportLocationArrayOutput
- type GetShareExportLocationArrayInput
- type GetShareExportLocationArrayOutput
- func (GetShareExportLocationArrayOutput) ElementType() reflect.Type
- func (o GetShareExportLocationArrayOutput) Index(i pulumi.IntInput) GetShareExportLocationOutput
- func (o GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutput() GetShareExportLocationArrayOutput
- func (o GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutputWithContext(ctx context.Context) GetShareExportLocationArrayOutput
- type GetShareExportLocationInput
- type GetShareExportLocationOutput
- func (GetShareExportLocationOutput) ElementType() reflect.Type
- func (o GetShareExportLocationOutput) Path() pulumi.StringOutput
- func (o GetShareExportLocationOutput) Preferred() pulumi.StringOutput
- func (o GetShareExportLocationOutput) ToGetShareExportLocationOutput() GetShareExportLocationOutput
- func (o GetShareExportLocationOutput) ToGetShareExportLocationOutputWithContext(ctx context.Context) GetShareExportLocationOutput
- type GetSnapshotArgs
- type GetSnapshotResult
- type LookupShareArgs
- type LookupShareNetworkArgs
- type LookupShareNetworkResult
- type LookupShareResult
- type SecurityService
- func (*SecurityService) ElementType() reflect.Type
- func (i *SecurityService) ToSecurityServiceOutput() SecurityServiceOutput
- func (i *SecurityService) ToSecurityServiceOutputWithContext(ctx context.Context) SecurityServiceOutput
- func (i *SecurityService) ToSecurityServicePtrOutput() SecurityServicePtrOutput
- func (i *SecurityService) ToSecurityServicePtrOutputWithContext(ctx context.Context) SecurityServicePtrOutput
- type SecurityServiceArgs
- type SecurityServiceArray
- type SecurityServiceArrayInput
- type SecurityServiceArrayOutput
- func (SecurityServiceArrayOutput) ElementType() reflect.Type
- func (o SecurityServiceArrayOutput) Index(i pulumi.IntInput) SecurityServiceOutput
- func (o SecurityServiceArrayOutput) ToSecurityServiceArrayOutput() SecurityServiceArrayOutput
- func (o SecurityServiceArrayOutput) ToSecurityServiceArrayOutputWithContext(ctx context.Context) SecurityServiceArrayOutput
- type SecurityServiceInput
- type SecurityServiceMap
- type SecurityServiceMapInput
- type SecurityServiceMapOutput
- func (SecurityServiceMapOutput) ElementType() reflect.Type
- func (o SecurityServiceMapOutput) MapIndex(k pulumi.StringInput) SecurityServiceOutput
- func (o SecurityServiceMapOutput) ToSecurityServiceMapOutput() SecurityServiceMapOutput
- func (o SecurityServiceMapOutput) ToSecurityServiceMapOutputWithContext(ctx context.Context) SecurityServiceMapOutput
- type SecurityServiceOutput
- func (SecurityServiceOutput) ElementType() reflect.Type
- func (o SecurityServiceOutput) ToSecurityServiceOutput() SecurityServiceOutput
- func (o SecurityServiceOutput) ToSecurityServiceOutputWithContext(ctx context.Context) SecurityServiceOutput
- func (o SecurityServiceOutput) ToSecurityServicePtrOutput() SecurityServicePtrOutput
- func (o SecurityServiceOutput) ToSecurityServicePtrOutputWithContext(ctx context.Context) SecurityServicePtrOutput
- type SecurityServicePtrInput
- type SecurityServicePtrOutput
- type SecurityServiceState
- type Share
- type ShareAccess
- func (*ShareAccess) ElementType() reflect.Type
- func (i *ShareAccess) ToShareAccessOutput() ShareAccessOutput
- func (i *ShareAccess) ToShareAccessOutputWithContext(ctx context.Context) ShareAccessOutput
- func (i *ShareAccess) ToShareAccessPtrOutput() ShareAccessPtrOutput
- func (i *ShareAccess) ToShareAccessPtrOutputWithContext(ctx context.Context) ShareAccessPtrOutput
- type ShareAccessArgs
- type ShareAccessArray
- type ShareAccessArrayInput
- type ShareAccessArrayOutput
- func (ShareAccessArrayOutput) ElementType() reflect.Type
- func (o ShareAccessArrayOutput) Index(i pulumi.IntInput) ShareAccessOutput
- func (o ShareAccessArrayOutput) ToShareAccessArrayOutput() ShareAccessArrayOutput
- func (o ShareAccessArrayOutput) ToShareAccessArrayOutputWithContext(ctx context.Context) ShareAccessArrayOutput
- type ShareAccessInput
- type ShareAccessMap
- type ShareAccessMapInput
- type ShareAccessMapOutput
- func (ShareAccessMapOutput) ElementType() reflect.Type
- func (o ShareAccessMapOutput) MapIndex(k pulumi.StringInput) ShareAccessOutput
- func (o ShareAccessMapOutput) ToShareAccessMapOutput() ShareAccessMapOutput
- func (o ShareAccessMapOutput) ToShareAccessMapOutputWithContext(ctx context.Context) ShareAccessMapOutput
- type ShareAccessOutput
- func (ShareAccessOutput) ElementType() reflect.Type
- func (o ShareAccessOutput) ToShareAccessOutput() ShareAccessOutput
- func (o ShareAccessOutput) ToShareAccessOutputWithContext(ctx context.Context) ShareAccessOutput
- func (o ShareAccessOutput) ToShareAccessPtrOutput() ShareAccessPtrOutput
- func (o ShareAccessOutput) ToShareAccessPtrOutputWithContext(ctx context.Context) ShareAccessPtrOutput
- type ShareAccessPtrInput
- type ShareAccessPtrOutput
- type ShareAccessState
- type ShareArgs
- type ShareArray
- type ShareArrayInput
- type ShareArrayOutput
- type ShareExportLocation
- type ShareExportLocationArgs
- type ShareExportLocationArray
- type ShareExportLocationArrayInput
- type ShareExportLocationArrayOutput
- func (ShareExportLocationArrayOutput) ElementType() reflect.Type
- func (o ShareExportLocationArrayOutput) Index(i pulumi.IntInput) ShareExportLocationOutput
- func (o ShareExportLocationArrayOutput) ToShareExportLocationArrayOutput() ShareExportLocationArrayOutput
- func (o ShareExportLocationArrayOutput) ToShareExportLocationArrayOutputWithContext(ctx context.Context) ShareExportLocationArrayOutput
- type ShareExportLocationInput
- type ShareExportLocationOutput
- func (ShareExportLocationOutput) ElementType() reflect.Type
- func (o ShareExportLocationOutput) Path() pulumi.StringPtrOutput
- func (o ShareExportLocationOutput) Preferred() pulumi.StringPtrOutput
- func (o ShareExportLocationOutput) ToShareExportLocationOutput() ShareExportLocationOutput
- func (o ShareExportLocationOutput) ToShareExportLocationOutputWithContext(ctx context.Context) ShareExportLocationOutput
- type ShareInput
- type ShareMap
- type ShareMapInput
- type ShareMapOutput
- type ShareNetwork
- func (*ShareNetwork) ElementType() reflect.Type
- func (i *ShareNetwork) ToShareNetworkOutput() ShareNetworkOutput
- func (i *ShareNetwork) ToShareNetworkOutputWithContext(ctx context.Context) ShareNetworkOutput
- func (i *ShareNetwork) ToShareNetworkPtrOutput() ShareNetworkPtrOutput
- func (i *ShareNetwork) ToShareNetworkPtrOutputWithContext(ctx context.Context) ShareNetworkPtrOutput
- type ShareNetworkArgs
- type ShareNetworkArray
- type ShareNetworkArrayInput
- type ShareNetworkArrayOutput
- func (ShareNetworkArrayOutput) ElementType() reflect.Type
- func (o ShareNetworkArrayOutput) Index(i pulumi.IntInput) ShareNetworkOutput
- func (o ShareNetworkArrayOutput) ToShareNetworkArrayOutput() ShareNetworkArrayOutput
- func (o ShareNetworkArrayOutput) ToShareNetworkArrayOutputWithContext(ctx context.Context) ShareNetworkArrayOutput
- type ShareNetworkInput
- type ShareNetworkMap
- type ShareNetworkMapInput
- type ShareNetworkMapOutput
- func (ShareNetworkMapOutput) ElementType() reflect.Type
- func (o ShareNetworkMapOutput) MapIndex(k pulumi.StringInput) ShareNetworkOutput
- func (o ShareNetworkMapOutput) ToShareNetworkMapOutput() ShareNetworkMapOutput
- func (o ShareNetworkMapOutput) ToShareNetworkMapOutputWithContext(ctx context.Context) ShareNetworkMapOutput
- type ShareNetworkOutput
- func (ShareNetworkOutput) ElementType() reflect.Type
- func (o ShareNetworkOutput) ToShareNetworkOutput() ShareNetworkOutput
- func (o ShareNetworkOutput) ToShareNetworkOutputWithContext(ctx context.Context) ShareNetworkOutput
- func (o ShareNetworkOutput) ToShareNetworkPtrOutput() ShareNetworkPtrOutput
- func (o ShareNetworkOutput) ToShareNetworkPtrOutputWithContext(ctx context.Context) ShareNetworkPtrOutput
- type ShareNetworkPtrInput
- type ShareNetworkPtrOutput
- type ShareNetworkState
- type ShareOutput
- func (ShareOutput) ElementType() reflect.Type
- func (o ShareOutput) ToShareOutput() ShareOutput
- func (o ShareOutput) ToShareOutputWithContext(ctx context.Context) ShareOutput
- func (o ShareOutput) ToSharePtrOutput() SharePtrOutput
- func (o ShareOutput) ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput
- type SharePtrInput
- type SharePtrOutput
- type ShareState
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 {}
type GetShareExportLocationArgs ¶
type GetShareExportLocationArgs struct {}
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) ElementType() reflect.Type
func (GetShareExportLocationArray) ToGetShareExportLocationArrayOutput ¶
func (i GetShareExportLocationArray) ToGetShareExportLocationArrayOutput() GetShareExportLocationArrayOutput
func (GetShareExportLocationArray) ToGetShareExportLocationArrayOutputWithContext ¶
func (i GetShareExportLocationArray) ToGetShareExportLocationArrayOutputWithContext(ctx context.Context) GetShareExportLocationArrayOutput
type GetShareExportLocationArrayInput ¶
GetShareExportLocationArrayInput is an input type that accepts GetShareExportLocationArray and GetShareExportLocationArrayOutput values. You can construct a concrete instance of `GetShareExportLocationArrayInput` via:
GetShareExportLocationArray{ GetShareExportLocationArgs{...} }
type GetShareExportLocationArrayOutput ¶
func (GetShareExportLocationArrayOutput) ElementType ¶
func (GetShareExportLocationArrayOutput) ElementType() reflect.Type
func (GetShareExportLocationArrayOutput) Index ¶
func (o GetShareExportLocationArrayOutput) Index(i pulumi.IntInput) GetShareExportLocationOutput
func (GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutput ¶
func (o GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutput() GetShareExportLocationArrayOutput
func (GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutputWithContext ¶
func (o GetShareExportLocationArrayOutput) ToGetShareExportLocationArrayOutputWithContext(ctx context.Context) GetShareExportLocationArrayOutput
type GetShareExportLocationInput ¶
GetShareExportLocationInput is an input type that accepts GetShareExportLocationArgs and GetShareExportLocationOutput values. You can construct a concrete instance of `GetShareExportLocationInput` via:
GetShareExportLocationArgs{...}
type GetShareExportLocationOutput ¶
func (GetShareExportLocationOutput) ElementType ¶
func (GetShareExportLocationOutput) ElementType() reflect.Type
func (GetShareExportLocationOutput) Path ¶
func (o GetShareExportLocationOutput) Path() pulumi.StringOutput
func (GetShareExportLocationOutput) Preferred ¶
func (o GetShareExportLocationOutput) Preferred() pulumi.StringOutput
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"` 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"` ShareId string `pulumi:"shareId"` ShareProto string `pulumi:"shareProto"` 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 { string `pulumi:"description"` // since Manila API version 2.35. ExportLocationPath *string `pulumi:"exportLocationPath"` // length. IsPublic *bool `pulumi:"isPublic"` // strings. Metadata map[string]interface{} `pulumi:"metadata"` Name *string `pulumi:"name"` Region *string `pulumi:"region"` ShareNetworkId *string `pulumi:"shareNetworkId"` SnapshotId *string `pulumi:"snapshotId"` // `error`, `available`, `deleting`, `errorDeleting`, `manageStarting`, // `manageError`, `unmanageStarting`, `unmanageError`, `unmanaged`, // `extending`, `extendingError`, `shrinking`, `shrinkingError`, or // `shrinkingPossibleDataLossError`. Status *string `pulumi:"status"` }Description *
A collection of arguments for invoking getShare.
type LookupShareNetworkArgs ¶
type LookupShareNetworkArgs struct { string `pulumi:"description"` IpVersion *int `pulumi:"ipVersion"` Name *string `pulumi:"name"` // GRE, or flat. NetworkType *string `pulumi:"networkType"` NeutronNetId *string `pulumi:"neutronNetId"` NeutronSubnetId *string `pulumi:"neutronSubnetId"` // 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 share network. SecurityServiceId *string `pulumi:"securityServiceId"` SegmentationId *int `pulumi:"segmentationId"` }Description *
A collection of arguments for invoking getShareNetwork.
type LookupShareNetworkResult ¶
type LookupShareNetworkResult struct { string `pulumi:"cidr"` Description string `pulumi:"description"` Id string `pulumi:"id"` IpVersion int `pulumi:"ipVersion"` Name string `pulumi:"name"` NetworkType string `pulumi:"networkType"` NeutronNetId string `pulumi:"neutronNetId"` NeutronSubnetId string `pulumi:"neutronSubnetId"` ProjectId string `pulumi:"projectId"` Region string `pulumi:"region"` SecurityServiceId *string `pulumi:"securityServiceId"` // the share network. SecurityServiceIds []string `pulumi:"securityServiceIds"` SegmentationId int `pulumi:"segmentationId"` }Cidr
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 { string `pulumi:"availabilityZone"` Description string `pulumi:"description"` ExportLocationPath *string `pulumi:"exportLocationPath"` // server has more than one network interface, it can have multiple export // locations. ExportLocations []GetShareExportLocation `pulumi:"exportLocations"` Id string `pulumi:"id"` IsPublic bool `pulumi:"isPublic"` Metadata map[string]interface{} `pulumi:"metadata"` Name string `pulumi:"name"` ProjectId string `pulumi:"projectId"` Region string `pulumi:"region"` ShareNetworkId string `pulumi:"shareNetworkId"` ShareProto string `pulumi:"shareProto"` Size int `pulumi:"size"` SnapshotId string `pulumi:"snapshotId"` Status string `pulumi:"status"` }AvailabilityZone
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 (o SecurityServiceArrayOutput) Index(i pulumi.IntInput) SecurityServiceOutput
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 (o SecurityServiceMapOutput) MapIndex(k pulumi.StringInput) SecurityServiceOutput
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 { // explicitly and implicitly added. AllMetadata pulumi.MapOutput `pulumi:"allMetadata"` // new share. AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"` // Changing this updates the description of the existing share. Description pulumi.StringPtrOutput `pulumi:"description"` // has more than one network interface, it can have multiple export locations. ExportLocations ShareExportLocationArrayOutput `pulumi:"exportLocations"` HasReplicas pulumi.BoolOutput `pulumi:"hasReplicas"` Host pulumi.StringOutput `pulumi:"host"` // share public. Set to false to make it private. Default value is false. Changing this // updates the existing share. IsPublic pulumi.BoolPtrOutput `pulumi:"isPublic"` // strings. Metadata pulumi.MapOutput `pulumi:"metadata"` // of the existing share. Name pulumi.StringOutput `pulumi:"name"` ProjectId pulumi.StringOutput `pulumi:"projectId"` // A Shared File System client is needed to create a share. Changing this // creates a new share. Region pulumi.StringOutput `pulumi:"region"` ReplicationType pulumi.StringOutput `pulumi:"replicationType"` // 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"` // CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share. ShareProto pulumi.StringOutput `pulumi:"shareProto"` ShareServerId pulumi.StringOutput `pulumi:"shareServerId"` // share type is used. ShareType pulumi.StringOutput `pulumi:"shareType"` // than the allowed GB quota. Changing this resizes the existing share. Size pulumi.IntOutput `pulumi:"size"` // 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) 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.StringOutput `pulumi:"accessKey"` AccessLevel pulumi.StringOutput `pulumi:"accessLevel"` // address or a username verified by configured Security Service of the Share Network. AccessTo pulumi.StringOutput `pulumi:"accessTo"` // cert, or cephx. cephx support requires an OpenStack environment that supports // Shared Filesystem microversion 2.13 (Mitaka) or later. AccessType pulumi.StringOutput `pulumi:"accessType"` // A Shared File System client is needed to create a share access. Changing this // creates a new share access. Region pulumi.StringOutput `pulumi:"region"` ShareId pulumi.StringOutput `pulumi:"shareId"` }AccessKey
## 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 { pulumi.StringInput // address or a username verified by configured Security Service of the Share Network. AccessTo pulumi.StringInput // cert, or cephx. cephx support requires an OpenStack environment that supports // Shared Filesystem microversion 2.13 (Mitaka) or later. AccessType pulumi.StringInput // A Shared File System client is needed to create a share access. Changing this // creates a new share access. Region pulumi.StringPtrInput ShareId pulumi.StringInput }AccessLevel
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
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
func (ShareAccessArrayOutput) ElementType ¶ added in v2.14.1
func (ShareAccessArrayOutput) ElementType() reflect.Type
func (ShareAccessArrayOutput) Index ¶ added in v2.14.1
func (o ShareAccessArrayOutput) Index(i pulumi.IntInput) ShareAccessOutput
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 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
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
func (ShareAccessMapOutput) ElementType ¶ added in v2.14.1
func (ShareAccessMapOutput) ElementType() reflect.Type
func (ShareAccessMapOutput) MapIndex ¶ added in v2.14.1
func (o ShareAccessMapOutput) MapIndex(k pulumi.StringInput) ShareAccessOutput
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 {
}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 ShareAccessPtrOutput ¶ added in v2.14.1
type ShareAccessPtrOutput struct {
}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 { pulumi.StringPtrInput AccessLevel pulumi.StringPtrInput // address or a username verified by configured Security Service of the Share Network. AccessTo pulumi.StringPtrInput // cert, or cephx. cephx support requires an OpenStack environment that supports // Shared Filesystem microversion 2.13 (Mitaka) or later. AccessType pulumi.StringPtrInput // A Shared File System client is needed to create a share access. Changing this // creates a new share access. Region pulumi.StringPtrInput ShareId pulumi.StringPtrInput }AccessKey
func (ShareAccessState) ElementType ¶
func (ShareAccessState) ElementType() reflect.Type
type ShareArgs ¶
type ShareArgs struct { // new share. AvailabilityZone pulumi.StringPtrInput // Changing this updates the description of the existing share. Description pulumi.StringPtrInput // share public. Set to false to make it private. Default value is false. Changing this // updates the existing share. IsPublic pulumi.BoolPtrInput // strings. Metadata pulumi.MapInput // of the existing share. Name pulumi.StringPtrInput // A Shared File System client is needed to create a share. Changing this // creates a new share. Region pulumi.StringPtrInput // 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 // CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share. ShareProto pulumi.StringInput // share type is used. ShareType pulumi.StringPtrInput // than the allowed GB quota. Changing this resizes the existing share. Size pulumi.IntInput // a new share. SnapshotId pulumi.StringPtrInput }
The set of arguments for constructing a Share resource.
func (ShareArgs) ElementType ¶
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
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
func (ShareArrayOutput) ElementType ¶ added in v2.14.1
func (ShareArrayOutput) ElementType() reflect.Type
func (ShareArrayOutput) Index ¶ added in v2.14.1
func (o ShareArrayOutput) Index(i pulumi.IntInput) ShareOutput
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 {}
type ShareExportLocationArgs ¶
type ShareExportLocationArgs struct {}
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 ¶
ShareExportLocationArrayInput is an input type that accepts ShareExportLocationArray and ShareExportLocationArrayOutput values. You can construct a concrete instance of `ShareExportLocationArrayInput` via:
ShareExportLocationArray{ ShareExportLocationArgs{...} }
type ShareExportLocationArrayOutput ¶
func (ShareExportLocationArrayOutput) ElementType ¶
func (ShareExportLocationArrayOutput) ElementType() reflect.Type
func (ShareExportLocationArrayOutput) Index ¶
func (o ShareExportLocationArrayOutput) Index(i pulumi.IntInput) ShareExportLocationOutput
func (ShareExportLocationArrayOutput) ToShareExportLocationArrayOutput ¶
func (o ShareExportLocationArrayOutput) ToShareExportLocationArrayOutput() ShareExportLocationArrayOutput
func (ShareExportLocationArrayOutput) ToShareExportLocationArrayOutputWithContext ¶
func (o ShareExportLocationArrayOutput) ToShareExportLocationArrayOutputWithContext(ctx context.Context) ShareExportLocationArrayOutput
type ShareExportLocationInput ¶
ShareExportLocationInput is an input type that accepts ShareExportLocationArgs and ShareExportLocationOutput values. You can construct a concrete instance of `ShareExportLocationInput` via:
ShareExportLocationArgs{...}
type ShareExportLocationOutput ¶
func (ShareExportLocationOutput) ElementType ¶
func (ShareExportLocationOutput) ElementType() reflect.Type
func (ShareExportLocationOutput) Path ¶
func (o ShareExportLocationOutput) Path() pulumi.StringPtrOutput
func (ShareExportLocationOutput) Preferred ¶
func (o ShareExportLocationOutput) Preferred() pulumi.StringPtrOutput
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 ShareMap ¶ added in v2.14.1
type ShareMap map[string]ShareInput
func (ShareMap) ElementType ¶ added in v2.14.1
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
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
func (ShareMapOutput) ElementType ¶ added in v2.14.1
func (ShareMapOutput) ElementType() reflect.Type
func (ShareMapOutput) MapIndex ¶ added in v2.14.1
func (o ShareMapOutput) MapIndex(k pulumi.StringInput) ShareOutput
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.StringOutput `pulumi:"cidr"` // Changing this updates the description of the existing share network. Description pulumi.StringPtrOutput `pulumi:"description"` IpVersion pulumi.IntOutput `pulumi:"ipVersion"` // of the existing share network. Name pulumi.StringOutput `pulumi:"name"` NetworkType pulumi.StringOutput `pulumi:"networkType"` // a share network. Changing this updates the existing share network if it's not used by // shares. NeutronNetId pulumi.StringOutput `pulumi:"neutronNetId"` // updating a share network. Changing this updates the existing share network if it's // not used by shares. NeutronSubnetId pulumi.StringOutput `pulumi:"neutronSubnetId"` ProjectId pulumi.StringOutput `pulumi:"projectId"` // 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 share network. The security service must be specified by ID and not name. SecurityServiceIds pulumi.StringArrayOutput `pulumi:"securityServiceIds"` SegmentationId pulumi.IntOutput `pulumi:"segmentationId"` }Cidr
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 { // Changing this updates the description of the existing share network. Description pulumi.StringPtrInput // of the existing share network. Name pulumi.StringPtrInput // a share network. Changing this updates the existing share network if it's not used by // shares. NeutronNetId pulumi.StringInput // updating a share network. Changing this updates the existing share network if it's // not used by shares. NeutronSubnetId pulumi.StringInput // 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 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
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
func (ShareNetworkArrayOutput) ElementType ¶ added in v2.14.1
func (ShareNetworkArrayOutput) ElementType() reflect.Type
func (ShareNetworkArrayOutput) Index ¶ added in v2.14.1
func (o ShareNetworkArrayOutput) Index(i pulumi.IntInput) ShareNetworkOutput
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 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
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
func (ShareNetworkMapOutput) ElementType ¶ added in v2.14.1
func (ShareNetworkMapOutput) ElementType() reflect.Type
func (ShareNetworkMapOutput) MapIndex ¶ added in v2.14.1
func (o ShareNetworkMapOutput) MapIndex(k pulumi.StringInput) ShareNetworkOutput
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 {
}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 ShareNetworkPtrOutput ¶ added in v2.14.1
type ShareNetworkPtrOutput struct {
}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 { pulumi.StringPtrInput // Changing this updates the description of the existing share network. Description pulumi.StringPtrInput IpVersion pulumi.IntPtrInput // of the existing share network. Name pulumi.StringPtrInput NetworkType pulumi.StringPtrInput // a share network. Changing this updates the existing share network if it's not used by // shares. NeutronNetId pulumi.StringPtrInput // updating a share network. Changing this updates the existing share network if it's // not used by shares. NeutronSubnetId pulumi.StringPtrInput ProjectId pulumi.StringPtrInput // 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 share network. The security service must be specified by ID and not name. SecurityServiceIds pulumi.StringArrayInput SegmentationId pulumi.IntPtrInput }Cidr
func (ShareNetworkState) ElementType ¶
func (ShareNetworkState) ElementType() reflect.Type
type ShareOutput ¶ added in v2.10.0
type ShareOutput struct {
}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 SharePtrOutput ¶ added in v2.14.1
type SharePtrOutput struct {
}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 { // explicitly and implicitly added. AllMetadata pulumi.MapInput // new share. AvailabilityZone pulumi.StringPtrInput // Changing this updates the description of the existing share. Description pulumi.StringPtrInput // has more than one network interface, it can have multiple export locations. ExportLocations ShareExportLocationArrayInput HasReplicas pulumi.BoolPtrInput Host pulumi.StringPtrInput // share public. Set to false to make it private. Default value is false. Changing this // updates the existing share. IsPublic pulumi.BoolPtrInput // strings. Metadata pulumi.MapInput // of the existing share. Name pulumi.StringPtrInput ProjectId pulumi.StringPtrInput // A Shared File System client is needed to create a share. Changing this // creates a new share. Region pulumi.StringPtrInput ReplicationType pulumi.StringPtrInput // 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 // CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share. ShareProto pulumi.StringPtrInput ShareServerId pulumi.StringPtrInput // share type is used. ShareType pulumi.StringPtrInput // than the allowed GB quota. Changing this resizes the existing share. Size pulumi.IntPtrInput // a new share. SnapshotId pulumi.StringPtrInput }
func (ShareState) ElementType ¶
func (ShareState) ElementType() reflect.Type