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>"
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
}
This will import the firmware_repository 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 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 string
- The unique name of the resource.
- args FirmwareRepositoryArgs
- 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 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 string
- The unique name of the resource.
- args FirmwareRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirmwareRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var firmwareRepositoryResource = new FirmwareRepository("firmwareRepositoryResource", FirmwareRepositoryArgs.builder()
.sourceLocation("string")
.approve(false)
.password("string")
.timeout(0)
.username("string")
.build());
firmware_repository_resource = powerflex.FirmwareRepository("firmwareRepositoryResource",
source_location="string",
approve=False,
password="string",
timeout=0,
username="string")
const firmwareRepositoryResource = new powerflex.FirmwareRepository("firmwareRepositoryResource", {
sourceLocation: "string",
approve: false,
password: "string",
timeout: 0,
username: "string",
});
type: powerflex:FirmwareRepository
properties:
approve: false
password: string
sourceLocation: string
timeout: 0
username: string
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:
- Source
Location 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.
- Source
Location 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.
- source
Location 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.
- source
Location 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 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.
- source
Location 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:
- Default
Catalog bool - Whether this Firmware Repository is set to default or not.
- Disk
Location string - Disk location of the Firmware Repository
- File
Name 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 string - Disk location of the Firmware Repository
- File
Name string - File Name
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Firmware Repository
- default
Catalog Boolean - Whether this Firmware Repository is set to default or not.
- disk
Location String - Disk location of the Firmware Repository
- file
Name String - File Name
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the Firmware Repository
- default
Catalog boolean - Whether this Firmware Repository is set to default or not.
- disk
Location string - Disk location of the Firmware Repository
- file
Name 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
- default
Catalog Boolean - Whether this Firmware Repository is set to default or not.
- disk
Location String - Disk location of the Firmware Repository
- file
Name 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
- 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.
- 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 string - Disk location of the Firmware Repository
- File
Name string - File Name
- Name string
- Name of the Firmware Repository
- Password string
- Password is only used if specifying a CIFS share Cannot be updated.
- Source
Location 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.
- Default
Catalog bool - Whether this Firmware Repository is set to default or not.
- Disk
Location string - Disk location of the Firmware Repository
- File
Name string - File Name
- Name string
- Name of the Firmware Repository
- Password string
- Password is only used if specifying a CIFS share Cannot be updated.
- Source
Location 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.
- default
Catalog Boolean - Whether this Firmware Repository is set to default or not.
- disk
Location String - Disk location of the Firmware Repository
- file
Name String - File Name
- name String
- Name of the Firmware Repository
- password String
- Password is only used if specifying a CIFS share Cannot be updated.
- source
Location 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.
- default
Catalog boolean - Whether this Firmware Repository is set to default or not.
- disk
Location string - Disk location of the Firmware Repository
- file
Name string - File Name
- name string
- Name of the Firmware Repository
- password string
- Password is only used if specifying a CIFS share Cannot be updated.
- source
Location 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.
- default
Catalog Boolean - Whether this Firmware Repository is set to default or not.
- disk
Location String - Disk location of the Firmware Repository
- file
Name String - File Name
- name String
- Name of the Firmware Repository
- password String
- Password is only used if specifying a CIFS share Cannot be updated.
- source
Location 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.