powerscale.NfsAlias
Explore with Pulumi AI
This resource is used to manage the NFS Alias entity of PowerScale Array. We can Create, Update and Delete the NFS Aliases using this resource. We can also import an existing NFS Alias from PowerScale array.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
const example = new powerscale.NfsAlias("example", {
path: "/ifs",
zone: "System",
});
import pulumi
import pulumi_powerscale as powerscale
example = powerscale.NfsAlias("example",
path="/ifs",
zone="System")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := powerscale.NewNfsAlias(ctx, "example", &powerscale.NfsAliasArgs{
Path: pulumi.String("/ifs"),
Zone: pulumi.String("System"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerscale = Pulumi.Powerscale;
return await Deployment.RunAsync(() =>
{
var example = new Powerscale.NfsAlias("example", new()
{
Path = "/ifs",
Zone = "System",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.NfsAlias;
import com.pulumi.powerscale.NfsAliasArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new NfsAlias("example", NfsAliasArgs.builder()
.path("/ifs")
.zone("System")
.build());
}
}
resources:
example:
type: powerscale:NfsAlias
properties:
path: /ifs
# Optional attribute for creating and updating
zone: System
Create NfsAlias Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NfsAlias(name: string, args: NfsAliasArgs, opts?: CustomResourceOptions);
@overload
def NfsAlias(resource_name: str,
args: NfsAliasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NfsAlias(resource_name: str,
opts: Optional[ResourceOptions] = None,
path: Optional[str] = None,
name: Optional[str] = None,
zone: Optional[str] = None)
func NewNfsAlias(ctx *Context, name string, args NfsAliasArgs, opts ...ResourceOption) (*NfsAlias, error)
public NfsAlias(string name, NfsAliasArgs args, CustomResourceOptions? opts = null)
public NfsAlias(String name, NfsAliasArgs args)
public NfsAlias(String name, NfsAliasArgs args, CustomResourceOptions options)
type: powerscale:NfsAlias
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NfsAliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NfsAliasArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NfsAliasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NfsAliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NfsAliasArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var nfsAliasResource = new Powerscale.NfsAlias("nfsAliasResource", new()
{
Path = "string",
Name = "string",
Zone = "string",
});
example, err := powerscale.NewNfsAlias(ctx, "nfsAliasResource", &powerscale.NfsAliasArgs{
Path: pulumi.String("string"),
Name: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var nfsAliasResource = new NfsAlias("nfsAliasResource", NfsAliasArgs.builder()
.path("string")
.name("string")
.zone("string")
.build());
nfs_alias_resource = powerscale.NfsAlias("nfsAliasResource",
path="string",
name="string",
zone="string")
const nfsAliasResource = new powerscale.NfsAlias("nfsAliasResource", {
path: "string",
name: "string",
zone: "string",
});
type: powerscale:NfsAlias
properties:
name: string
path: string
zone: string
NfsAlias Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NfsAlias resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the NfsAlias resource produces the following output properties:
Look up Existing NfsAlias Resource
Get an existing NfsAlias resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NfsAliasState, opts?: CustomResourceOptions): NfsAlias
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
health: Optional[str] = None,
name: Optional[str] = None,
path: Optional[str] = None,
zone: Optional[str] = None) -> NfsAlias
func GetNfsAlias(ctx *Context, name string, id IDInput, state *NfsAliasState, opts ...ResourceOption) (*NfsAlias, error)
public static NfsAlias Get(string name, Input<string> id, NfsAliasState? state, CustomResourceOptions? opts = null)
public static NfsAlias get(String name, Output<String> id, NfsAliasState state, CustomResourceOptions options)
resources: _: type: powerscale:NfsAlias get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
Import
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
The command is
$ pulumi import powerscale:index/nfsAlias:NfsAlias example global_setting name_of_nfs_alias
Example:
$ pulumi import powerscale:index/nfsAlias:NfsAlias example global_setting "alias"
after running this command, populate parameters in the config file to start managing this resource.
Note: running “terraform show” after importing shows the current config/state of the resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- powerscale dell/terraform-provider-powerscale
- License
- Notes
- This Pulumi package is based on the
powerscale
Terraform Provider.