1. Packages
  2. Powerflex Provider
  3. API Docs
  4. SdcVolumesMapping
powerflex 1.8.0 published on Monday, Apr 14, 2025 by dell

powerflex.SdcVolumesMapping

Explore with Pulumi AI

powerflex logo
powerflex 1.8.0 published on Monday, Apr 14, 2025 by dell

    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>"
    
    1. This will import the SDC instance with specified ID into your Terraform state.

    2. After successful import, you can run terraform state list to ensure the resource has been imported successfully.

    3. Now, you can fill in the resource block with the appropriate arguments and settings that match the imported resource’s real-world configuration.

    4. Execute pulumi preview to see if your configuration and the imported resource are in sync. Make adjustments if needed.

    5. Finally, execute pulumi up to bring the resource fully under Terraform’s management.

    6. 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.
    SdcVolumesMappingId string
    The ID of the SDC.
    VolumeLists List<SdcVolumesMappingVolumeList>
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    Name string
    The name of the SDC.
    SdcVolumesMappingId string
    The ID of the SDC.
    VolumeLists []SdcVolumesMappingVolumeListArgs
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name String
    The name of the SDC.
    sdcVolumesMappingId String
    The ID of the SDC.
    volumeLists List<SdcVolumesMappingVolumeList>
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name string
    The name of the SDC.
    sdcVolumesMappingId string
    The ID of the SDC.
    volumeLists SdcVolumesMappingVolumeList[]
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name str
    The name of the SDC.
    sdc_volumes_mapping_id str
    The ID of the SDC.
    volume_lists Sequence[SdcVolumesMappingVolumeListArgs]
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name String
    The name of the SDC.
    sdcVolumesMappingId String
    The ID of the SDC.
    volumeLists List<Property Map>
    List of volumes mapped to SDC. At least one of volume_id and volume_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.
    The following state arguments are supported:
    Name string
    The name of the SDC.
    SdcVolumesMappingId string
    The ID of the SDC.
    VolumeLists List<SdcVolumesMappingVolumeList>
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    Name string
    The name of the SDC.
    SdcVolumesMappingId string
    The ID of the SDC.
    VolumeLists []SdcVolumesMappingVolumeListArgs
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name String
    The name of the SDC.
    sdcVolumesMappingId String
    The ID of the SDC.
    volumeLists List<SdcVolumesMappingVolumeList>
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name string
    The name of the SDC.
    sdcVolumesMappingId string
    The ID of the SDC.
    volumeLists SdcVolumesMappingVolumeList[]
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name str
    The name of the SDC.
    sdc_volumes_mapping_id str
    The ID of the SDC.
    volume_lists Sequence[SdcVolumesMappingVolumeListArgs]
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.
    name String
    The name of the SDC.
    sdcVolumesMappingId String
    The ID of the SDC.
    volumeLists List<Property Map>
    List of volumes mapped to SDC. At least one of volume_id and volume_name is required.

    Supporting Types

    SdcVolumesMappingVolumeList, SdcVolumesMappingVolumeListArgs

    AccessMode string
    The Access Mode of the SDC. Valid values are ReadOnly, ReadWrite and NoAccess. Default value is ReadOnly.
    LimitBwInMbps double
    Bandwidth limit in MBPS. 0 represents unlimited bandwith. Default value is 0.
    LimitIops double
    IOPS limit. Valid values are 0 or integers greater than 10. 0 represents unlimited IOPS. Default value is 0.
    VolumeId string
    The ID of the volume.
    VolumeName string
    The name of the volume.
    AccessMode string
    The Access Mode of the SDC. Valid values are ReadOnly, ReadWrite and NoAccess. Default value is ReadOnly.
    LimitBwInMbps float64
    Bandwidth limit in MBPS. 0 represents unlimited bandwith. Default value is 0.
    LimitIops float64
    IOPS limit. Valid values are 0 or integers greater than 10. 0 represents unlimited IOPS. Default value is 0.
    VolumeId string
    The ID of the volume.
    VolumeName string
    The name of the volume.
    accessMode String
    The Access Mode of the SDC. Valid values are ReadOnly, ReadWrite and NoAccess. Default value is ReadOnly.
    limitBwInMbps Double
    Bandwidth limit in MBPS. 0 represents unlimited bandwith. Default value is 0.
    limitIops Double
    IOPS limit. Valid values are 0 or integers greater than 10. 0 represents unlimited IOPS. Default value is 0.
    volumeId String
    The ID of the volume.
    volumeName String
    The name of the volume.
    accessMode string
    The Access Mode of the SDC. Valid values are ReadOnly, ReadWrite and NoAccess. Default value is ReadOnly.
    limitBwInMbps number
    Bandwidth limit in MBPS. 0 represents unlimited bandwith. Default value is 0.
    limitIops number
    IOPS limit. Valid values are 0 or integers greater than 10. 0 represents unlimited IOPS. Default value is 0.
    volumeId string
    The ID of the volume.
    volumeName string
    The name of the volume.
    access_mode str
    The Access Mode of the SDC. Valid values are ReadOnly, ReadWrite and NoAccess. Default value is ReadOnly.
    limit_bw_in_mbps float
    Bandwidth limit in MBPS. 0 represents unlimited bandwith. Default value is 0.
    limit_iops float
    IOPS limit. Valid values are 0 or integers greater than 10. 0 represents unlimited IOPS. Default value is 0.
    volume_id str
    The ID of the volume.
    volume_name str
    The name of the volume.
    accessMode String
    The Access Mode of the SDC. Valid values are ReadOnly, ReadWrite and NoAccess. Default value is ReadOnly.
    limitBwInMbps Number
    Bandwidth limit in MBPS. 0 represents unlimited bandwith. Default value is 0.
    limitIops Number
    IOPS limit. Valid values are 0 or integers greater than 10. 0 represents unlimited IOPS. Default value is 0.
    volumeId String
    The ID of the volume.
    volumeName 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.
    powerflex logo
    powerflex 1.8.0 published on Monday, Apr 14, 2025 by dell