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

ibm.getSchematicsAgentDeploy

Explore with Pulumi AI

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

    Beta: This resource is in Beta, and is subject to change.

    Provides a read-only data source for schematics_agent_deploy. 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 schematicsAgentDeploy = ibm.getSchematicsAgentDeploy({
        agentId: ibm_schematics_agent_deploy.schematics_agent_deploy.agent_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    schematics_agent_deploy = ibm.get_schematics_agent_deploy(agent_id=ibm_schematics_agent_deploy["schematics_agent_deploy"]["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.LookupSchematicsAgentDeploy(ctx, &ibm.LookupSchematicsAgentDeployArgs{
    			AgentId: ibm_schematics_agent_deploy.Schematics_agent_deploy.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 schematicsAgentDeploy = Ibm.GetSchematicsAgentDeploy.Invoke(new()
        {
            AgentId = ibm_schematics_agent_deploy.Schematics_agent_deploy.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.GetSchematicsAgentDeployArgs;
    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 schematicsAgentDeploy = IbmFunctions.getSchematicsAgentDeploy(GetSchematicsAgentDeployArgs.builder()
                .agentId(ibm_schematics_agent_deploy.schematics_agent_deploy().agent_id())
                .build());
    
        }
    }
    
    variables:
      schematicsAgentDeploy:
        fn::invoke:
          function: ibm:getSchematicsAgentDeploy
          arguments:
            agentId: ${ibm_schematics_agent_deploy.schematics_agent_deploy.agent_id}
    

    Using getSchematicsAgentDeploy

    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 getSchematicsAgentDeploy(args: GetSchematicsAgentDeployArgs, opts?: InvokeOptions): Promise<GetSchematicsAgentDeployResult>
    function getSchematicsAgentDeployOutput(args: GetSchematicsAgentDeployOutputArgs, opts?: InvokeOptions): Output<GetSchematicsAgentDeployResult>
    def get_schematics_agent_deploy(agent_id: Optional[str] = None,
                                    id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetSchematicsAgentDeployResult
    def get_schematics_agent_deploy_output(agent_id: Optional[pulumi.Input[str]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetSchematicsAgentDeployResult]
    func LookupSchematicsAgentDeploy(ctx *Context, args *LookupSchematicsAgentDeployArgs, opts ...InvokeOption) (*LookupSchematicsAgentDeployResult, error)
    func LookupSchematicsAgentDeployOutput(ctx *Context, args *LookupSchematicsAgentDeployOutputArgs, opts ...InvokeOption) LookupSchematicsAgentDeployResultOutput

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

    public static class GetSchematicsAgentDeploy 
    {
        public static Task<GetSchematicsAgentDeployResult> InvokeAsync(GetSchematicsAgentDeployArgs args, InvokeOptions? opts = null)
        public static Output<GetSchematicsAgentDeployResult> Invoke(GetSchematicsAgentDeployInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchematicsAgentDeployResult> getSchematicsAgentDeploy(GetSchematicsAgentDeployArgs args, InvokeOptions options)
    public static Output<GetSchematicsAgentDeployResult> getSchematicsAgentDeploy(GetSchematicsAgentDeployArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getSchematicsAgentDeploy:getSchematicsAgentDeploy
      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_deploy.
    AgentId string
    Agent ID to get the details of agent.
    Id string
    The unique identifier of the schematics_agent_deploy.
    agentId String
    Agent ID to get the details of agent.
    id String
    The unique identifier of the schematics_agent_deploy.
    agentId string
    Agent ID to get the details of agent.
    id string
    The unique identifier of the schematics_agent_deploy.
    agent_id str
    Agent ID to get the details of agent.
    id str
    The unique identifier of the schematics_agent_deploy.
    agentId String
    Agent ID to get the details of agent.
    id String
    The unique identifier of the schematics_agent_deploy.

    getSchematicsAgentDeploy Result

    The following output properties are available:

    AgentId string
    AgentVersion string
    (String) Agent version.
    Id string
    The unique identifier of the schematics_agent_deploy.
    IsRedeployed bool
    (Boolean) True, when the same version of the agent was redeployed.
    JobId string
    (String) Job Id.
    LogUrl string
    (String) URL to the full agent deployment job logs.
    StatusCode string
    (String) Final result of the agent deployment job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    StatusMessage string
    (String) The outcome of the agent deployment job, in a formatted log string.
    UpdatedAt string
    (String) The agent deploy job updation time.
    UpdatedBy string
    (String) Email address of user who ran the agent deploy job.
    AgentId string
    AgentVersion string
    (String) Agent version.
    Id string
    The unique identifier of the schematics_agent_deploy.
    IsRedeployed bool
    (Boolean) True, when the same version of the agent was redeployed.
    JobId string
    (String) Job Id.
    LogUrl string
    (String) URL to the full agent deployment job logs.
    StatusCode string
    (String) Final result of the agent deployment job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    StatusMessage string
    (String) The outcome of the agent deployment job, in a formatted log string.
    UpdatedAt string
    (String) The agent deploy job updation time.
    UpdatedBy string
    (String) Email address of user who ran the agent deploy job.
    agentId String
    agentVersion String
    (String) Agent version.
    id String
    The unique identifier of the schematics_agent_deploy.
    isRedeployed Boolean
    (Boolean) True, when the same version of the agent was redeployed.
    jobId String
    (String) Job Id.
    logUrl String
    (String) URL to the full agent deployment job logs.
    statusCode String
    (String) Final result of the agent deployment job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    statusMessage String
    (String) The outcome of the agent deployment job, in a formatted log string.
    updatedAt String
    (String) The agent deploy job updation time.
    updatedBy String
    (String) Email address of user who ran the agent deploy job.
    agentId string
    agentVersion string
    (String) Agent version.
    id string
    The unique identifier of the schematics_agent_deploy.
    isRedeployed boolean
    (Boolean) True, when the same version of the agent was redeployed.
    jobId string
    (String) Job Id.
    logUrl string
    (String) URL to the full agent deployment job logs.
    statusCode string
    (String) Final result of the agent deployment job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    statusMessage string
    (String) The outcome of the agent deployment job, in a formatted log string.
    updatedAt string
    (String) The agent deploy job updation time.
    updatedBy string
    (String) Email address of user who ran the agent deploy job.
    agent_id str
    agent_version str
    (String) Agent version.
    id str
    The unique identifier of the schematics_agent_deploy.
    is_redeployed bool
    (Boolean) True, when the same version of the agent was redeployed.
    job_id str
    (String) Job Id.
    log_url str
    (String) URL to the full agent deployment job logs.
    status_code str
    (String) Final result of the agent deployment job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    status_message str
    (String) The outcome of the agent deployment job, in a formatted log string.
    updated_at str
    (String) The agent deploy job updation time.
    updated_by str
    (String) Email address of user who ran the agent deploy job.
    agentId String
    agentVersion String
    (String) Agent version.
    id String
    The unique identifier of the schematics_agent_deploy.
    isRedeployed Boolean
    (Boolean) True, when the same version of the agent was redeployed.
    jobId String
    (String) Job Id.
    logUrl String
    (String) URL to the full agent deployment job logs.
    statusCode String
    (String) Final result of the agent deployment job.

    • Constraints: Allowable values are: pending, in-progress, success, failed.
    statusMessage String
    (String) The outcome of the agent deployment job, in a formatted log string.
    updatedAt String
    (String) The agent deploy job updation time.
    updatedBy String
    (String) Email address of user who ran the agent deploy 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