ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSchematicsResourceQuery
Explore with Pulumi AI
Retrieve information about the Schematics resource query. For more information, about Schematics action resource query, see Supported resource queries.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const schematicsResourceQuery = ibm.getSchematicsResourceQuery({
queryId: "query_id",
});
import pulumi
import pulumi_ibm as ibm
schematics_resource_query = ibm.get_schematics_resource_query(query_id="query_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.LookupSchematicsResourceQuery(ctx, &ibm.LookupSchematicsResourceQueryArgs{
QueryId: "query_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 schematicsResourceQuery = Ibm.GetSchematicsResourceQuery.Invoke(new()
{
QueryId = "query_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.GetSchematicsResourceQueryArgs;
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 schematicsResourceQuery = IbmFunctions.getSchematicsResourceQuery(GetSchematicsResourceQueryArgs.builder()
.queryId("query_id")
.build());
}
}
variables:
schematicsResourceQuery:
fn::invoke:
function: ibm:getSchematicsResourceQuery
arguments:
queryId: query_id
Using getSchematicsResourceQuery
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 getSchematicsResourceQuery(args: GetSchematicsResourceQueryArgs, opts?: InvokeOptions): Promise<GetSchematicsResourceQueryResult>
function getSchematicsResourceQueryOutput(args: GetSchematicsResourceQueryOutputArgs, opts?: InvokeOptions): Output<GetSchematicsResourceQueryResult>
def get_schematics_resource_query(location: Optional[str] = None,
query_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchematicsResourceQueryResult
def get_schematics_resource_query_output(location: Optional[pulumi.Input[str]] = None,
query_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchematicsResourceQueryResult]
func LookupSchematicsResourceQuery(ctx *Context, args *LookupSchematicsResourceQueryArgs, opts ...InvokeOption) (*LookupSchematicsResourceQueryResult, error)
func LookupSchematicsResourceQueryOutput(ctx *Context, args *LookupSchematicsResourceQueryOutputArgs, opts ...InvokeOption) LookupSchematicsResourceQueryResultOutput
> Note: This function is named LookupSchematicsResourceQuery
in the Go SDK.
public static class GetSchematicsResourceQuery
{
public static Task<GetSchematicsResourceQueryResult> InvokeAsync(GetSchematicsResourceQueryArgs args, InvokeOptions? opts = null)
public static Output<GetSchematicsResourceQueryResult> Invoke(GetSchematicsResourceQueryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchematicsResourceQueryResult> getSchematicsResourceQuery(GetSchematicsResourceQueryArgs args, InvokeOptions options)
public static Output<GetSchematicsResourceQueryResult> getSchematicsResourceQuery(GetSchematicsResourceQueryArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSchematicsResourceQuery:getSchematicsResourceQuery
arguments:
# arguments dictionary
The following arguments are supported:
- Query
Id string - Resource query ID. Use
GET /v2/resource_query
API to look up the Resource query definition Ids in your IBM Cloud account. - Location string
- Location 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
- Query
Id string - Resource query ID. Use
GET /v2/resource_query
API to look up the Resource query definition Ids in your IBM Cloud account. - Location string
- Location 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
- query
Id String - Resource query ID. Use
GET /v2/resource_query
API to look up the Resource query definition Ids in your IBM Cloud account. - location String
- Location 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
- query
Id string - Resource query ID. Use
GET /v2/resource_query
API to look up the Resource query definition Ids in your IBM Cloud account. - location string
- Location 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
- query_
id str - Resource query ID. Use
GET /v2/resource_query
API to look up the Resource query definition Ids in your IBM Cloud account. - location str
- Location 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
- query
Id String - Resource query ID. Use
GET /v2/resource_query
API to look up the Resource query definition Ids in your IBM Cloud account. - location String
- Location 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
getSchematicsResourceQuery Result
The following output properties are available:
- Created
At string - (String) Resource query creation time.
- Created
By string - (String) Email address of user who created the Resource query.
- Id string
- (String) Resource Query ID.
- Name string
- (String) Name of the resource query param.
- Queries
List<Get
Schematics Resource Query Query> - (List)
- Query
Id string - Type string
- (String) Resource type. Supported values are
cluster
,vsi
,icd
,vpc
.- Constraints: Allowable values are:
vsi
- Constraints: Allowable values are:
- Updated
At string - (String) Resource query updation time.
- Updated
By string - (String) Email address of user who updated the Resource query.
- Location string
- Created
At string - (String) Resource query creation time.
- Created
By string - (String) Email address of user who created the Resource query.
- Id string
- (String) Resource Query ID.
- Name string
- (String) Name of the resource query param.
- Queries
[]Get
Schematics Resource Query Query - (List)
- Query
Id string - Type string
- (String) Resource type. Supported values are
cluster
,vsi
,icd
,vpc
.- Constraints: Allowable values are:
vsi
- Constraints: Allowable values are:
- Updated
At string - (String) Resource query updation time.
- Updated
By string - (String) Email address of user who updated the Resource query.
- Location string
- created
At String - (String) Resource query creation time.
- created
By String - (String) Email address of user who created the Resource query.
- id String
- (String) Resource Query ID.
- name String
- (String) Name of the resource query param.
- queries
List<Get
Schematics Resource Query Query> - (List)
- query
Id String - type String
- (String) Resource type. Supported values are
cluster
,vsi
,icd
,vpc
.- Constraints: Allowable values are:
vsi
- Constraints: Allowable values are:
- updated
At String - (String) Resource query updation time.
- updated
By String - (String) Email address of user who updated the Resource query.
- location String
- created
At string - (String) Resource query creation time.
- created
By string - (String) Email address of user who created the Resource query.
- id string
- (String) Resource Query ID.
- name string
- (String) Name of the resource query param.
- queries
Get
Schematics Resource Query Query[] - (List)
- query
Id string - type string
- (String) Resource type. Supported values are
cluster
,vsi
,icd
,vpc
.- Constraints: Allowable values are:
vsi
- Constraints: Allowable values are:
- updated
At string - (String) Resource query updation time.
- updated
By string - (String) Email address of user who updated the Resource query.
- location string
- created_
at str - (String) Resource query creation time.
- created_
by str - (String) Email address of user who created the Resource query.
- id str
- (String) Resource Query ID.
- name str
- (String) Name of the resource query param.
- queries
Sequence[Get
Schematics Resource Query Query] - (List)
- query_
id str - type str
- (String) Resource type. Supported values are
cluster
,vsi
,icd
,vpc
.- Constraints: Allowable values are:
vsi
- Constraints: Allowable values are:
- updated_
at str - (String) Resource query updation time.
- updated_
by str - (String) Email address of user who updated the Resource query.
- location str
- created
At String - (String) Resource query creation time.
- created
By String - (String) Email address of user who created the Resource query.
- id String
- (String) Resource Query ID.
- name String
- (String) Name of the resource query param.
- queries List<Property Map>
- (List)
- query
Id String - type String
- (String) Resource type. Supported values are
cluster
,vsi
,icd
,vpc
.- Constraints: Allowable values are:
vsi
- Constraints: Allowable values are:
- updated
At String - (String) Resource query updation time.
- updated
By String - (String) Email address of user who updated the Resource query.
- location String
Supporting Types
GetSchematicsResourceQueryQuery
- Query
Conditions List<GetSchematics Resource Query Query Query Condition> - (List)
- Query
Selects List<string> - (List) List of query selection parameters.
- Query
Type string - (String) Type of the query such as
workspaces
.- Constraints: Allowable values are:
workspaces
- Constraints: Allowable values are:
- Query
Conditions []GetSchematics Resource Query Query Query Condition - (List)
- Query
Selects []string - (List) List of query selection parameters.
- Query
Type string - (String) Type of the query such as
workspaces
.- Constraints: Allowable values are:
workspaces
- Constraints: Allowable values are:
- query
Conditions List<GetSchematics Resource Query Query Query Condition> - (List)
- query
Selects List<String> - (List) List of query selection parameters.
- query
Type String - (String) Type of the query such as
workspaces
.- Constraints: Allowable values are:
workspaces
- Constraints: Allowable values are:
- query
Conditions GetSchematics Resource Query Query Query Condition[] - (List)
- query
Selects string[] - (List) List of query selection parameters.
- query
Type string - (String) Type of the query such as
workspaces
.- Constraints: Allowable values are:
workspaces
- Constraints: Allowable values are:
- query_
conditions Sequence[GetSchematics Resource Query Query Query Condition] - (List)
- query_
selects Sequence[str] - (List) List of query selection parameters.
- query_
type str - (String) Type of the query such as
workspaces
.- Constraints: Allowable values are:
workspaces
- Constraints: Allowable values are:
- query
Conditions List<Property Map> - (List)
- query
Selects List<String> - (List) List of query selection parameters.
- query
Type String - (String) Type of the query such as
workspaces
.- Constraints: Allowable values are:
workspaces
- Constraints: Allowable values are:
GetSchematicsResourceQueryQueryQueryCondition
- Description string
- (String) Description of resource query param variable.
- Name string
- (String) Name of the resource query param.
- Value string
- (String) Value of the resource query param.
- Description string
- (String) Description of resource query param variable.
- Name string
- (String) Name of the resource query param.
- Value string
- (String) Value of the resource query param.
- description String
- (String) Description of resource query param variable.
- name String
- (String) Name of the resource query param.
- value String
- (String) Value of the resource query param.
- description string
- (String) Description of resource query param variable.
- name string
- (String) Name of the resource query param.
- value string
- (String) Value of the resource query param.
- description str
- (String) Description of resource query param variable.
- name str
- (String) Name of the resource query param.
- value str
- (String) Value of the resource query param.
- description String
- (String) Description of resource query param variable.
- name String
- (String) Name of the resource query param.
- value String
- (String) Value of the resource query param.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.