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

powerflex.FirmwareRepository

Explore with Pulumi AI

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.

*/

import firmware respository by it’s id

$ pulumi import powerflex:index/firmwareRepository:FirmwareRepository fr_import_by_id "<id>"
Copy

After Import, username and password is not needed for approving the unsigned file in case of CIFS share. For approving the file in case of import, please refer the below config(change the value as per your use-case):

resource “powerflex_firmware_repository” “fr_import_by_id” {

source_location = “https://10.10.10.1/artifactory/Denver/RCMs/SoftwareOnly/PowerFlex_Software_4.5.0.0_287_r1.zip”

approve = true

timeout = 45

}

  1. This will import the firmware_repository 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 FirmwareRepository Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new FirmwareRepository(name: string, args: FirmwareRepositoryArgs, opts?: CustomResourceOptions);
@overload
def FirmwareRepository(resource_name: str,
                       args: FirmwareRepositoryArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def FirmwareRepository(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       source_location: Optional[str] = None,
                       approve: Optional[bool] = None,
                       password: Optional[str] = None,
                       timeout: Optional[float] = None,
                       username: Optional[str] = None)
func NewFirmwareRepository(ctx *Context, name string, args FirmwareRepositoryArgs, opts ...ResourceOption) (*FirmwareRepository, error)
public FirmwareRepository(string name, FirmwareRepositoryArgs args, CustomResourceOptions? opts = null)
public FirmwareRepository(String name, FirmwareRepositoryArgs args)
public FirmwareRepository(String name, FirmwareRepositoryArgs args, CustomResourceOptions options)
type: powerflex:FirmwareRepository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FirmwareRepositoryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FirmwareRepositoryArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FirmwareRepositoryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FirmwareRepositoryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FirmwareRepositoryArgs
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 firmwareRepositoryResource = new Powerflex.FirmwareRepository("firmwareRepositoryResource", new()
{
    SourceLocation = "string",
    Approve = false,
    Password = "string",
    Timeout = 0,
    Username = "string",
});
Copy
example, err := powerflex.NewFirmwareRepository(ctx, "firmwareRepositoryResource", &powerflex.FirmwareRepositoryArgs{
SourceLocation: pulumi.String("string"),
Approve: pulumi.Bool(false),
Password: pulumi.String("string"),
Timeout: pulumi.Float64(0),
Username: pulumi.String("string"),
})
Copy
var firmwareRepositoryResource = new FirmwareRepository("firmwareRepositoryResource", FirmwareRepositoryArgs.builder()
    .sourceLocation("string")
    .approve(false)
    .password("string")
    .timeout(0)
    .username("string")
    .build());
Copy
firmware_repository_resource = powerflex.FirmwareRepository("firmwareRepositoryResource",
    source_location="string",
    approve=False,
    password="string",
    timeout=0,
    username="string")
Copy
const firmwareRepositoryResource = new powerflex.FirmwareRepository("firmwareRepositoryResource", {
    sourceLocation: "string",
    approve: false,
    password: "string",
    timeout: 0,
    username: "string",
});
Copy
type: powerflex:FirmwareRepository
properties:
    approve: false
    password: string
    sourceLocation: string
    timeout: 0
    username: string
Copy

FirmwareRepository 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 FirmwareRepository resource accepts the following input properties:

SourceLocation This property is required. string
Specfies the path from where it will download the compliance file. Cannot be updated.
Approve bool
Whether to approve the unsigned file or not.
Password string
Password is only used if specifying a CIFS share Cannot be updated.
Timeout double
Describes the time in minutes to timeout the job.
Username string
Username is only used if specifying a CIFS share Cannot be updated.
SourceLocation This property is required. string
Specfies the path from where it will download the compliance file. Cannot be updated.
Approve bool
Whether to approve the unsigned file or not.
Password string
Password is only used if specifying a CIFS share Cannot be updated.
Timeout float64
Describes the time in minutes to timeout the job.
Username string
Username is only used if specifying a CIFS share Cannot be updated.
sourceLocation This property is required. String
Specfies the path from where it will download the compliance file. Cannot be updated.
approve Boolean
Whether to approve the unsigned file or not.
password String
Password is only used if specifying a CIFS share Cannot be updated.
timeout Double
Describes the time in minutes to timeout the job.
username String
Username is only used if specifying a CIFS share Cannot be updated.
sourceLocation This property is required. string
Specfies the path from where it will download the compliance file. Cannot be updated.
approve boolean
Whether to approve the unsigned file or not.
password string
Password is only used if specifying a CIFS share Cannot be updated.
timeout number
Describes the time in minutes to timeout the job.
username string
Username is only used if specifying a CIFS share Cannot be updated.
source_location This property is required. str
Specfies the path from where it will download the compliance file. Cannot be updated.
approve bool
Whether to approve the unsigned file or not.
password str
Password is only used if specifying a CIFS share Cannot be updated.
timeout float
Describes the time in minutes to timeout the job.
username str
Username is only used if specifying a CIFS share Cannot be updated.
sourceLocation This property is required. String
Specfies the path from where it will download the compliance file. Cannot be updated.
approve Boolean
Whether to approve the unsigned file or not.
password String
Password is only used if specifying a CIFS share Cannot be updated.
timeout Number
Describes the time in minutes to timeout the job.
username String
Username is only used if specifying a CIFS share Cannot be updated.

Outputs

All input properties are implicitly available as output properties. Additionally, the FirmwareRepository resource produces the following output properties:

DefaultCatalog bool
Whether this Firmware Repository is set to default or not.
DiskLocation string
Disk location of the Firmware Repository
FileName string
File Name
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the Firmware Repository
DefaultCatalog bool
Whether this Firmware Repository is set to default or not.
DiskLocation string
Disk location of the Firmware Repository
FileName string
File Name
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the Firmware Repository
defaultCatalog Boolean
Whether this Firmware Repository is set to default or not.
diskLocation String
Disk location of the Firmware Repository
fileName String
File Name
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the Firmware Repository
defaultCatalog boolean
Whether this Firmware Repository is set to default or not.
diskLocation string
Disk location of the Firmware Repository
fileName string
File Name
id string
The provider-assigned unique ID for this managed resource.
name string
Name of the Firmware Repository
default_catalog bool
Whether this Firmware Repository is set to default or not.
disk_location str
Disk location of the Firmware Repository
file_name str
File Name
id str
The provider-assigned unique ID for this managed resource.
name str
Name of the Firmware Repository
defaultCatalog Boolean
Whether this Firmware Repository is set to default or not.
diskLocation String
Disk location of the Firmware Repository
fileName String
File Name
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the Firmware Repository

Look up Existing FirmwareRepository Resource

Get an existing FirmwareRepository 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?: FirmwareRepositoryState, opts?: CustomResourceOptions): FirmwareRepository
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        approve: Optional[bool] = None,
        default_catalog: Optional[bool] = None,
        disk_location: Optional[str] = None,
        file_name: Optional[str] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        source_location: Optional[str] = None,
        timeout: Optional[float] = None,
        username: Optional[str] = None) -> FirmwareRepository
func GetFirmwareRepository(ctx *Context, name string, id IDInput, state *FirmwareRepositoryState, opts ...ResourceOption) (*FirmwareRepository, error)
public static FirmwareRepository Get(string name, Input<string> id, FirmwareRepositoryState? state, CustomResourceOptions? opts = null)
public static FirmwareRepository get(String name, Output<String> id, FirmwareRepositoryState state, CustomResourceOptions options)
resources:  _:    type: powerflex:FirmwareRepository    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Approve bool
Whether to approve the unsigned file or not.
DefaultCatalog bool
Whether this Firmware Repository is set to default or not.
DiskLocation string
Disk location of the Firmware Repository
FileName string
File Name
Name string
Name of the Firmware Repository
Password string
Password is only used if specifying a CIFS share Cannot be updated.
SourceLocation string
Specfies the path from where it will download the compliance file. Cannot be updated.
Timeout double
Describes the time in minutes to timeout the job.
Username string
Username is only used if specifying a CIFS share Cannot be updated.
Approve bool
Whether to approve the unsigned file or not.
DefaultCatalog bool
Whether this Firmware Repository is set to default or not.
DiskLocation string
Disk location of the Firmware Repository
FileName string
File Name
Name string
Name of the Firmware Repository
Password string
Password is only used if specifying a CIFS share Cannot be updated.
SourceLocation string
Specfies the path from where it will download the compliance file. Cannot be updated.
Timeout float64
Describes the time in minutes to timeout the job.
Username string
Username is only used if specifying a CIFS share Cannot be updated.
approve Boolean
Whether to approve the unsigned file or not.
defaultCatalog Boolean
Whether this Firmware Repository is set to default or not.
diskLocation String
Disk location of the Firmware Repository
fileName String
File Name
name String
Name of the Firmware Repository
password String
Password is only used if specifying a CIFS share Cannot be updated.
sourceLocation String
Specfies the path from where it will download the compliance file. Cannot be updated.
timeout Double
Describes the time in minutes to timeout the job.
username String
Username is only used if specifying a CIFS share Cannot be updated.
approve boolean
Whether to approve the unsigned file or not.
defaultCatalog boolean
Whether this Firmware Repository is set to default or not.
diskLocation string
Disk location of the Firmware Repository
fileName string
File Name
name string
Name of the Firmware Repository
password string
Password is only used if specifying a CIFS share Cannot be updated.
sourceLocation string
Specfies the path from where it will download the compliance file. Cannot be updated.
timeout number
Describes the time in minutes to timeout the job.
username string
Username is only used if specifying a CIFS share Cannot be updated.
approve bool
Whether to approve the unsigned file or not.
default_catalog bool
Whether this Firmware Repository is set to default or not.
disk_location str
Disk location of the Firmware Repository
file_name str
File Name
name str
Name of the Firmware Repository
password str
Password is only used if specifying a CIFS share Cannot be updated.
source_location str
Specfies the path from where it will download the compliance file. Cannot be updated.
timeout float
Describes the time in minutes to timeout the job.
username str
Username is only used if specifying a CIFS share Cannot be updated.
approve Boolean
Whether to approve the unsigned file or not.
defaultCatalog Boolean
Whether this Firmware Repository is set to default or not.
diskLocation String
Disk location of the Firmware Repository
fileName String
File Name
name String
Name of the Firmware Repository
password String
Password is only used if specifying a CIFS share Cannot be updated.
sourceLocation String
Specfies the path from where it will download the compliance file. Cannot be updated.
timeout Number
Describes the time in minutes to timeout the job.
username String
Username is only used if specifying a CIFS share Cannot be updated.

Package Details

Repository
powerflex dell/terraform-provider-powerflex
License
Notes
This Pulumi package is based on the powerflex Terraform Provider.