ibm 1.85.0-beta0 published on Wednesday, Oct 29, 2025 by ibm-cloud
ibm.getSchematicsAgents
Provides a read-only data source for schematics_agents. 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 schematicsAgents = ibm.getSchematicsAgents({
    name: "MyDevAgent",
});
import pulumi
import pulumi_ibm as ibm
schematics_agents = ibm.get_schematics_agents(name="MyDevAgent")
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.GetSchematicsAgents(ctx, &ibm.GetSchematicsAgentsArgs{
			Name: pulumi.StringRef("MyDevAgent"),
		}, 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 schematicsAgents = Ibm.GetSchematicsAgents.Invoke(new()
    {
        Name = "MyDevAgent",
    });
});
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.GetSchematicsAgentsArgs;
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 schematicsAgents = IbmFunctions.getSchematicsAgents(GetSchematicsAgentsArgs.builder()
            .name("MyDevAgent")
            .build());
    }
}
variables:
  schematicsAgents:
    fn::invoke:
      function: ibm:getSchematicsAgents
      arguments:
        name: MyDevAgent
Using getSchematicsAgents
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 getSchematicsAgents(args: GetSchematicsAgentsArgs, opts?: InvokeOptions): Promise<GetSchematicsAgentsResult>
function getSchematicsAgentsOutput(args: GetSchematicsAgentsOutputArgs, opts?: InvokeOptions): Output<GetSchematicsAgentsResult>def get_schematics_agents(id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSchematicsAgentsResult
def get_schematics_agents_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSchematicsAgentsResult]func GetSchematicsAgents(ctx *Context, args *GetSchematicsAgentsArgs, opts ...InvokeOption) (*GetSchematicsAgentsResult, error)
func GetSchematicsAgentsOutput(ctx *Context, args *GetSchematicsAgentsOutputArgs, opts ...InvokeOption) GetSchematicsAgentsResultOutput> Note: This function is named GetSchematicsAgents in the Go SDK.
public static class GetSchematicsAgents 
{
    public static Task<GetSchematicsAgentsResult> InvokeAsync(GetSchematicsAgentsArgs args, InvokeOptions? opts = null)
    public static Output<GetSchematicsAgentsResult> Invoke(GetSchematicsAgentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchematicsAgentsResult> getSchematicsAgents(GetSchematicsAgentsArgs args, InvokeOptions options)
public static Output<GetSchematicsAgentsResult> getSchematicsAgents(GetSchematicsAgentsArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getSchematicsAgents:getSchematicsAgents
  arguments:
    # arguments dictionaryThe following arguments are supported:
getSchematicsAgents Result
The following output properties are available:
- Agents
List<GetSchematics Agents Agent> 
- (List) The list of agents in the account. Nested scheme for agents:
- Id string
- (String) The Agent registration id.
- Limit double
- (Integer) The number of records returned.
- Offset double
- (Integer) The skipped number of records.
- TotalCount double
- (Integer) The total number of records.
- Name string
- (String) The name of the agent.
- Agents
[]GetSchematics Agents Agent 
- (List) The list of agents in the account. Nested scheme for agents:
- Id string
- (String) The Agent registration id.
- Limit float64
- (Integer) The number of records returned.
- Offset float64
- (Integer) The skipped number of records.
- TotalCount float64
- (Integer) The total number of records.
- Name string
- (String) The name of the agent.
- agents
List<GetSchematics Agents Agent> 
- (List) The list of agents in the account. Nested scheme for agents:
- id String
- (String) The Agent registration id.
- limit Double
- (Integer) The number of records returned.
- offset Double
- (Integer) The skipped number of records.
- totalCount Double
- (Integer) The total number of records.
- name String
- (String) The name of the agent.
- agents
GetSchematics Agents Agent[] 
- (List) The list of agents in the account. Nested scheme for agents:
- id string
- (String) The Agent registration id.
- limit number
- (Integer) The number of records returned.
- offset number
- (Integer) The skipped number of records.
- totalCount number
- (Integer) The total number of records.
- name string
- (String) The name of the agent.
- agents
Sequence[GetSchematics Agents Agent] 
- (List) The list of agents in the account. Nested scheme for agents:
- id str
- (String) The Agent registration id.
- limit float
- (Integer) The number of records returned.
- offset float
- (Integer) The skipped number of records.
- total_count float
- (Integer) The total number of records.
- name str
- (String) The name of the agent.
- agents List<Property Map>
- (List) The list of agents in the account. Nested scheme for agents:
- id String
- (String) The Agent registration id.
- limit Number
- (Integer) The number of records returned.
- offset Number
- (Integer) The skipped number of records.
- totalCount Number
- (Integer) The total number of records.
- name String
- (String) The name of the agent.
Supporting Types
GetSchematicsAgentsAgent   
- AgentCrn string
- (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- AgentLocation string
- (String) The location where agent is deployed in the user environment.
- ConnectionStates List<GetSchematics Agents Agent Connection State> 
- (List) Connection status of the agent. Nested scheme for connection_state:
- Description string
- (String) Agent description.
- Id string
- (String) The Agent registration id.
- Location string
- (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.- Constraints: Allowable values are: us-south,us-east,eu-gb,eu-de.
 
- Constraints: Allowable values are: 
- Name string
- The name of the agent (must be unique, for an account).
- ProfileId string
- (String) The IAM trusted profile id, used by the Agent instance.
- RegisteredAt string
- (String) The Agent registration date-time.
- RegisteredBy string
- (String) The email address of an user who registered the Agent.
- ResourceGroup string
- (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- SystemStates List<GetSchematics Agents Agent System State> 
- (List) Computed state of the agent. Nested scheme for system_state:
- List<string>
- (List) Tags for the agent.
- UpdatedAt string
- (String) The Agent registration updation time.
- UpdatedBy string
- (String) Email address of user who updated the Agent registration.
- UserStates List<GetSchematics Agents Agent User State> 
- (List) User defined status of the agent. Nested scheme for user_state:
- AgentCrn string
- (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- AgentLocation string
- (String) The location where agent is deployed in the user environment.
- ConnectionStates []GetSchematics Agents Agent Connection State 
- (List) Connection status of the agent. Nested scheme for connection_state:
- Description string
- (String) Agent description.
- Id string
- (String) The Agent registration id.
- Location string
- (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.- Constraints: Allowable values are: us-south,us-east,eu-gb,eu-de.
 
- Constraints: Allowable values are: 
- Name string
- The name of the agent (must be unique, for an account).
- ProfileId string
- (String) The IAM trusted profile id, used by the Agent instance.
- RegisteredAt string
- (String) The Agent registration date-time.
- RegisteredBy string
- (String) The email address of an user who registered the Agent.
- ResourceGroup string
- (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- SystemStates []GetSchematics Agents Agent System State 
- (List) Computed state of the agent. Nested scheme for system_state:
- []string
- (List) Tags for the agent.
- UpdatedAt string
- (String) The Agent registration updation time.
- UpdatedBy string
- (String) Email address of user who updated the Agent registration.
- UserStates []GetSchematics Agents Agent User State 
- (List) User defined status of the agent. Nested scheme for user_state:
- agentCrn String
- (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- agentLocation String
- (String) The location where agent is deployed in the user environment.
- connectionStates List<GetSchematics Agents Agent Connection State> 
- (List) Connection status of the agent. Nested scheme for connection_state:
- description String
- (String) Agent description.
- id String
- (String) The Agent registration id.
- location String
- (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.- Constraints: Allowable values are: us-south,us-east,eu-gb,eu-de.
 
- Constraints: Allowable values are: 
- name String
- The name of the agent (must be unique, for an account).
- profileId String
- (String) The IAM trusted profile id, used by the Agent instance.
- registeredAt String
- (String) The Agent registration date-time.
- registeredBy String
- (String) The email address of an user who registered the Agent.
- resourceGroup String
- (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- systemStates List<GetSchematics Agents Agent System State> 
- (List) Computed state of the agent. Nested scheme for system_state:
- List<String>
- (List) Tags for the agent.
- updatedAt String
- (String) The Agent registration updation time.
- updatedBy String
- (String) Email address of user who updated the Agent registration.
- userStates List<GetSchematics Agents Agent User State> 
- (List) User defined status of the agent. Nested scheme for user_state:
- agentCrn string
- (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- agentLocation string
- (String) The location where agent is deployed in the user environment.
- connectionStates GetSchematics Agents Agent Connection State[] 
- (List) Connection status of the agent. Nested scheme for connection_state:
- description string
- (String) Agent description.
- id string
- (String) The Agent registration id.
- location string
- (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.- Constraints: Allowable values are: us-south,us-east,eu-gb,eu-de.
 
- Constraints: Allowable values are: 
- name string
- The name of the agent (must be unique, for an account).
- profileId string
- (String) The IAM trusted profile id, used by the Agent instance.
- registeredAt string
- (String) The Agent registration date-time.
- registeredBy string
- (String) The email address of an user who registered the Agent.
- resourceGroup string
- (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- systemStates GetSchematics Agents Agent System State[] 
- (List) Computed state of the agent. Nested scheme for system_state:
- string[]
- (List) Tags for the agent.
- updatedAt string
- (String) The Agent registration updation time.
- updatedBy string
- (String) Email address of user who updated the Agent registration.
- userStates GetSchematics Agents Agent User State[] 
- (List) User defined status of the agent. Nested scheme for user_state:
- agent_crn str
- (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- agent_location str
- (String) The location where agent is deployed in the user environment.
- connection_states Sequence[GetSchematics Agents Agent Connection State] 
- (List) Connection status of the agent. Nested scheme for connection_state:
- description str
- (String) Agent description.
- id str
- (String) The Agent registration id.
- location str
- (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.- Constraints: Allowable values are: us-south,us-east,eu-gb,eu-de.
 
- Constraints: Allowable values are: 
- name str
- The name of the agent (must be unique, for an account).
- profile_id str
- (String) The IAM trusted profile id, used by the Agent instance.
- registered_at str
- (String) The Agent registration date-time.
- registered_by str
- (String) The email address of an user who registered the Agent.
- resource_group str
- (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- system_states Sequence[GetSchematics Agents Agent System State] 
- (List) Computed state of the agent. Nested scheme for system_state:
- Sequence[str]
- (List) Tags for the agent.
- updated_at str
- (String) The Agent registration updation time.
- updated_by str
- (String) Email address of user who updated the Agent registration.
- user_states Sequence[GetSchematics Agents Agent User State] 
- (List) User defined status of the agent. Nested scheme for user_state:
- agentCrn String
- (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- agentLocation String
- (String) The location where agent is deployed in the user environment.
- connectionStates List<Property Map>
- (List) Connection status of the agent. Nested scheme for connection_state:
- description String
- (String) Agent description.
- id String
- (String) The Agent registration id.
- location String
- (String) List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.- Constraints: Allowable values are: us-south,us-east,eu-gb,eu-de.
 
- Constraints: Allowable values are: 
- name String
- The name of the agent (must be unique, for an account).
- profileId String
- (String) The IAM trusted profile id, used by the Agent instance.
- registeredAt String
- (String) The Agent registration date-time.
- registeredBy String
- (String) The email address of an user who registered the Agent.
- resourceGroup String
- (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- systemStates List<Property Map>
- (List) Computed state of the agent. Nested scheme for system_state:
- List<String>
- (List) Tags for the agent.
- updatedAt String
- (String) The Agent registration updation time.
- updatedBy String
- (String) Email address of user who updated the Agent registration.
- userStates List<Property Map>
- (List) User defined status of the agent. Nested scheme for user_state:
GetSchematicsAgentsAgentConnectionState     
- checked_at str
- (String) When the connection state is modified.
- state str
- (String) User-defined states * enableAgent is enabled by the user. *disableAgent is disbaled by the user.- Constraints: Allowable values are: enable,disable.
 
- Constraints: Allowable values are: 
GetSchematicsAgentsAgentSystemState     
GetSchematicsAgentsAgentUserState     
- SetAt string
- (String) When the User who set the state of the Object.
- SetBy string
- (String) Name of the User who set the state of the Object.
- State string
- (String) User-defined states * enableAgent is enabled by the user. *disableAgent is disbaled by the user.- Constraints: Allowable values are: enable,disable.
 
- Constraints: Allowable values are: 
- SetAt string
- (String) When the User who set the state of the Object.
- SetBy string
- (String) Name of the User who set the state of the Object.
- State string
- (String) User-defined states * enableAgent is enabled by the user. *disableAgent is disbaled by the user.- Constraints: Allowable values are: enable,disable.
 
- Constraints: Allowable values are: 
- setAt String
- (String) When the User who set the state of the Object.
- setBy String
- (String) Name of the User who set the state of the Object.
- state String
- (String) User-defined states * enableAgent is enabled by the user. *disableAgent is disbaled by the user.- Constraints: Allowable values are: enable,disable.
 
- Constraints: Allowable values are: 
- setAt string
- (String) When the User who set the state of the Object.
- setBy string
- (String) Name of the User who set the state of the Object.
- state string
- (String) User-defined states * enableAgent is enabled by the user. *disableAgent is disbaled by the user.- Constraints: Allowable values are: enable,disable.
 
- Constraints: Allowable values are: 
- set_at str
- (String) When the User who set the state of the Object.
- set_by str
- (String) Name of the User who set the state of the Object.
- state str
- (String) User-defined states * enableAgent is enabled by the user. *disableAgent is disbaled by the user.- Constraints: Allowable values are: enable,disable.
 
- Constraints: Allowable values are: 
- setAt String
- (String) When the User who set the state of the Object.
- setBy String
- (String) Name of the User who set the state of the Object.
- state String
- (String) User-defined states * enableAgent is enabled by the user. *disableAgent is disbaled by the user.- Constraints: Allowable values are: enable,disable.
 
- Constraints: Allowable values are: 
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the ibmTerraform Provider.
