ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSchematicsAgentHealth
Explore with Pulumi AI
Provides a read-only data source for schematics_agent_health. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const schematicsAgentHealth = ibm.getSchematicsAgentHealth({
agentId: ibm_schematics_agent_health.schematics_agent_health.agent_id,
});
import pulumi
import pulumi_ibm as ibm
schematics_agent_health = ibm.get_schematics_agent_health(agent_id=ibm_schematics_agent_health["schematics_agent_health"]["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.LookupSchematicsAgentHealth(ctx, &ibm.LookupSchematicsAgentHealthArgs{
AgentId: ibm_schematics_agent_health.Schematics_agent_health.Agent_id,
}, nil)
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 schematicsAgentHealth = Ibm.GetSchematicsAgentHealth.Invoke(new()
{
AgentId = ibm_schematics_agent_health.Schematics_agent_health.Agent_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetSchematicsAgentHealthArgs;
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) {
final var schematicsAgentHealth = IbmFunctions.getSchematicsAgentHealth(GetSchematicsAgentHealthArgs.builder()
.agentId(ibm_schematics_agent_health.schematics_agent_health().agent_id())
.build());
}
}
variables:
schematicsAgentHealth:
fn::invoke:
function: ibm:getSchematicsAgentHealth
arguments:
agentId: ${ibm_schematics_agent_health.schematics_agent_health.agent_id}
Using getSchematicsAgentHealth
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSchematicsAgentHealth(args: GetSchematicsAgentHealthArgs, opts?: InvokeOptions): Promise<GetSchematicsAgentHealthResult>
function getSchematicsAgentHealthOutput(args: GetSchematicsAgentHealthOutputArgs, opts?: InvokeOptions): Output<GetSchematicsAgentHealthResult>
def get_schematics_agent_health(agent_id: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchematicsAgentHealthResult
def get_schematics_agent_health_output(agent_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchematicsAgentHealthResult]
func LookupSchematicsAgentHealth(ctx *Context, args *LookupSchematicsAgentHealthArgs, opts ...InvokeOption) (*LookupSchematicsAgentHealthResult, error)
func LookupSchematicsAgentHealthOutput(ctx *Context, args *LookupSchematicsAgentHealthOutputArgs, opts ...InvokeOption) LookupSchematicsAgentHealthResultOutput
> Note: This function is named LookupSchematicsAgentHealth
in the Go SDK.
public static class GetSchematicsAgentHealth
{
public static Task<GetSchematicsAgentHealthResult> InvokeAsync(GetSchematicsAgentHealthArgs args, InvokeOptions? opts = null)
public static Output<GetSchematicsAgentHealthResult> Invoke(GetSchematicsAgentHealthInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchematicsAgentHealthResult> getSchematicsAgentHealth(GetSchematicsAgentHealthArgs args, InvokeOptions options)
public static Output<GetSchematicsAgentHealthResult> getSchematicsAgentHealth(GetSchematicsAgentHealthArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSchematicsAgentHealth:getSchematicsAgentHealth
arguments:
# arguments dictionary
The following arguments are supported:
getSchematicsAgentHealth Result
The following output properties are available:
- Agent
Id string - Agent
Version string - (String) Agent version.
- Id string
- The unique identifier of the schematics_agent_health.
- 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
Id string - Agent
Version string - (String) Agent version.
- Id string
- The unique identifier of the schematics_agent_health.
- 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
Id String - agent
Version String - (String) Agent version.
- id String
- The unique identifier of the schematics_agent_health.
- 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
Id string - agent
Version string - (String) Agent version.
- id string
- The unique identifier of the schematics_agent_health.
- 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_
id str - agent_
version str - (String) Agent version.
- id str
- The unique identifier of the schematics_agent_health.
- 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
Id String - agent
Version String - (String) Agent version.
- id String
- The unique identifier of the schematics_agent_health.
- 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.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.