ibm.ContainerVpcWorker
Explore with Pulumi AI
Create ContainerVpcWorker Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerVpcWorker(name: string, args: ContainerVpcWorkerArgs, opts?: CustomResourceOptions);
@overload
def ContainerVpcWorker(resource_name: str,
args: ContainerVpcWorkerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerVpcWorker(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
replace_worker: Optional[str] = None,
check_ptx_status: Optional[bool] = None,
container_vpc_worker_id: Optional[str] = None,
kube_config_path: Optional[str] = None,
ptx_timeout: Optional[str] = None,
resource_group_id: Optional[str] = None,
sds: Optional[str] = None,
sds_timeout: Optional[str] = None,
timeouts: Optional[ContainerVpcWorkerTimeoutsArgs] = None)
func NewContainerVpcWorker(ctx *Context, name string, args ContainerVpcWorkerArgs, opts ...ResourceOption) (*ContainerVpcWorker, error)
public ContainerVpcWorker(string name, ContainerVpcWorkerArgs args, CustomResourceOptions? opts = null)
public ContainerVpcWorker(String name, ContainerVpcWorkerArgs args)
public ContainerVpcWorker(String name, ContainerVpcWorkerArgs args, CustomResourceOptions options)
type: ibm:ContainerVpcWorker
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 ContainerVpcWorkerArgs
- 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 ContainerVpcWorkerArgs
- 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 ContainerVpcWorkerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerVpcWorkerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerVpcWorkerArgs
- 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 containerVpcWorkerResource = new Ibm.ContainerVpcWorker("containerVpcWorkerResource", new()
{
ClusterName = "string",
ReplaceWorker = "string",
CheckPtxStatus = false,
ContainerVpcWorkerId = "string",
KubeConfigPath = "string",
PtxTimeout = "string",
ResourceGroupId = "string",
Sds = "string",
SdsTimeout = "string",
Timeouts = new Ibm.Inputs.ContainerVpcWorkerTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := ibm.NewContainerVpcWorker(ctx, "containerVpcWorkerResource", &ibm.ContainerVpcWorkerArgs{
ClusterName: pulumi.String("string"),
ReplaceWorker: pulumi.String("string"),
CheckPtxStatus: pulumi.Bool(false),
ContainerVpcWorkerId: pulumi.String("string"),
KubeConfigPath: pulumi.String("string"),
PtxTimeout: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Sds: pulumi.String("string"),
SdsTimeout: pulumi.String("string"),
Timeouts: &ibm.ContainerVpcWorkerTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var containerVpcWorkerResource = new ContainerVpcWorker("containerVpcWorkerResource", ContainerVpcWorkerArgs.builder()
.clusterName("string")
.replaceWorker("string")
.checkPtxStatus(false)
.containerVpcWorkerId("string")
.kubeConfigPath("string")
.ptxTimeout("string")
.resourceGroupId("string")
.sds("string")
.sdsTimeout("string")
.timeouts(ContainerVpcWorkerTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
container_vpc_worker_resource = ibm.ContainerVpcWorker("containerVpcWorkerResource",
cluster_name="string",
replace_worker="string",
check_ptx_status=False,
container_vpc_worker_id="string",
kube_config_path="string",
ptx_timeout="string",
resource_group_id="string",
sds="string",
sds_timeout="string",
timeouts={
"create": "string",
"delete": "string",
})
const containerVpcWorkerResource = new ibm.ContainerVpcWorker("containerVpcWorkerResource", {
clusterName: "string",
replaceWorker: "string",
checkPtxStatus: false,
containerVpcWorkerId: "string",
kubeConfigPath: "string",
ptxTimeout: "string",
resourceGroupId: "string",
sds: "string",
sdsTimeout: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: ibm:ContainerVpcWorker
properties:
checkPtxStatus: false
clusterName: string
containerVpcWorkerId: string
kubeConfigPath: string
ptxTimeout: string
replaceWorker: string
resourceGroupId: string
sds: string
sdsTimeout: string
timeouts:
create: string
delete: string
ContainerVpcWorker 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 ContainerVpcWorker resource accepts the following input properties:
- Cluster
Name string - The name or ID of the cluster.
- Replace
Worker string - The ID of the worker that needs to be replaced.
- Check
Ptx boolStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - Container
Vpc stringWorker Id - (String) The unique identifier of the worker.
- Kube
Config stringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - Ptx
Timeout string - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- Resource
Group stringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - Sds string
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- Sds
Timeout string - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- Timeouts
Container
Vpc Worker Timeouts
- Cluster
Name string - The name or ID of the cluster.
- Replace
Worker string - The ID of the worker that needs to be replaced.
- Check
Ptx boolStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - Container
Vpc stringWorker Id - (String) The unique identifier of the worker.
- Kube
Config stringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - Ptx
Timeout string - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- Resource
Group stringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - Sds string
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- Sds
Timeout string - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- Timeouts
Container
Vpc Worker Timeouts Args
- cluster
Name String - The name or ID of the cluster.
- replace
Worker String - The ID of the worker that needs to be replaced.
- check
Ptx BooleanStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - container
Vpc StringWorker Id - (String) The unique identifier of the worker.
- kube
Config StringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx
Timeout String - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- resource
Group StringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds String
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds
Timeout String - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts
Container
Vpc Worker Timeouts
- cluster
Name string - The name or ID of the cluster.
- replace
Worker string - The ID of the worker that needs to be replaced.
- check
Ptx booleanStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - container
Vpc stringWorker Id - (String) The unique identifier of the worker.
- kube
Config stringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx
Timeout string - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- resource
Group stringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds string
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds
Timeout string - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts
Container
Vpc Worker Timeouts
- cluster_
name str - The name or ID of the cluster.
- replace_
worker str - The ID of the worker that needs to be replaced.
- check_
ptx_ boolstatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - container_
vpc_ strworker_ id - (String) The unique identifier of the worker.
- kube_
config_ strpath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx_
timeout str - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- resource_
group_ strid - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds str
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds_
timeout str - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts
Container
Vpc Worker Timeouts Args
- cluster
Name String - The name or ID of the cluster.
- replace
Worker String - The ID of the worker that needs to be replaced.
- check
Ptx BooleanStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - container
Vpc StringWorker Id - (String) The unique identifier of the worker.
- kube
Config StringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx
Timeout String - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- resource
Group StringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds String
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds
Timeout String - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerVpcWorker resource produces the following output properties:
Look up Existing ContainerVpcWorker Resource
Get an existing ContainerVpcWorker 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?: ContainerVpcWorkerState, opts?: CustomResourceOptions): ContainerVpcWorker
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
check_ptx_status: Optional[bool] = None,
cluster_name: Optional[str] = None,
container_vpc_worker_id: Optional[str] = None,
ip: Optional[str] = None,
kube_config_path: Optional[str] = None,
ptx_timeout: Optional[str] = None,
replace_worker: Optional[str] = None,
resource_group_id: Optional[str] = None,
sds: Optional[str] = None,
sds_timeout: Optional[str] = None,
timeouts: Optional[ContainerVpcWorkerTimeoutsArgs] = None) -> ContainerVpcWorker
func GetContainerVpcWorker(ctx *Context, name string, id IDInput, state *ContainerVpcWorkerState, opts ...ResourceOption) (*ContainerVpcWorker, error)
public static ContainerVpcWorker Get(string name, Input<string> id, ContainerVpcWorkerState? state, CustomResourceOptions? opts = null)
public static ContainerVpcWorker get(String name, Output<String> id, ContainerVpcWorkerState state, CustomResourceOptions options)
resources: _: type: ibm:ContainerVpcWorker 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.
- Check
Ptx boolStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - Cluster
Name string - The name or ID of the cluster.
- Container
Vpc stringWorker Id - (String) The unique identifier of the worker.
- Ip string
- (String) The IP of the worker.
- Kube
Config stringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - Ptx
Timeout string - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- Replace
Worker string - The ID of the worker that needs to be replaced.
- Resource
Group stringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - Sds string
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- Sds
Timeout string - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- Timeouts
Container
Vpc Worker Timeouts
- Check
Ptx boolStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - Cluster
Name string - The name or ID of the cluster.
- Container
Vpc stringWorker Id - (String) The unique identifier of the worker.
- Ip string
- (String) The IP of the worker.
- Kube
Config stringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - Ptx
Timeout string - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- Replace
Worker string - The ID of the worker that needs to be replaced.
- Resource
Group stringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - Sds string
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- Sds
Timeout string - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- Timeouts
Container
Vpc Worker Timeouts Args
- check
Ptx BooleanStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - cluster
Name String - The name or ID of the cluster.
- container
Vpc StringWorker Id - (String) The unique identifier of the worker.
- ip String
- (String) The IP of the worker.
- kube
Config StringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx
Timeout String - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- replace
Worker String - The ID of the worker that needs to be replaced.
- resource
Group StringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds String
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds
Timeout String - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts
Container
Vpc Worker Timeouts
- check
Ptx booleanStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - cluster
Name string - The name or ID of the cluster.
- container
Vpc stringWorker Id - (String) The unique identifier of the worker.
- ip string
- (String) The IP of the worker.
- kube
Config stringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx
Timeout string - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- replace
Worker string - The ID of the worker that needs to be replaced.
- resource
Group stringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds string
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds
Timeout string - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts
Container
Vpc Worker Timeouts
- check_
ptx_ boolstatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - cluster_
name str - The name or ID of the cluster.
- container_
vpc_ strworker_ id - (String) The unique identifier of the worker.
- ip str
- (String) The IP of the worker.
- kube_
config_ strpath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx_
timeout str - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- replace_
worker str - The ID of the worker that needs to be replaced.
- resource_
group_ strid - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds str
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds_
timeout str - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts
Container
Vpc Worker Timeouts Args
- check
Ptx BooleanStatus - Boolean value to check the status of Portworx on the replaced worker instance. By default, this variable is set as
false
. - cluster
Name String - The name or ID of the cluster.
- container
Vpc StringWorker Id - (String) The unique identifier of the worker.
- ip String
- (String) The IP of the worker.
- kube
Config StringPath - The Cluster config with absolute path. If
check_ptx_status
is true, this variable should hold a valid value. To retrieve the cluster config, runibmcloud cluster config -c <Cluster_ID>
or use theibm.getContainerClusterConfig
data source. - ptx
Timeout String - The Status of Portworx on the replaced worker is considered failed when no response is received for 15 minutes.
- replace
Worker String - The ID of the worker that needs to be replaced.
- resource
Group StringId - The ID of the resource group. To retrieve the ID, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If no value is provided, thedefault
resource group is used. - sds String
- Software Defined Storage (SDS) parameter performs worker replace based on the installed SDS solution in the cluster. Supported value
ODF
- sds
Timeout String - The Status of the Software Defined Storage on the replaced worker is considered failed when no response is received for 30 minutes.
- timeouts Property Map
Supporting Types
ContainerVpcWorkerTimeouts, ContainerVpcWorkerTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.