powerflex.FaultSet
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 fault set by it’s id
$ pulumi import powerflex:index/faultSet:FaultSet fs_import_by_id "<id>"
This will import the fault set 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 FaultSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FaultSet(name: string, args: FaultSetArgs, opts?: CustomResourceOptions);
@overload
def FaultSet(resource_name: str,
args: FaultSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FaultSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
protection_domain_id: Optional[str] = None,
name: Optional[str] = None)
func NewFaultSet(ctx *Context, name string, args FaultSetArgs, opts ...ResourceOption) (*FaultSet, error)
public FaultSet(string name, FaultSetArgs args, CustomResourceOptions? opts = null)
public FaultSet(String name, FaultSetArgs args)
public FaultSet(String name, FaultSetArgs args, CustomResourceOptions options)
type: powerflex:FaultSet
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 FaultSetArgs
- 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 FaultSetArgs
- 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 FaultSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FaultSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FaultSetArgs
- 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 faultSetResource = new Powerflex.FaultSet("faultSetResource", new()
{
ProtectionDomainId = "string",
Name = "string",
});
example, err := powerflex.NewFaultSet(ctx, "faultSetResource", &powerflex.FaultSetArgs{
ProtectionDomainId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var faultSetResource = new FaultSet("faultSetResource", FaultSetArgs.builder()
.protectionDomainId("string")
.name("string")
.build());
fault_set_resource = powerflex.FaultSet("faultSetResource",
protection_domain_id="string",
name="string")
const faultSetResource = new powerflex.FaultSet("faultSetResource", {
protectionDomainId: "string",
name: "string",
});
type: powerflex:FaultSet
properties:
name: string
protectionDomainId: string
FaultSet 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 FaultSet resource accepts the following input properties:
- Protection
Domain stringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- Name string
- Name of the Fault set
- Protection
Domain stringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- Name string
- Name of the Fault set
- protection
Domain StringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name String
- Name of the Fault set
- protection
Domain stringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name string
- Name of the Fault set
- protection_
domain_ strid - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name str
- Name of the Fault set
- protection
Domain StringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name String
- Name of the Fault set
Outputs
All input properties are implicitly available as output properties. Additionally, the FaultSet 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 FaultSet Resource
Get an existing FaultSet 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?: FaultSetState, opts?: CustomResourceOptions): FaultSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
protection_domain_id: Optional[str] = None) -> FaultSet
func GetFaultSet(ctx *Context, name string, id IDInput, state *FaultSetState, opts ...ResourceOption) (*FaultSet, error)
public static FaultSet Get(string name, Input<string> id, FaultSetState? state, CustomResourceOptions? opts = null)
public static FaultSet get(String name, Output<String> id, FaultSetState state, CustomResourceOptions options)
resources: _: type: powerflex:FaultSet 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
- Name of the Fault set
- Protection
Domain stringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- Name string
- Name of the Fault set
- Protection
Domain stringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name String
- Name of the Fault set
- protection
Domain StringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name string
- Name of the Fault set
- protection
Domain stringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name str
- Name of the Fault set
- protection_
domain_ strid - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
- name String
- Name of the Fault set
- protection
Domain StringId - ID of the Protection Domain under which the fault set will be created. Cannot be updated.
Package Details
- Repository
- powerflex dell/terraform-provider-powerflex
- License
- Notes
- This Pulumi package is based on the
powerflex
Terraform Provider.