powerflex.NvmeHost
Explore with Pulumi AI
Import
/*
Copyright (c) 2023-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.
*/
import NVMe host by its id
$ pulumi import powerflex:index/nvmeHost:NvmeHost nvme_host_import_by_id "<id>"
This will import the NVMe host instance with specified ID into your Terraform state.
After successful import, you can run terraform state list to ensure the resource has been imported successfully.
Now, you can fill in the resource block with the appropriate arguments and settings that match the imported resource’s real-world configuration.
Execute pulumi preview to see if your configuration and the imported resource are in sync. Make adjustments if needed.
Finally, execute pulumi up to bring the resource fully under Terraform’s management.
Now, the resource which was not part of terraform became part of Terraform managed infrastructure.
Create NvmeHost Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NvmeHost(name: string, args: NvmeHostArgs, opts?: CustomResourceOptions);
@overload
def NvmeHost(resource_name: str,
args: NvmeHostArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NvmeHost(resource_name: str,
opts: Optional[ResourceOptions] = None,
nqn: Optional[str] = None,
max_num_paths: Optional[float] = None,
max_num_sys_ports: Optional[float] = None,
name: Optional[str] = None)
func NewNvmeHost(ctx *Context, name string, args NvmeHostArgs, opts ...ResourceOption) (*NvmeHost, error)
public NvmeHost(string name, NvmeHostArgs args, CustomResourceOptions? opts = null)
public NvmeHost(String name, NvmeHostArgs args)
public NvmeHost(String name, NvmeHostArgs args, CustomResourceOptions options)
type: powerflex:NvmeHost
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 NvmeHostArgs
- 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 NvmeHostArgs
- 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 NvmeHostArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NvmeHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NvmeHostArgs
- 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 nvmeHostResource = new Powerflex.NvmeHost("nvmeHostResource", new()
{
Nqn = "string",
MaxNumPaths = 0,
MaxNumSysPorts = 0,
Name = "string",
});
example, err := powerflex.NewNvmeHost(ctx, "nvmeHostResource", &powerflex.NvmeHostArgs{
Nqn: pulumi.String("string"),
MaxNumPaths: pulumi.Float64(0),
MaxNumSysPorts: pulumi.Float64(0),
Name: pulumi.String("string"),
})
var nvmeHostResource = new NvmeHost("nvmeHostResource", NvmeHostArgs.builder()
.nqn("string")
.maxNumPaths(0)
.maxNumSysPorts(0)
.name("string")
.build());
nvme_host_resource = powerflex.NvmeHost("nvmeHostResource",
nqn="string",
max_num_paths=0,
max_num_sys_ports=0,
name="string")
const nvmeHostResource = new powerflex.NvmeHost("nvmeHostResource", {
nqn: "string",
maxNumPaths: 0,
maxNumSysPorts: 0,
name: "string",
});
type: powerflex:NvmeHost
properties:
maxNumPaths: 0
maxNumSysPorts: 0
name: string
nqn: string
NvmeHost 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 NvmeHost resource accepts the following input properties:
- Nqn string
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- Max
Num doublePaths - Number of Paths Per Volume.
- Max
Num doubleSys Ports - Number of System Ports per Protection Domain.
- Name string
- Name of the NVMe host
- Nqn string
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- Max
Num float64Paths - Number of Paths Per Volume.
- Max
Num float64Sys Ports - Number of System Ports per Protection Domain.
- Name string
- Name of the NVMe host
- nqn String
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- max
Num DoublePaths - Number of Paths Per Volume.
- max
Num DoubleSys Ports - Number of System Ports per Protection Domain.
- name String
- Name of the NVMe host
- nqn string
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- max
Num numberPaths - Number of Paths Per Volume.
- max
Num numberSys Ports - Number of System Ports per Protection Domain.
- name string
- Name of the NVMe host
- nqn str
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- max_
num_ floatpaths - Number of Paths Per Volume.
- max_
num_ floatsys_ ports - Number of System Ports per Protection Domain.
- name str
- Name of the NVMe host
- nqn String
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- max
Num NumberPaths - Number of Paths Per Volume.
- max
Num NumberSys Ports - Number of System Ports per Protection Domain.
- name String
- Name of the NVMe host
Outputs
All input properties are implicitly available as output properties. Additionally, the NvmeHost resource produces the following output properties:
Look up Existing NvmeHost Resource
Get an existing NvmeHost 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?: NvmeHostState, opts?: CustomResourceOptions): NvmeHost
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
max_num_paths: Optional[float] = None,
max_num_sys_ports: Optional[float] = None,
name: Optional[str] = None,
nqn: Optional[str] = None,
system_id: Optional[str] = None) -> NvmeHost
func GetNvmeHost(ctx *Context, name string, id IDInput, state *NvmeHostState, opts ...ResourceOption) (*NvmeHost, error)
public static NvmeHost Get(string name, Input<string> id, NvmeHostState? state, CustomResourceOptions? opts = null)
public static NvmeHost get(String name, Output<String> id, NvmeHostState state, CustomResourceOptions options)
resources: _: type: powerflex:NvmeHost 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.
- Max
Num doublePaths - Number of Paths Per Volume.
- Max
Num doubleSys Ports - Number of System Ports per Protection Domain.
- Name string
- Name of the NVMe host
- Nqn string
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- System
Id string - The ID of the system.
- Max
Num float64Paths - Number of Paths Per Volume.
- Max
Num float64Sys Ports - Number of System Ports per Protection Domain.
- Name string
- Name of the NVMe host
- Nqn string
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- System
Id string - The ID of the system.
- max
Num DoublePaths - Number of Paths Per Volume.
- max
Num DoubleSys Ports - Number of System Ports per Protection Domain.
- name String
- Name of the NVMe host
- nqn String
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- system
Id String - The ID of the system.
- max
Num numberPaths - Number of Paths Per Volume.
- max
Num numberSys Ports - Number of System Ports per Protection Domain.
- name string
- Name of the NVMe host
- nqn string
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- system
Id string - The ID of the system.
- max_
num_ floatpaths - Number of Paths Per Volume.
- max_
num_ floatsys_ ports - Number of System Ports per Protection Domain.
- name str
- Name of the NVMe host
- nqn str
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- system_
id str - The ID of the system.
- max
Num NumberPaths - Number of Paths Per Volume.
- max
Num NumberSys Ports - Number of System Ports per Protection Domain.
- name String
- Name of the NVMe host
- nqn String
- NQN of the NVMe host. This attribute must be set during creation and cannot be modified afterwards.
- system
Id String - The ID of the system.
Package Details
- Repository
- powerflex dell/terraform-provider-powerflex
- License
- Notes
- This Pulumi package is based on the
powerflex
Terraform Provider.