ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSchematicsAgents
Explore with Pulumi AI
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 dictionary
The following arguments are supported:
getSchematicsAgents Result
The following output properties are available:
- Agents
List<Get
Schematics 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.
- Total
Count double - (Integer) The total number of records.
- Name string
- (String) The name of the agent.
- Agents
[]Get
Schematics 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.
- Total
Count float64 - (Integer) The total number of records.
- Name string
- (String) The name of the agent.
- agents
List<Get
Schematics 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.
- total
Count Double - (Integer) The total number of records.
- name String
- (String) The name of the agent.
- agents
Get
Schematics 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.
- total
Count number - (Integer) The total number of records.
- name string
- (String) The name of the agent.
- agents
Sequence[Get
Schematics 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.
- total
Count Number - (Integer) The total number of records.
- name String
- (String) The name of the agent.
Supporting Types
GetSchematicsAgentsAgent
- Agent
Crn string - (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- Agent
Location string - (String) The location where agent is deployed in the user environment.
- Connection
States 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).
- Profile
Id string - (String) The IAM trusted profile id, used by the Agent instance.
- Registered
At string - (String) The Agent registration date-time.
- Registered
By string - (String) The email address of an user who registered the Agent.
- Resource
Group string - (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- System
States List<GetSchematics Agents Agent System State> - (List) Computed state of the agent. Nested scheme for system_state:
- List<string>
- (List) Tags for the agent.
- Updated
At string - (String) The Agent registration updation time.
- Updated
By string - (String) Email address of user who updated the Agent registration.
- User
States List<GetSchematics Agents Agent User State> - (List) User defined status of the agent. Nested scheme for user_state:
- Agent
Crn string - (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- Agent
Location string - (String) The location where agent is deployed in the user environment.
- Connection
States []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).
- Profile
Id string - (String) The IAM trusted profile id, used by the Agent instance.
- Registered
At string - (String) The Agent registration date-time.
- Registered
By string - (String) The email address of an user who registered the Agent.
- Resource
Group string - (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- System
States []GetSchematics Agents Agent System State - (List) Computed state of the agent. Nested scheme for system_state:
- []string
- (List) Tags for the agent.
- Updated
At string - (String) The Agent registration updation time.
- Updated
By string - (String) Email address of user who updated the Agent registration.
- User
States []GetSchematics Agents Agent User State - (List) User defined status of the agent. Nested scheme for user_state:
- agent
Crn String - (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- agent
Location String - (String) The location where agent is deployed in the user environment.
- connection
States 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).
- profile
Id String - (String) The IAM trusted profile id, used by the Agent instance.
- registered
At String - (String) The Agent registration date-time.
- registered
By String - (String) The email address of an user who registered the Agent.
- resource
Group String - (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- system
States List<GetSchematics Agents Agent System State> - (List) Computed state of the agent. Nested scheme for system_state:
- List<String>
- (List) Tags for the agent.
- updated
At String - (String) The Agent registration updation time.
- updated
By String - (String) Email address of user who updated the Agent registration.
- user
States List<GetSchematics Agents Agent User State> - (List) User defined status of the agent. Nested scheme for user_state:
- agent
Crn string - (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- agent
Location string - (String) The location where agent is deployed in the user environment.
- connection
States 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).
- profile
Id string - (String) The IAM trusted profile id, used by the Agent instance.
- registered
At string - (String) The Agent registration date-time.
- registered
By string - (String) The email address of an user who registered the Agent.
- resource
Group string - (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- system
States GetSchematics Agents Agent System State[] - (List) Computed state of the agent. Nested scheme for system_state:
- string[]
- (List) Tags for the agent.
- updated
At string - (String) The Agent registration updation time.
- updated
By string - (String) Email address of user who updated the Agent registration.
- user
States 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:
- agent
Crn String - (String) The Agent crn, obtained from the Schematics Agent deployment configuration.
- agent
Location String - (String) The location where agent is deployed in the user environment.
- connection
States 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).
- profile
Id String - (String) The IAM trusted profile id, used by the Agent instance.
- registered
At String - (String) The Agent registration date-time.
- registered
By String - (String) The email address of an user who registered the Agent.
- resource
Group String - (String) The resource-group name for the agent. By default, Agent will be registered in Default Resource Group.
- system
States List<Property Map> - (List) Computed state of the agent. Nested scheme for system_state:
- List<String>
- (List) Tags for the agent.
- updated
At String - (String) The Agent registration updation time.
- updated
By String - (String) Email address of user who updated the Agent registration.
- user
States 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 *
enable
Agent is enabled by the user. *disable
Agent is disbaled by the user.- Constraints: Allowable values are:
enable
,disable
.
- Constraints: Allowable values are:
GetSchematicsAgentsAgentSystemState
GetSchematicsAgentsAgentUserState
- Set
At string - (String) When the User who set the state of the Object.
- Set
By string - (String) Name of the User who set the state of the Object.
- State string
- (String) User-defined states *
enable
Agent is enabled by the user. *disable
Agent is disbaled by the user.- Constraints: Allowable values are:
enable
,disable
.
- Constraints: Allowable values are:
- Set
At string - (String) When the User who set the state of the Object.
- Set
By string - (String) Name of the User who set the state of the Object.
- State string
- (String) User-defined states *
enable
Agent is enabled by the user. *disable
Agent is disbaled by the user.- Constraints: Allowable values are:
enable
,disable
.
- Constraints: Allowable values are:
- set
At String - (String) When the User who set the state of the Object.
- set
By String - (String) Name of the User who set the state of the Object.
- state String
- (String) User-defined states *
enable
Agent is enabled by the user. *disable
Agent is disbaled by the user.- Constraints: Allowable values are:
enable
,disable
.
- Constraints: Allowable values are:
- set
At string - (String) When the User who set the state of the Object.
- set
By string - (String) Name of the User who set the state of the Object.
- state string
- (String) User-defined states *
enable
Agent is enabled by the user. *disable
Agent 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 *
enable
Agent is enabled by the user. *disable
Agent is disbaled by the user.- Constraints: Allowable values are:
enable
,disable
.
- Constraints: Allowable values are:
- set
At String - (String) When the User who set the state of the Object.
- set
By String - (String) Name of the User who set the state of the Object.
- state String
- (String) User-defined states *
enable
Agent is enabled by the user. *disable
Agent 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
ibm
Terraform Provider.