powerflex.SdcVolumesMapping
Explore with Pulumi AI
Import
Below are the steps to import sdc along with mapped volumes :
Step 1 - To import a sdc , we need the id of that sdc
Step 2 - To check the id of the sdc we can make use of sdc datasource . Please refer sdc_datasource.tf for more info.
Step 3 - create a tf file with empty resource block . Refer the example below.
Example :
resource “powerflex_sdc_volumes_mapping” “resource_block_name” {
}
$ pulumi import powerflex:index/sdcVolumesMapping:SdcVolumesMapping Step 4 - execute the command: "powerflex_sdc_volumes_mapping.resource_block_name" "id_of_the_sdc" (resource_block_name must be taken from step 3 and id must be taken from step 2)
Step 5 - After successful execution of the command , check the state file.
/*
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 using SDC id
$ pulumi import powerflex:index/sdcVolumesMapping:SdcVolumesMapping sdc_mapping_import_by_id "<id>"
This will import the SDC 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 SdcVolumesMapping Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SdcVolumesMapping(name: string, args?: SdcVolumesMappingArgs, opts?: CustomResourceOptions);
@overload
def SdcVolumesMapping(resource_name: str,
args: Optional[SdcVolumesMappingArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SdcVolumesMapping(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
sdc_volumes_mapping_id: Optional[str] = None,
volume_lists: Optional[Sequence[SdcVolumesMappingVolumeListArgs]] = None)
func NewSdcVolumesMapping(ctx *Context, name string, args *SdcVolumesMappingArgs, opts ...ResourceOption) (*SdcVolumesMapping, error)
public SdcVolumesMapping(string name, SdcVolumesMappingArgs? args = null, CustomResourceOptions? opts = null)
public SdcVolumesMapping(String name, SdcVolumesMappingArgs args)
public SdcVolumesMapping(String name, SdcVolumesMappingArgs args, CustomResourceOptions options)
type: powerflex:SdcVolumesMapping
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 SdcVolumesMappingArgs
- 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 SdcVolumesMappingArgs
- 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 SdcVolumesMappingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SdcVolumesMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SdcVolumesMappingArgs
- 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 sdcVolumesMappingResource = new Powerflex.SdcVolumesMapping("sdcVolumesMappingResource", new()
{
Name = "string",
SdcVolumesMappingId = "string",
VolumeLists = new[]
{
new Powerflex.Inputs.SdcVolumesMappingVolumeListArgs
{
AccessMode = "string",
LimitBwInMbps = 0,
LimitIops = 0,
VolumeId = "string",
VolumeName = "string",
},
},
});
example, err := powerflex.NewSdcVolumesMapping(ctx, "sdcVolumesMappingResource", &powerflex.SdcVolumesMappingArgs{
Name: pulumi.String("string"),
SdcVolumesMappingId: pulumi.String("string"),
VolumeLists: powerflex.SdcVolumesMappingVolumeListArray{
&powerflex.SdcVolumesMappingVolumeListArgs{
AccessMode: pulumi.String("string"),
LimitBwInMbps: pulumi.Float64(0),
LimitIops: pulumi.Float64(0),
VolumeId: pulumi.String("string"),
VolumeName: pulumi.String("string"),
},
},
})
var sdcVolumesMappingResource = new SdcVolumesMapping("sdcVolumesMappingResource", SdcVolumesMappingArgs.builder()
.name("string")
.sdcVolumesMappingId("string")
.volumeLists(SdcVolumesMappingVolumeListArgs.builder()
.accessMode("string")
.limitBwInMbps(0)
.limitIops(0)
.volumeId("string")
.volumeName("string")
.build())
.build());
sdc_volumes_mapping_resource = powerflex.SdcVolumesMapping("sdcVolumesMappingResource",
name="string",
sdc_volumes_mapping_id="string",
volume_lists=[{
"access_mode": "string",
"limit_bw_in_mbps": 0,
"limit_iops": 0,
"volume_id": "string",
"volume_name": "string",
}])
const sdcVolumesMappingResource = new powerflex.SdcVolumesMapping("sdcVolumesMappingResource", {
name: "string",
sdcVolumesMappingId: "string",
volumeLists: [{
accessMode: "string",
limitBwInMbps: 0,
limitIops: 0,
volumeId: "string",
volumeName: "string",
}],
});
type: powerflex:SdcVolumesMapping
properties:
name: string
sdcVolumesMappingId: string
volumeLists:
- accessMode: string
limitBwInMbps: 0
limitIops: 0
volumeId: string
volumeName: string
SdcVolumesMapping 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 SdcVolumesMapping resource accepts the following input properties:
- Name string
- The name of the SDC.
- Sdc
Volumes stringMapping Id - The ID of the SDC.
- Volume
Lists List<SdcVolumes Mapping Volume List> - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- Name string
- The name of the SDC.
- Sdc
Volumes stringMapping Id - The ID of the SDC.
- Volume
Lists []SdcVolumes Mapping Volume List Args - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name String
- The name of the SDC.
- sdc
Volumes StringMapping Id - The ID of the SDC.
- volume
Lists List<SdcVolumes Mapping Volume List> - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name string
- The name of the SDC.
- sdc
Volumes stringMapping Id - The ID of the SDC.
- volume
Lists SdcVolumes Mapping Volume List[] - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name str
- The name of the SDC.
- sdc_
volumes_ strmapping_ id - The ID of the SDC.
- volume_
lists Sequence[SdcVolumes Mapping Volume List Args] - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name String
- The name of the SDC.
- sdc
Volumes StringMapping Id - The ID of the SDC.
- volume
Lists List<Property Map> - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
Outputs
All input properties are implicitly available as output properties. Additionally, the SdcVolumesMapping resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SdcVolumesMapping Resource
Get an existing SdcVolumesMapping 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?: SdcVolumesMappingState, opts?: CustomResourceOptions): SdcVolumesMapping
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
sdc_volumes_mapping_id: Optional[str] = None,
volume_lists: Optional[Sequence[SdcVolumesMappingVolumeListArgs]] = None) -> SdcVolumesMapping
func GetSdcVolumesMapping(ctx *Context, name string, id IDInput, state *SdcVolumesMappingState, opts ...ResourceOption) (*SdcVolumesMapping, error)
public static SdcVolumesMapping Get(string name, Input<string> id, SdcVolumesMappingState? state, CustomResourceOptions? opts = null)
public static SdcVolumesMapping get(String name, Output<String> id, SdcVolumesMappingState state, CustomResourceOptions options)
resources: _: type: powerflex:SdcVolumesMapping 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.
- Name string
- The name of the SDC.
- Sdc
Volumes stringMapping Id - The ID of the SDC.
- Volume
Lists List<SdcVolumes Mapping Volume List> - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- Name string
- The name of the SDC.
- Sdc
Volumes stringMapping Id - The ID of the SDC.
- Volume
Lists []SdcVolumes Mapping Volume List Args - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name String
- The name of the SDC.
- sdc
Volumes StringMapping Id - The ID of the SDC.
- volume
Lists List<SdcVolumes Mapping Volume List> - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name string
- The name of the SDC.
- sdc
Volumes stringMapping Id - The ID of the SDC.
- volume
Lists SdcVolumes Mapping Volume List[] - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name str
- The name of the SDC.
- sdc_
volumes_ strmapping_ id - The ID of the SDC.
- volume_
lists Sequence[SdcVolumes Mapping Volume List Args] - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
- name String
- The name of the SDC.
- sdc
Volumes StringMapping Id - The ID of the SDC.
- volume
Lists List<Property Map> - List of volumes mapped to SDC. At least one of
volume_id
andvolume_name
is required.
Supporting Types
SdcVolumesMappingVolumeList, SdcVolumesMappingVolumeListArgs
- Access
Mode string - The Access Mode of the SDC. Valid values are
ReadOnly
,ReadWrite
andNoAccess
. Default value isReadOnly
. - Limit
Bw doubleIn Mbps - Bandwidth limit in MBPS.
0
represents unlimited bandwith. Default value is0
. - Limit
Iops double - IOPS limit. Valid values are 0 or integers greater than 10.
0
represents unlimited IOPS. Default value is0
. - Volume
Id string - The ID of the volume.
- Volume
Name string - The name of the volume.
- Access
Mode string - The Access Mode of the SDC. Valid values are
ReadOnly
,ReadWrite
andNoAccess
. Default value isReadOnly
. - Limit
Bw float64In Mbps - Bandwidth limit in MBPS.
0
represents unlimited bandwith. Default value is0
. - Limit
Iops float64 - IOPS limit. Valid values are 0 or integers greater than 10.
0
represents unlimited IOPS. Default value is0
. - Volume
Id string - The ID of the volume.
- Volume
Name string - The name of the volume.
- access
Mode String - The Access Mode of the SDC. Valid values are
ReadOnly
,ReadWrite
andNoAccess
. Default value isReadOnly
. - limit
Bw DoubleIn Mbps - Bandwidth limit in MBPS.
0
represents unlimited bandwith. Default value is0
. - limit
Iops Double - IOPS limit. Valid values are 0 or integers greater than 10.
0
represents unlimited IOPS. Default value is0
. - volume
Id String - The ID of the volume.
- volume
Name String - The name of the volume.
- access
Mode string - The Access Mode of the SDC. Valid values are
ReadOnly
,ReadWrite
andNoAccess
. Default value isReadOnly
. - limit
Bw numberIn Mbps - Bandwidth limit in MBPS.
0
represents unlimited bandwith. Default value is0
. - limit
Iops number - IOPS limit. Valid values are 0 or integers greater than 10.
0
represents unlimited IOPS. Default value is0
. - volume
Id string - The ID of the volume.
- volume
Name string - The name of the volume.
- access_
mode str - The Access Mode of the SDC. Valid values are
ReadOnly
,ReadWrite
andNoAccess
. Default value isReadOnly
. - limit_
bw_ floatin_ mbps - Bandwidth limit in MBPS.
0
represents unlimited bandwith. Default value is0
. - limit_
iops float - IOPS limit. Valid values are 0 or integers greater than 10.
0
represents unlimited IOPS. Default value is0
. - volume_
id str - The ID of the volume.
- volume_
name str - The name of the volume.
- access
Mode String - The Access Mode of the SDC. Valid values are
ReadOnly
,ReadWrite
andNoAccess
. Default value isReadOnly
. - limit
Bw NumberIn Mbps - Bandwidth limit in MBPS.
0
represents unlimited bandwith. Default value is0
. - limit
Iops Number - IOPS limit. Valid values are 0 or integers greater than 10.
0
represents unlimited IOPS. Default value is0
. - volume
Id String - The ID of the volume.
- volume
Name String - The name of the volume.
Package Details
- Repository
- powerflex dell/terraform-provider-powerflex
- License
- Notes
- This Pulumi package is based on the
powerflex
Terraform Provider.