ibm.SchematicsAgentHealth
Explore with Pulumi AI
Provides a resource for schematics_agent_health. This allows schematics_agent_health to be created, updated and deleted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const schematicsAgentHealthInstance = new ibm.SchematicsAgentHealth("schematicsAgentHealthInstance", {agentId: "agent_id"});
import pulumi
import pulumi_ibm as ibm
schematics_agent_health_instance = ibm.SchematicsAgentHealth("schematicsAgentHealthInstance", agent_id="agent_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.NewSchematicsAgentHealth(ctx, "schematicsAgentHealthInstance", &ibm.SchematicsAgentHealthArgs{
AgentId: pulumi.String("agent_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 schematicsAgentHealthInstance = new Ibm.SchematicsAgentHealth("schematicsAgentHealthInstance", new()
{
AgentId = "agent_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SchematicsAgentHealth;
import com.pulumi.ibm.SchematicsAgentHealthArgs;
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 schematicsAgentHealthInstance = new SchematicsAgentHealth("schematicsAgentHealthInstance", SchematicsAgentHealthArgs.builder()
.agentId("agent_id")
.build());
}
}
resources:
schematicsAgentHealthInstance:
type: ibm:SchematicsAgentHealth
properties:
agentId: agent_id
Create SchematicsAgentHealth Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SchematicsAgentHealth(name: string, args: SchematicsAgentHealthArgs, opts?: CustomResourceOptions);
@overload
def SchematicsAgentHealth(resource_name: str,
args: SchematicsAgentHealthArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SchematicsAgentHealth(resource_name: str,
opts: Optional[ResourceOptions] = None,
agent_id: Optional[str] = None,
force: Optional[bool] = None,
schematics_agent_health_id: Optional[str] = None)
func NewSchematicsAgentHealth(ctx *Context, name string, args SchematicsAgentHealthArgs, opts ...ResourceOption) (*SchematicsAgentHealth, error)
public SchematicsAgentHealth(string name, SchematicsAgentHealthArgs args, CustomResourceOptions? opts = null)
public SchematicsAgentHealth(String name, SchematicsAgentHealthArgs args)
public SchematicsAgentHealth(String name, SchematicsAgentHealthArgs args, CustomResourceOptions options)
type: ibm:SchematicsAgentHealth
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 SchematicsAgentHealthArgs
- 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 SchematicsAgentHealthArgs
- 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 SchematicsAgentHealthArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchematicsAgentHealthArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchematicsAgentHealthArgs
- 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 schematicsAgentHealthResource = new Ibm.SchematicsAgentHealth("schematicsAgentHealthResource", new()
{
AgentId = "string",
Force = false,
SchematicsAgentHealthId = "string",
});
example, err := ibm.NewSchematicsAgentHealth(ctx, "schematicsAgentHealthResource", &ibm.SchematicsAgentHealthArgs{
AgentId: pulumi.String("string"),
Force: pulumi.Bool(false),
SchematicsAgentHealthId: pulumi.String("string"),
})
var schematicsAgentHealthResource = new SchematicsAgentHealth("schematicsAgentHealthResource", SchematicsAgentHealthArgs.builder()
.agentId("string")
.force(false)
.schematicsAgentHealthId("string")
.build());
schematics_agent_health_resource = ibm.SchematicsAgentHealth("schematicsAgentHealthResource",
agent_id="string",
force=False,
schematics_agent_health_id="string")
const schematicsAgentHealthResource = new ibm.SchematicsAgentHealth("schematicsAgentHealthResource", {
agentId: "string",
force: false,
schematicsAgentHealthId: "string",
});
type: ibm:SchematicsAgentHealth
properties:
agentId: string
force: false
schematicsAgentHealthId: string
SchematicsAgentHealth 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 SchematicsAgentHealth resource accepts the following input properties:
- Agent
Id string - Agent ID to get the details of agent.
- Force bool
- Equivalent to -force options in the command line, default is false.
- Schematics
Agent stringHealth Id - The unique identifier of the schematics_agent_health.
- Agent
Id string - Agent ID to get the details of agent.
- Force bool
- Equivalent to -force options in the command line, default is false.
- Schematics
Agent stringHealth Id - The unique identifier of the schematics_agent_health.
- agent
Id String - Agent ID to get the details of agent.
- force Boolean
- Equivalent to -force options in the command line, default is false.
- schematics
Agent StringHealth Id - The unique identifier of the schematics_agent_health.
- agent
Id string - Agent ID to get the details of agent.
- force boolean
- Equivalent to -force options in the command line, default is false.
- schematics
Agent stringHealth Id - The unique identifier of the schematics_agent_health.
- agent_
id str - Agent ID to get the details of agent.
- force bool
- Equivalent to -force options in the command line, default is false.
- schematics_
agent_ strhealth_ id - The unique identifier of the schematics_agent_health.
- agent
Id String - Agent ID to get the details of agent.
- force Boolean
- Equivalent to -force options in the command line, default is false.
- schematics
Agent StringHealth Id - The unique identifier of the schematics_agent_health.
Outputs
All input properties are implicitly available as output properties. Additionally, the SchematicsAgentHealth resource produces the following output properties:
- Agent
Version string - (String) Agent version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Job
Id string - (String) Job Id.
- Log
Url string - (String) URL to the full health-check job logs.
- Status
Code string - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- Status
Message string - (String) The outcome of the health-check job, in a formatted log string.
- Updated
At string - (String) The agent health check job updation time.
- Updated
By string - (String) Email address of user who ran the agent health check job.
- Agent
Version string - (String) Agent version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Job
Id string - (String) Job Id.
- Log
Url string - (String) URL to the full health-check job logs.
- Status
Code string - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- Status
Message string - (String) The outcome of the health-check job, in a formatted log string.
- Updated
At string - (String) The agent health check job updation time.
- Updated
By string - (String) Email address of user who ran the agent health check job.
- agent
Version String - (String) Agent version.
- id String
- The provider-assigned unique ID for this managed resource.
- job
Id String - (String) Job Id.
- log
Url String - (String) URL to the full health-check job logs.
- status
Code String - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status
Message String - (String) The outcome of the health-check job, in a formatted log string.
- updated
At String - (String) The agent health check job updation time.
- updated
By String - (String) Email address of user who ran the agent health check job.
- agent
Version string - (String) Agent version.
- id string
- The provider-assigned unique ID for this managed resource.
- job
Id string - (String) Job Id.
- log
Url string - (String) URL to the full health-check job logs.
- status
Code string - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status
Message string - (String) The outcome of the health-check job, in a formatted log string.
- updated
At string - (String) The agent health check job updation time.
- updated
By string - (String) Email address of user who ran the agent health check job.
- agent_
version str - (String) Agent version.
- id str
- The provider-assigned unique ID for this managed resource.
- job_
id str - (String) Job Id.
- log_
url str - (String) URL to the full health-check job logs.
- status_
code str - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status_
message str - (String) The outcome of the health-check job, in a formatted log string.
- updated_
at str - (String) The agent health check job updation time.
- updated_
by str - (String) Email address of user who ran the agent health check job.
- agent
Version String - (String) Agent version.
- id String
- The provider-assigned unique ID for this managed resource.
- job
Id String - (String) Job Id.
- log
Url String - (String) URL to the full health-check job logs.
- status
Code String - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status
Message String - (String) The outcome of the health-check job, in a formatted log string.
- updated
At String - (String) The agent health check job updation time.
- updated
By String - (String) Email address of user who ran the agent health check job.
Look up Existing SchematicsAgentHealth Resource
Get an existing SchematicsAgentHealth 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?: SchematicsAgentHealthState, opts?: CustomResourceOptions): SchematicsAgentHealth
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_id: Optional[str] = None,
agent_version: Optional[str] = None,
force: Optional[bool] = None,
job_id: Optional[str] = None,
log_url: Optional[str] = None,
schematics_agent_health_id: Optional[str] = None,
status_code: Optional[str] = None,
status_message: Optional[str] = None,
updated_at: Optional[str] = None,
updated_by: Optional[str] = None) -> SchematicsAgentHealth
func GetSchematicsAgentHealth(ctx *Context, name string, id IDInput, state *SchematicsAgentHealthState, opts ...ResourceOption) (*SchematicsAgentHealth, error)
public static SchematicsAgentHealth Get(string name, Input<string> id, SchematicsAgentHealthState? state, CustomResourceOptions? opts = null)
public static SchematicsAgentHealth get(String name, Output<String> id, SchematicsAgentHealthState state, CustomResourceOptions options)
resources: _: type: ibm:SchematicsAgentHealth 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
Id string - Agent ID to get the details of agent.
- Agent
Version string - (String) Agent version.
- Force bool
- Equivalent to -force options in the command line, default is false.
- Job
Id string - (String) Job Id.
- Log
Url string - (String) URL to the full health-check job logs.
- Schematics
Agent stringHealth Id - The unique identifier of the schematics_agent_health.
- Status
Code string - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- Status
Message string - (String) The outcome of the health-check job, in a formatted log string.
- Updated
At string - (String) The agent health check job updation time.
- Updated
By string - (String) Email address of user who ran the agent health check job.
- Agent
Id string - Agent ID to get the details of agent.
- Agent
Version string - (String) Agent version.
- Force bool
- Equivalent to -force options in the command line, default is false.
- Job
Id string - (String) Job Id.
- Log
Url string - (String) URL to the full health-check job logs.
- Schematics
Agent stringHealth Id - The unique identifier of the schematics_agent_health.
- Status
Code string - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- Status
Message string - (String) The outcome of the health-check job, in a formatted log string.
- Updated
At string - (String) The agent health check job updation time.
- Updated
By string - (String) Email address of user who ran the agent health check job.
- agent
Id String - Agent ID to get the details of agent.
- agent
Version String - (String) Agent version.
- force Boolean
- Equivalent to -force options in the command line, default is false.
- job
Id String - (String) Job Id.
- log
Url String - (String) URL to the full health-check job logs.
- schematics
Agent StringHealth Id - The unique identifier of the schematics_agent_health.
- status
Code String - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status
Message String - (String) The outcome of the health-check job, in a formatted log string.
- updated
At String - (String) The agent health check job updation time.
- updated
By String - (String) Email address of user who ran the agent health check job.
- agent
Id string - Agent ID to get the details of agent.
- agent
Version string - (String) Agent version.
- force boolean
- Equivalent to -force options in the command line, default is false.
- job
Id string - (String) Job Id.
- log
Url string - (String) URL to the full health-check job logs.
- schematics
Agent stringHealth Id - The unique identifier of the schematics_agent_health.
- status
Code string - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status
Message string - (String) The outcome of the health-check job, in a formatted log string.
- updated
At string - (String) The agent health check job updation time.
- updated
By string - (String) Email address of user who ran the agent health check job.
- agent_
id str - Agent ID to get the details of agent.
- agent_
version str - (String) Agent version.
- force bool
- Equivalent to -force options in the command line, default is false.
- job_
id str - (String) Job Id.
- log_
url str - (String) URL to the full health-check job logs.
- schematics_
agent_ strhealth_ id - The unique identifier of the schematics_agent_health.
- status_
code str - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status_
message str - (String) The outcome of the health-check job, in a formatted log string.
- updated_
at str - (String) The agent health check job updation time.
- updated_
by str - (String) Email address of user who ran the agent health check job.
- agent
Id String - Agent ID to get the details of agent.
- agent
Version String - (String) Agent version.
- force Boolean
- Equivalent to -force options in the command line, default is false.
- job
Id String - (String) Job Id.
- log
Url String - (String) URL to the full health-check job logs.
- schematics
Agent StringHealth Id - The unique identifier of the schematics_agent_health.
- status
Code String - (String) Final result of the health-check job.
- Constraints: Allowable values are:
pending
,in-progress
,success
,failed
.
- Constraints: Allowable values are:
- status
Message String - (String) The outcome of the health-check job, in a formatted log string.
- updated
At String - (String) The agent health check job updation time.
- updated
By String - (String) Email address of user who ran the agent health check job.
Import
You can import the ibm_schematics_agent_health
resource by using agent_id
.
The agent_id
property can be formed from agent_id
, and agent_id
in the following format:
<agent_id>/<agent_id>
agent_id
: A string. Agent ID to get the details of agent.agent_id
: A string. Agent ID to get the details of agent.
Syntax
$ pulumi import ibm:index/schematicsAgentHealth:SchematicsAgentHealth schematics_agent_health <agent_id>/<agent_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.