ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getCmAccount
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a cm_account. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const cmAccount = ibm.getCmAccount({});
import pulumi
import pulumi_ibm as ibm
cm_account = ibm.get_cm_account()
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.LookupCmAccount(ctx, &ibm.LookupCmAccountArgs{}, 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 cmAccount = Ibm.GetCmAccount.Invoke();
});
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.GetCmAccountArgs;
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 cmAccount = IbmFunctions.getCmAccount();
}
}
variables:
cmAccount:
fn::invoke:
function: ibm:getCmAccount
arguments: {}
Using getCmAccount
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 getCmAccount(args: GetCmAccountArgs, opts?: InvokeOptions): Promise<GetCmAccountResult>
function getCmAccountOutput(args: GetCmAccountOutputArgs, opts?: InvokeOptions): Output<GetCmAccountResult>
def get_cm_account(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCmAccountResult
def get_cm_account_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCmAccountResult]
func LookupCmAccount(ctx *Context, args *LookupCmAccountArgs, opts ...InvokeOption) (*LookupCmAccountResult, error)
func LookupCmAccountOutput(ctx *Context, args *LookupCmAccountOutputArgs, opts ...InvokeOption) LookupCmAccountResultOutput
> Note: This function is named LookupCmAccount
in the Go SDK.
public static class GetCmAccount
{
public static Task<GetCmAccountResult> InvokeAsync(GetCmAccountArgs args, InvokeOptions? opts = null)
public static Output<GetCmAccountResult> Invoke(GetCmAccountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCmAccountResult> getCmAccount(GetCmAccountArgs args, InvokeOptions options)
public static Output<GetCmAccountResult> getCmAccount(GetCmAccountArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getCmAccount:getCmAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The unique identifier of the cm_account.
- Id string
- The unique identifier of the cm_account.
- id String
- The unique identifier of the cm_account.
- id string
- The unique identifier of the cm_account.
- id str
- The unique identifier of the cm_account.
- id String
- The unique identifier of the cm_account.
getCmAccount Result
The following output properties are available:
- Account
Filters List<GetCm Account Account Filter> - (List) Filters for account and catalog filters. Nested schema for account_filters:
- Hide
Ibm boolCloud Catalog - (Boolean) Hide the public catalog in this account.
- Id string
- The unique identifier of the cm_account.
- Region
Filter string - (String) Region filter string.
- Rev string
- (String) Cloudant revision.
- Account
Filters []GetCm Account Account Filter - (List) Filters for account and catalog filters. Nested schema for account_filters:
- Hide
Ibm boolCloud Catalog - (Boolean) Hide the public catalog in this account.
- Id string
- The unique identifier of the cm_account.
- Region
Filter string - (String) Region filter string.
- Rev string
- (String) Cloudant revision.
- account
Filters List<GetCm Account Account Filter> - (List) Filters for account and catalog filters. Nested schema for account_filters:
- hide
Ibm BooleanCloud Catalog - (Boolean) Hide the public catalog in this account.
- id String
- The unique identifier of the cm_account.
- region
Filter String - (String) Region filter string.
- rev String
- (String) Cloudant revision.
- account
Filters GetCm Account Account Filter[] - (List) Filters for account and catalog filters. Nested schema for account_filters:
- hide
Ibm booleanCloud Catalog - (Boolean) Hide the public catalog in this account.
- id string
- The unique identifier of the cm_account.
- region
Filter string - (String) Region filter string.
- rev string
- (String) Cloudant revision.
- account_
filters Sequence[GetCm Account Account Filter] - (List) Filters for account and catalog filters. Nested schema for account_filters:
- hide_
ibm_ boolcloud_ catalog - (Boolean) Hide the public catalog in this account.
- id str
- The unique identifier of the cm_account.
- region_
filter str - (String) Region filter string.
- rev str
- (String) Cloudant revision.
- account
Filters List<Property Map> - (List) Filters for account and catalog filters. Nested schema for account_filters:
- hide
Ibm BooleanCloud Catalog - (Boolean) Hide the public catalog in this account.
- id String
- The unique identifier of the cm_account.
- region
Filter String - (String) Region filter string.
- rev String
- (String) Cloudant revision.
Supporting Types
GetCmAccountAccountFilter
- Category
Filters List<GetCm Account Account Filter Category Filter> - (List) Filter against offering properties. Nested schema for category_filters:
- Id
Filters List<GetCm Account Account Filter Id Filter> - (List) Filter on offering ID's. There is an include filter and an exclule filter. Both can be set. Nested schema for id_filters:
- Include
All bool - (Boolean) > true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.
- Category
Filters []GetCm Account Account Filter Category Filter - (List) Filter against offering properties. Nested schema for category_filters:
- Id
Filters []GetCm Account Account Filter Id Filter - (List) Filter on offering ID's. There is an include filter and an exclule filter. Both can be set. Nested schema for id_filters:
- Include
All bool - (Boolean) > true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.
- category
Filters List<GetCm Account Account Filter Category Filter> - (List) Filter against offering properties. Nested schema for category_filters:
- id
Filters List<GetCm Account Account Filter Id Filter> - (List) Filter on offering ID's. There is an include filter and an exclule filter. Both can be set. Nested schema for id_filters:
- include
All Boolean - (Boolean) > true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.
- category
Filters GetCm Account Account Filter Category Filter[] - (List) Filter against offering properties. Nested schema for category_filters:
- id
Filters GetCm Account Account Filter Id Filter[] - (List) Filter on offering ID's. There is an include filter and an exclule filter. Both can be set. Nested schema for id_filters:
- include
All boolean - (Boolean) > true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.
- category_
filters Sequence[GetCm Account Account Filter Category Filter] - (List) Filter against offering properties. Nested schema for category_filters:
- id_
filters Sequence[GetCm Account Account Filter Id Filter] - (List) Filter on offering ID's. There is an include filter and an exclule filter. Both can be set. Nested schema for id_filters:
- include_
all bool - (Boolean) > true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.
- category
Filters List<Property Map> - (List) Filter against offering properties. Nested schema for category_filters:
- id
Filters List<Property Map> - (List) Filter on offering ID's. There is an include filter and an exclule filter. Both can be set. Nested schema for id_filters:
- include
All Boolean - (Boolean) > true - Include all of the public catalog when filtering. Further settings will specifically exclude some offerings. false - Exclude all of the public catalog when filtering. Further settings will specifically include some offerings.
GetCmAccountAccountFilterCategoryFilter
- Category
Name string - (String) Name of the category.
- Filters
List<Get
Cm Account Account Filter Category Filter Filter> - (List) Filter terms related to the category. Nested schema for filter:
- Include bool
- (List) Offering filter terms. Nested schema for include:
- Category
Name string - (String) Name of the category.
- Filters
[]Get
Cm Account Account Filter Category Filter Filter - (List) Filter terms related to the category. Nested schema for filter:
- Include bool
- (List) Offering filter terms. Nested schema for include:
- category
Name String - (String) Name of the category.
- filters
List<Get
Cm Account Account Filter Category Filter Filter> - (List) Filter terms related to the category. Nested schema for filter:
- include Boolean
- (List) Offering filter terms. Nested schema for include:
- category
Name string - (String) Name of the category.
- filters
Get
Cm Account Account Filter Category Filter Filter[] - (List) Filter terms related to the category. Nested schema for filter:
- include boolean
- (List) Offering filter terms. Nested schema for include:
- category_
name str - (String) Name of the category.
- filters
Sequence[Get
Cm Account Account Filter Category Filter Filter] - (List) Filter terms related to the category. Nested schema for filter:
- include bool
- (List) Offering filter terms. Nested schema for include:
- category
Name String - (String) Name of the category.
- filters List<Property Map>
- (List) Filter terms related to the category. Nested schema for filter:
- include Boolean
- (List) Offering filter terms. Nested schema for include:
GetCmAccountAccountFilterCategoryFilterFilter
- Filter
Terms List<string> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- Filter
Terms []string - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms List<String> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms string[] - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter_
terms Sequence[str] - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms List<String> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
GetCmAccountAccountFilterIdFilter
- Excludes
List<Get
Cm Account Account Filter Id Filter Exclude> - (List) Offering filter terms. Nested schema for exclude:
- Includes
List<Get
Cm Account Account Filter Id Filter Include> - (List) Offering filter terms. Nested schema for include:
- Excludes
[]Get
Cm Account Account Filter Id Filter Exclude - (List) Offering filter terms. Nested schema for exclude:
- Includes
[]Get
Cm Account Account Filter Id Filter Include - (List) Offering filter terms. Nested schema for include:
- excludes
List<Get
Cm Account Account Filter Id Filter Exclude> - (List) Offering filter terms. Nested schema for exclude:
- includes
List<Get
Cm Account Account Filter Id Filter Include> - (List) Offering filter terms. Nested schema for include:
- excludes
Get
Cm Account Account Filter Id Filter Exclude[] - (List) Offering filter terms. Nested schema for exclude:
- includes
Get
Cm Account Account Filter Id Filter Include[] - (List) Offering filter terms. Nested schema for include:
- excludes
Sequence[Get
Cm Account Account Filter Id Filter Exclude] - (List) Offering filter terms. Nested schema for exclude:
- includes
Sequence[Get
Cm Account Account Filter Id Filter Include] - (List) Offering filter terms. Nested schema for include:
- excludes List<Property Map>
- (List) Offering filter terms. Nested schema for exclude:
- includes List<Property Map>
- (List) Offering filter terms. Nested schema for include:
GetCmAccountAccountFilterIdFilterExclude
- Filter
Terms List<string> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- Filter
Terms []string - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms List<String> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms string[] - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter_
terms Sequence[str] - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms List<String> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
GetCmAccountAccountFilterIdFilterInclude
- Filter
Terms List<string> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- Filter
Terms []string - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms List<String> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms string[] - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter_
terms Sequence[str] - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
- filter
Terms List<String> - (List) List of values to match against. If include is true, then if the offering has one of the values then the offering is included. If include is false, then if the offering has one of the values then the offering is excluded.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.