1. Packages
  2. Ibm Provider
  3. API Docs
  4. getSchematicsAgentPrs
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getSchematicsAgentPrs

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source for schematics_agent_prs. 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 schematicsAgentPrs = ibm.getSchematicsAgentPrs({
        agentId: ibm_schematics_agent_prs.schematics_agent_prs.agent_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    schematics_agent_prs = ibm.get_schematics_agent_prs(agent_id=ibm_schematics_agent_prs["schematics_agent_prs"]["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.LookupSchematicsAgentPrs(ctx, &ibm.LookupSchematicsAgentPrsArgs{
    			AgentId: ibm_schematics_agent_prs.Schematics_agent_prs.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 schematicsAgentPrs = Ibm.GetSchematicsAgentPrs.Invoke(new()
        {
            AgentId = ibm_schematics_agent_prs.Schematics_agent_prs.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.GetSchematicsAgentPrsArgs;
    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 schematicsAgentPrs = IbmFunctions.getSchematicsAgentPrs(GetSchematicsAgentPrsArgs.builder()
                .agentId(ibm_schematics_agent_prs.schematics_agent_prs().agent_id())
                .build());
    
        }
    }
    
    variables:
      schematicsAgentPrs:
        fn::invoke:
          function: ibm:getSchematicsAgentPrs
          arguments:
            agentId: ${ibm_schematics_agent_prs.schematics_agent_prs.agent_id}
    

    Using getSchematicsAgentPrs

    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 getSchematicsAgentPrs(args: GetSchematicsAgentPrsArgs, opts?: InvokeOptions): Promise<GetSchematicsAgentPrsResult>
    function getSchematicsAgentPrsOutput(args: GetSchematicsAgentPrsOutputArgs, opts?: InvokeOptions): Output<GetSchematicsAgentPrsResult>
    def get_schematics_agent_prs(agent_id: Optional[str] = None,
                                 id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSchematicsAgentPrsResult
    def get_schematics_agent_prs_output(agent_id: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSchematicsAgentPrsResult]
    func LookupSchematicsAgentPrs(ctx *Context, args *LookupSchematicsAgentPrsArgs, opts ...InvokeOption) (*LookupSchematicsAgentPrsResult, error)
    func LookupSchematicsAgentPrsOutput(ctx *Context, args *LookupSchematicsAgentPrsOutputArgs, opts ...InvokeOption) LookupSchematicsAgentPrsResultOutput

    > Note: This function is named LookupSchematicsAgentPrs in the Go SDK.

    public static class GetSchematicsAgentPrs 
    {
        public static Task<GetSchematicsAgentPrsResult> InvokeAsync(GetSchematicsAgentPrsArgs args, InvokeOptions? opts = null)
        public static Output<GetSchematicsAgentPrsResult> Invoke(GetSchematicsAgentPrsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchematicsAgentPrsResult> getSchematicsAgentPrs(GetSchematicsAgentPrsArgs args, InvokeOptions options)
    public static Output<GetSchematicsAgentPrsResult> getSchematicsAgentPrs(GetSchematicsAgentPrsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getSchematicsAgentPrs:getSchematicsAgentPrs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AgentId string
    Agent ID to get the details of agent.
    Id string
    The unique identifier of the schematics_agent_prs.
    AgentId string
    Agent ID to get the details of agent.
    Id string
    The unique identifier of the schematics_agent_prs.
    agentId String
    Agent ID to get the details of agent.
    id String
    The unique identifier of the schematics_agent_prs.
    agentId string
    Agent ID to get the details of agent.
    id string
    The unique identifier of the schematics_agent_prs.
    agent_id str
    Agent ID to get the details of agent.
    id str
    The unique identifier of the schematics_agent_prs.
    agentId String
    Agent ID to get the details of agent.
    id String
    The unique identifier of the schematics_agent_prs.

    getSchematicsAgentPrs Result

    The following output properties are available:

    AgentId string
    AgentVersion string
    (String) Agent version.
    Id string
    The unique identifier of the schematics_agent_prs.
    JobId string
    (String) Job Id.
    LogUrl string
    (String) URL to the full pre-requisite scanner job logs.
    StatusCode string
    (String) Final result of the pre-requisite scanner job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    StatusMessage string
    (String) The outcome of the pre-requisite scanner job, in a formatted log string.
    UpdatedAt string
    (String) The agent prs job updation time.
    UpdatedBy string
    (String) Email address of user who ran the agent prs job.
    AgentId string
    AgentVersion string
    (String) Agent version.
    Id string
    The unique identifier of the schematics_agent_prs.
    JobId string
    (String) Job Id.
    LogUrl string
    (String) URL to the full pre-requisite scanner job logs.
    StatusCode string
    (String) Final result of the pre-requisite scanner job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    StatusMessage string
    (String) The outcome of the pre-requisite scanner job, in a formatted log string.
    UpdatedAt string
    (String) The agent prs job updation time.
    UpdatedBy string
    (String) Email address of user who ran the agent prs job.
    agentId String
    agentVersion String
    (String) Agent version.
    id String
    The unique identifier of the schematics_agent_prs.
    jobId String
    (String) Job Id.
    logUrl String
    (String) URL to the full pre-requisite scanner job logs.
    statusCode String
    (String) Final result of the pre-requisite scanner job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    statusMessage String
    (String) The outcome of the pre-requisite scanner job, in a formatted log string.
    updatedAt String
    (String) The agent prs job updation time.
    updatedBy String
    (String) Email address of user who ran the agent prs job.
    agentId string
    agentVersion string
    (String) Agent version.
    id string
    The unique identifier of the schematics_agent_prs.
    jobId string
    (String) Job Id.
    logUrl string
    (String) URL to the full pre-requisite scanner job logs.
    statusCode string
    (String) Final result of the pre-requisite scanner job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    statusMessage string
    (String) The outcome of the pre-requisite scanner job, in a formatted log string.
    updatedAt string
    (String) The agent prs job updation time.
    updatedBy string
    (String) Email address of user who ran the agent prs job.
    agent_id str
    agent_version str
    (String) Agent version.
    id str
    The unique identifier of the schematics_agent_prs.
    job_id str
    (String) Job Id.
    log_url str
    (String) URL to the full pre-requisite scanner job logs.
    status_code str
    (String) Final result of the pre-requisite scanner job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    status_message str
    (String) The outcome of the pre-requisite scanner job, in a formatted log string.
    updated_at str
    (String) The agent prs job updation time.
    updated_by str
    (String) Email address of user who ran the agent prs job.
    agentId String
    agentVersion String
    (String) Agent version.
    id String
    The unique identifier of the schematics_agent_prs.
    jobId String
    (String) Job Id.
    logUrl String
    (String) URL to the full pre-requisite scanner job logs.
    statusCode String
    (String) Final result of the pre-requisite scanner job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    statusMessage String
    (String) The outcome of the pre-requisite scanner job, in a formatted log string.
    updatedAt String
    (String) The agent prs job updation time.
    updatedBy String
    (String) Email address of user who ran the agent prs job.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud