ibm.BackupRecoveryAgentUpgradeTask
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const backupRecoveryAgentUpgradeTaskInstance = new ibm.BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskInstance", {xIbmTenantId: "x_ibm_tenant_id"});
import pulumi
import pulumi_ibm as ibm
backup_recovery_agent_upgrade_task_instance = ibm.BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskInstance", x_ibm_tenant_id="x_ibm_tenant_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewBackupRecoveryAgentUpgradeTask(ctx, "backupRecoveryAgentUpgradeTaskInstance", &ibm.BackupRecoveryAgentUpgradeTaskArgs{
XIbmTenantId: pulumi.String("x_ibm_tenant_id"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var backupRecoveryAgentUpgradeTaskInstance = new Ibm.BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskInstance", new()
{
XIbmTenantId = "x_ibm_tenant_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.BackupRecoveryAgentUpgradeTask;
import com.pulumi.ibm.BackupRecoveryAgentUpgradeTaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var backupRecoveryAgentUpgradeTaskInstance = new BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskInstance", BackupRecoveryAgentUpgradeTaskArgs.builder()
.xIbmTenantId("x_ibm_tenant_id")
.build());
}
}
resources:
backupRecoveryAgentUpgradeTaskInstance:
type: ibm:BackupRecoveryAgentUpgradeTask
properties:
xIbmTenantId: x_ibm_tenant_id
Create BackupRecoveryAgentUpgradeTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupRecoveryAgentUpgradeTask(name: string, args: BackupRecoveryAgentUpgradeTaskArgs, opts?: CustomResourceOptions);
@overload
def BackupRecoveryAgentUpgradeTask(resource_name: str,
args: BackupRecoveryAgentUpgradeTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupRecoveryAgentUpgradeTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
x_ibm_tenant_id: Optional[str] = None,
agent_ids: Optional[Sequence[float]] = None,
backup_recovery_agent_upgrade_task_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
retry_task_id: Optional[float] = None,
schedule_end_time_usecs: Optional[float] = None,
schedule_time_usecs: Optional[float] = None)
func NewBackupRecoveryAgentUpgradeTask(ctx *Context, name string, args BackupRecoveryAgentUpgradeTaskArgs, opts ...ResourceOption) (*BackupRecoveryAgentUpgradeTask, error)
public BackupRecoveryAgentUpgradeTask(string name, BackupRecoveryAgentUpgradeTaskArgs args, CustomResourceOptions? opts = null)
public BackupRecoveryAgentUpgradeTask(String name, BackupRecoveryAgentUpgradeTaskArgs args)
public BackupRecoveryAgentUpgradeTask(String name, BackupRecoveryAgentUpgradeTaskArgs args, CustomResourceOptions options)
type: ibm:BackupRecoveryAgentUpgradeTask
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 BackupRecoveryAgentUpgradeTaskArgs
- 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 BackupRecoveryAgentUpgradeTaskArgs
- 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 BackupRecoveryAgentUpgradeTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupRecoveryAgentUpgradeTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupRecoveryAgentUpgradeTaskArgs
- 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 backupRecoveryAgentUpgradeTaskResource = new Ibm.BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskResource", new()
{
XIbmTenantId = "string",
AgentIds = new[]
{
0,
},
BackupRecoveryAgentUpgradeTaskId = "string",
Description = "string",
Name = "string",
RetryTaskId = 0,
ScheduleEndTimeUsecs = 0,
ScheduleTimeUsecs = 0,
});
example, err := ibm.NewBackupRecoveryAgentUpgradeTask(ctx, "backupRecoveryAgentUpgradeTaskResource", &ibm.BackupRecoveryAgentUpgradeTaskArgs{
XIbmTenantId: pulumi.String("string"),
AgentIds: pulumi.Float64Array{
pulumi.Float64(0),
},
BackupRecoveryAgentUpgradeTaskId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
RetryTaskId: pulumi.Float64(0),
ScheduleEndTimeUsecs: pulumi.Float64(0),
ScheduleTimeUsecs: pulumi.Float64(0),
})
var backupRecoveryAgentUpgradeTaskResource = new BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskResource", BackupRecoveryAgentUpgradeTaskArgs.builder()
.xIbmTenantId("string")
.agentIds(0)
.backupRecoveryAgentUpgradeTaskId("string")
.description("string")
.name("string")
.retryTaskId(0)
.scheduleEndTimeUsecs(0)
.scheduleTimeUsecs(0)
.build());
backup_recovery_agent_upgrade_task_resource = ibm.BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskResource",
x_ibm_tenant_id="string",
agent_ids=[0],
backup_recovery_agent_upgrade_task_id="string",
description="string",
name="string",
retry_task_id=0,
schedule_end_time_usecs=0,
schedule_time_usecs=0)
const backupRecoveryAgentUpgradeTaskResource = new ibm.BackupRecoveryAgentUpgradeTask("backupRecoveryAgentUpgradeTaskResource", {
xIbmTenantId: "string",
agentIds: [0],
backupRecoveryAgentUpgradeTaskId: "string",
description: "string",
name: "string",
retryTaskId: 0,
scheduleEndTimeUsecs: 0,
scheduleTimeUsecs: 0,
});
type: ibm:BackupRecoveryAgentUpgradeTask
properties:
agentIds:
- 0
backupRecoveryAgentUpgradeTaskId: string
description: string
name: string
retryTaskId: 0
scheduleEndTimeUsecs: 0
scheduleTimeUsecs: 0
xIbmTenantId: string
BackupRecoveryAgentUpgradeTask 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 BackupRecoveryAgentUpgradeTask resource accepts the following input properties:
- XIbm
Tenant stringId - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- Agent
Ids List<double> - Specifies the agents upgraded in the task.
- Backup
Recovery stringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- Description string
- Specifies the description of the task.
- Name string
- Specifies the name of the task.
- Retry
Task doubleId - Specifies ID of a task which is to be retried.
- Schedule
End doubleTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- Schedule
Time doubleUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- XIbm
Tenant stringId - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- Agent
Ids []float64 - Specifies the agents upgraded in the task.
- Backup
Recovery stringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- Description string
- Specifies the description of the task.
- Name string
- Specifies the name of the task.
- Retry
Task float64Id - Specifies ID of a task which is to be retried.
- Schedule
End float64Time Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- Schedule
Time float64Usecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- x
Ibm StringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent
Ids List<Double> - Specifies the agents upgraded in the task.
- backup
Recovery StringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- description String
- Specifies the description of the task.
- name String
- Specifies the name of the task.
- retry
Task DoubleId - Specifies ID of a task which is to be retried.
- schedule
End DoubleTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule
Time DoubleUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- x
Ibm stringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent
Ids number[] - Specifies the agents upgraded in the task.
- backup
Recovery stringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- description string
- Specifies the description of the task.
- name string
- Specifies the name of the task.
- retry
Task numberId - Specifies ID of a task which is to be retried.
- schedule
End numberTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule
Time numberUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- x_
ibm_ strtenant_ id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent_
ids Sequence[float] - Specifies the agents upgraded in the task.
- backup_
recovery_ stragent_ upgrade_ task_ id - (Integer) Specifies the ID of the agent.
- description str
- Specifies the description of the task.
- name str
- Specifies the name of the task.
- retry_
task_ floatid - Specifies ID of a task which is to be retried.
- schedule_
end_ floattime_ usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule_
time_ floatusecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- x
Ibm StringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent
Ids List<Number> - Specifies the agents upgraded in the task.
- backup
Recovery StringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- description String
- Specifies the description of the task.
- name String
- Specifies the name of the task.
- retry
Task NumberId - Specifies ID of a task which is to be retried.
- schedule
End NumberTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule
Time NumberUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupRecoveryAgentUpgradeTask resource produces the following output properties:
- Agents
List<Backup
Recovery Agent Upgrade Task Agent> - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- Cluster
Version string - (String) Specifies the version to which agents are upgraded.
- End
Time doubleUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- Errors
List<Backup
Recovery Agent Upgrade Task Error> - (List) Object that holds the error object. Nested schema for error:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Retryable bool - (Boolean) Specifies if a task can be retried.
- Retried
Task doubleId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- Start
Time doubleUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- Status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- Type string
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- Agents
[]Backup
Recovery Agent Upgrade Task Agent - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- Cluster
Version string - (String) Specifies the version to which agents are upgraded.
- End
Time float64Usecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- Errors
[]Backup
Recovery Agent Upgrade Task Error - (List) Object that holds the error object. Nested schema for error:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Retryable bool - (Boolean) Specifies if a task can be retried.
- Retried
Task float64Id - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- Start
Time float64Usecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- Status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- Type string
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- agents
List<Backup
Recovery Agent Upgrade Task Agent> - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- cluster
Version String - (String) Specifies the version to which agents are upgraded.
- end
Time DoubleUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
List<Backup
Recovery Agent Upgrade Task Error> - (List) Object that holds the error object. Nested schema for error:
- id String
- The provider-assigned unique ID for this managed resource.
- is
Retryable Boolean - (Boolean) Specifies if a task can be retried.
- retried
Task DoubleId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- start
Time DoubleUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status String
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type String
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- agents
Backup
Recovery Agent Upgrade Task Agent[] - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- cluster
Version string - (String) Specifies the version to which agents are upgraded.
- end
Time numberUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
Backup
Recovery Agent Upgrade Task Error[] - (List) Object that holds the error object. Nested schema for error:
- id string
- The provider-assigned unique ID for this managed resource.
- is
Retryable boolean - (Boolean) Specifies if a task can be retried.
- retried
Task numberId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- start
Time numberUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type string
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- agents
Sequence[Backup
Recovery Agent Upgrade Task Agent] - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- cluster_
version str - (String) Specifies the version to which agents are upgraded.
- end_
time_ floatusecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
Sequence[Backup
Recovery Agent Upgrade Task Error] - (List) Object that holds the error object. Nested schema for error:
- id str
- The provider-assigned unique ID for this managed resource.
- is_
retryable bool - (Boolean) Specifies if a task can be retried.
- retried_
task_ floatid - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- start_
time_ floatusecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status str
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type str
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- agents List<Property Map>
- (List) Specifies the upgrade information for each agent. Nested schema for agents:
- cluster
Version String - (String) Specifies the version to which agents are upgraded.
- end
Time NumberUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors List<Property Map>
- (List) Object that holds the error object. Nested schema for error:
- id String
- The provider-assigned unique ID for this managed resource.
- is
Retryable Boolean - (Boolean) Specifies if a task can be retried.
- retried
Task NumberId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- start
Time NumberUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status String
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type String
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
Look up Existing BackupRecoveryAgentUpgradeTask Resource
Get an existing BackupRecoveryAgentUpgradeTask 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?: BackupRecoveryAgentUpgradeTaskState, opts?: CustomResourceOptions): BackupRecoveryAgentUpgradeTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_ids: Optional[Sequence[float]] = None,
agents: Optional[Sequence[BackupRecoveryAgentUpgradeTaskAgentArgs]] = None,
backup_recovery_agent_upgrade_task_id: Optional[str] = None,
cluster_version: Optional[str] = None,
description: Optional[str] = None,
end_time_usecs: Optional[float] = None,
errors: Optional[Sequence[BackupRecoveryAgentUpgradeTaskErrorArgs]] = None,
is_retryable: Optional[bool] = None,
name: Optional[str] = None,
retried_task_id: Optional[float] = None,
retry_task_id: Optional[float] = None,
schedule_end_time_usecs: Optional[float] = None,
schedule_time_usecs: Optional[float] = None,
start_time_usecs: Optional[float] = None,
status: Optional[str] = None,
type: Optional[str] = None,
x_ibm_tenant_id: Optional[str] = None) -> BackupRecoveryAgentUpgradeTask
func GetBackupRecoveryAgentUpgradeTask(ctx *Context, name string, id IDInput, state *BackupRecoveryAgentUpgradeTaskState, opts ...ResourceOption) (*BackupRecoveryAgentUpgradeTask, error)
public static BackupRecoveryAgentUpgradeTask Get(string name, Input<string> id, BackupRecoveryAgentUpgradeTaskState? state, CustomResourceOptions? opts = null)
public static BackupRecoveryAgentUpgradeTask get(String name, Output<String> id, BackupRecoveryAgentUpgradeTaskState state, CustomResourceOptions options)
resources: _: type: ibm:BackupRecoveryAgentUpgradeTask 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.
- Agent
Ids List<double> - Specifies the agents upgraded in the task.
- Agents
List<Backup
Recovery Agent Upgrade Task Agent> - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- Backup
Recovery stringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- Cluster
Version string - (String) Specifies the version to which agents are upgraded.
- Description string
- Specifies the description of the task.
- End
Time doubleUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- Errors
List<Backup
Recovery Agent Upgrade Task Error> - (List) Object that holds the error object. Nested schema for error:
- Is
Retryable bool - (Boolean) Specifies if a task can be retried.
- Name string
- Specifies the name of the task.
- Retried
Task doubleId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- Retry
Task doubleId - Specifies ID of a task which is to be retried.
- Schedule
End doubleTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- Schedule
Time doubleUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- Start
Time doubleUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- Status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- Type string
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- XIbm
Tenant stringId - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- Agent
Ids []float64 - Specifies the agents upgraded in the task.
- Agents
[]Backup
Recovery Agent Upgrade Task Agent Args - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- Backup
Recovery stringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- Cluster
Version string - (String) Specifies the version to which agents are upgraded.
- Description string
- Specifies the description of the task.
- End
Time float64Usecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- Errors
[]Backup
Recovery Agent Upgrade Task Error Args - (List) Object that holds the error object. Nested schema for error:
- Is
Retryable bool - (Boolean) Specifies if a task can be retried.
- Name string
- Specifies the name of the task.
- Retried
Task float64Id - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- Retry
Task float64Id - Specifies ID of a task which is to be retried.
- Schedule
End float64Time Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- Schedule
Time float64Usecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- Start
Time float64Usecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- Status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- Type string
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- XIbm
Tenant stringId - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent
Ids List<Double> - Specifies the agents upgraded in the task.
- agents
List<Backup
Recovery Agent Upgrade Task Agent> - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- backup
Recovery StringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- cluster
Version String - (String) Specifies the version to which agents are upgraded.
- description String
- Specifies the description of the task.
- end
Time DoubleUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
List<Backup
Recovery Agent Upgrade Task Error> - (List) Object that holds the error object. Nested schema for error:
- is
Retryable Boolean - (Boolean) Specifies if a task can be retried.
- name String
- Specifies the name of the task.
- retried
Task DoubleId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- retry
Task DoubleId - Specifies ID of a task which is to be retried.
- schedule
End DoubleTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule
Time DoubleUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- start
Time DoubleUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status String
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type String
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- x
Ibm StringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent
Ids number[] - Specifies the agents upgraded in the task.
- agents
Backup
Recovery Agent Upgrade Task Agent[] - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- backup
Recovery stringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- cluster
Version string - (String) Specifies the version to which agents are upgraded.
- description string
- Specifies the description of the task.
- end
Time numberUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
Backup
Recovery Agent Upgrade Task Error[] - (List) Object that holds the error object. Nested schema for error:
- is
Retryable boolean - (Boolean) Specifies if a task can be retried.
- name string
- Specifies the name of the task.
- retried
Task numberId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- retry
Task numberId - Specifies ID of a task which is to be retried.
- schedule
End numberTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule
Time numberUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- start
Time numberUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type string
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- x
Ibm stringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent_
ids Sequence[float] - Specifies the agents upgraded in the task.
- agents
Sequence[Backup
Recovery Agent Upgrade Task Agent Args] - (List) Specifies the upgrade information for each agent. Nested schema for agents:
- backup_
recovery_ stragent_ upgrade_ task_ id - (Integer) Specifies the ID of the agent.
- cluster_
version str - (String) Specifies the version to which agents are upgraded.
- description str
- Specifies the description of the task.
- end_
time_ floatusecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
Sequence[Backup
Recovery Agent Upgrade Task Error Args] - (List) Object that holds the error object. Nested schema for error:
- is_
retryable bool - (Boolean) Specifies if a task can be retried.
- name str
- Specifies the name of the task.
- retried_
task_ floatid - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- retry_
task_ floatid - Specifies ID of a task which is to be retried.
- schedule_
end_ floattime_ usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule_
time_ floatusecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- start_
time_ floatusecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status str
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type str
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- x_
ibm_ strtenant_ id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- agent
Ids List<Number> - Specifies the agents upgraded in the task.
- agents List<Property Map>
- (List) Specifies the upgrade information for each agent. Nested schema for agents:
- backup
Recovery StringAgent Upgrade Task Id - (Integer) Specifies the ID of the agent.
- cluster
Version String - (String) Specifies the version to which agents are upgraded.
- description String
- Specifies the description of the task.
- end
Time NumberUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors List<Property Map>
- (List) Object that holds the error object. Nested schema for error:
- is
Retryable Boolean - (Boolean) Specifies if a task can be retried.
- name String
- Specifies the name of the task.
- retried
Task NumberId - (Integer) Specifies ID of a task which was retried if type is 'Retry'.
- retry
Task NumberId - Specifies ID of a task which is to be retried.
- schedule
End NumberTime Usecs - Specifies the time before which the upgrade task should start execution as a Unix epoch Timestamp (in microseconds). If this is not specified the task will start anytime after scheduleTimeUsecs.
- schedule
Time NumberUsecs - Specifies the time when the task should start execution as a Unix epoch Timestamp (in microseconds). If no schedule is specified, the task will start immediately.
- start
Time NumberUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status String
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- type String
- (String) Specifes the type of task. 'Auto' indicates an auto agent upgrade task which is started after a cluster upgrade. 'Manual' indicates a schedule based agent upgrade task. 'Retry' indicates an agent upgrade task which was retried.
- Constraints: Allowable values are:
Auto
,Manual
,Retry
.
- Constraints: Allowable values are:
- x
Ibm StringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
Supporting Types
BackupRecoveryAgentUpgradeTaskAgent, BackupRecoveryAgentUpgradeTaskAgentArgs
- Id double
- (Integer) Specifies the ID of the agent.
- Infos
List<Backup
Recovery Agent Upgrade Task Agent Info> - (List) Specifies the upgrade state of the agent. Nested schema for info:
- Id float64
- (Integer) Specifies the ID of the agent.
- Infos
[]Backup
Recovery Agent Upgrade Task Agent Info - (List) Specifies the upgrade state of the agent. Nested schema for info:
- id Double
- (Integer) Specifies the ID of the agent.
- infos
List<Backup
Recovery Agent Upgrade Task Agent Info> - (List) Specifies the upgrade state of the agent. Nested schema for info:
- id number
- (Integer) Specifies the ID of the agent.
- infos
Backup
Recovery Agent Upgrade Task Agent Info[] - (List) Specifies the upgrade state of the agent. Nested schema for info:
- id float
- (Integer) Specifies the ID of the agent.
- infos
Sequence[Backup
Recovery Agent Upgrade Task Agent Info] - (List) Specifies the upgrade state of the agent. Nested schema for info:
- id Number
- (Integer) Specifies the ID of the agent.
- infos List<Property Map>
- (List) Specifies the upgrade state of the agent. Nested schema for info:
BackupRecoveryAgentUpgradeTaskAgentInfo, BackupRecoveryAgentUpgradeTaskAgentInfoArgs
- End
Time doubleUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- Errors
List<Backup
Recovery Agent Upgrade Task Agent Info Error> - (List) Object that holds the error object. Nested schema for error:
- Name string
- Specifies the name of the task.
- Previous
Software stringVersion - (String) Specifies the software version of the agent before upgrade.
- Start
Time doubleUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- Status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- End
Time float64Usecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- Errors
[]Backup
Recovery Agent Upgrade Task Agent Info Error - (List) Object that holds the error object. Nested schema for error:
- Name string
- Specifies the name of the task.
- Previous
Software stringVersion - (String) Specifies the software version of the agent before upgrade.
- Start
Time float64Usecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- Status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- end
Time DoubleUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
List<Backup
Recovery Agent Upgrade Task Agent Info Error> - (List) Object that holds the error object. Nested schema for error:
- name String
- Specifies the name of the task.
- previous
Software StringVersion - (String) Specifies the software version of the agent before upgrade.
- start
Time DoubleUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status String
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- end
Time numberUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
Backup
Recovery Agent Upgrade Task Agent Info Error[] - (List) Object that holds the error object. Nested schema for error:
- name string
- Specifies the name of the task.
- previous
Software stringVersion - (String) Specifies the software version of the agent before upgrade.
- start
Time numberUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status string
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- end_
time_ floatusecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors
Sequence[Backup
Recovery Agent Upgrade Task Agent Info Error] - (List) Object that holds the error object. Nested schema for error:
- name str
- Specifies the name of the task.
- previous_
software_ strversion - (String) Specifies the software version of the agent before upgrade.
- start_
time_ floatusecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status str
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
- end
Time NumberUsecs - (Integer) Specifies the time when the upgrade task completed execution as a Unix epoch Timestamp (in microseconds).
- errors List<Property Map>
- (List) Object that holds the error object. Nested schema for error:
- name String
- Specifies the name of the task.
- previous
Software StringVersion - (String) Specifies the software version of the agent before upgrade.
- start
Time NumberUsecs - (Integer) Specifies the time, as a Unix epoch timestamp in microseconds, when the task started execution.
- status String
- (String) Specifies the status of the task. 'Scheduled' indicates that the upgrade task is yet to start. 'Running' indicates that the upgrade task has started execution. 'Succeeded' indicates that the upgrade task completed without an error. 'Failed' indicates that upgrade has failed for all agents. 'PartiallyFailed' indicates that upgrade has failed for some agents.
- Constraints: Allowable values are:
Scheduled
,Running
,Succeeded
,Failed
,PartiallyFailed
,Canceled
.
- Constraints: Allowable values are:
BackupRecoveryAgentUpgradeTaskAgentInfoError, BackupRecoveryAgentUpgradeTaskAgentInfoErrorArgs
- error_
code str - (String) Specifies the error code.
- message str
- (String) Specifies the error message.
- task_
log_ strid - (String) Specifies the TaskLogId of the failed task.
BackupRecoveryAgentUpgradeTaskError, BackupRecoveryAgentUpgradeTaskErrorArgs
- error_
code str - (String) Specifies the error code.
- message str
- (String) Specifies the error message.
- task_
log_ strid - (String) Specifies the TaskLogId of the failed task.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.