ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getEnSources
Explore with Pulumi AI
Provides a read-only data source for sources. 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 enSources = ibm.getEnSources({
instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
});
import pulumi
import pulumi_ibm as ibm
en_sources = ibm.get_en_sources(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"])
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.GetEnSources(ctx, &ibm.GetEnSourcesArgs{
InstanceGuid: ibm_resource_instance.En_terraform_test_resource.Guid,
}, 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 enSources = Ibm.GetEnSources.Invoke(new()
{
InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
});
});
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.GetEnSourcesArgs;
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 enSources = IbmFunctions.getEnSources(GetEnSourcesArgs.builder()
.instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
.build());
}
}
variables:
enSources:
fn::invoke:
function: ibm:getEnSources
arguments:
instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
Using getEnSources
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 getEnSources(args: GetEnSourcesArgs, opts?: InvokeOptions): Promise<GetEnSourcesResult>
function getEnSourcesOutput(args: GetEnSourcesOutputArgs, opts?: InvokeOptions): Output<GetEnSourcesResult>
def get_en_sources(id: Optional[str] = None,
instance_guid: Optional[str] = None,
search_key: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnSourcesResult
def get_en_sources_output(id: Optional[pulumi.Input[str]] = None,
instance_guid: Optional[pulumi.Input[str]] = None,
search_key: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnSourcesResult]
func GetEnSources(ctx *Context, args *GetEnSourcesArgs, opts ...InvokeOption) (*GetEnSourcesResult, error)
func GetEnSourcesOutput(ctx *Context, args *GetEnSourcesOutputArgs, opts ...InvokeOption) GetEnSourcesResultOutput
> Note: This function is named GetEnSources
in the Go SDK.
public static class GetEnSources
{
public static Task<GetEnSourcesResult> InvokeAsync(GetEnSourcesArgs args, InvokeOptions? opts = null)
public static Output<GetEnSourcesResult> Invoke(GetEnSourcesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnSourcesResult> getEnSources(GetEnSourcesArgs args, InvokeOptions options)
public static Output<GetEnSourcesResult> getEnSources(GetEnSourcesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getEnSources:getEnSources
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Id string
- (String) Source ID.
- Search
Key string - Filter the destinations by name or type.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Id string
- (String) Source ID.
- Search
Key string - Filter the destinations by name or type.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- id String
- (String) Source ID.
- search
Key String - Filter the destinations by name or type.
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- id string
- (String) Source ID.
- search
Key string - Filter the destinations by name or type.
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- id str
- (String) Source ID.
- search_
key str - Filter the destinations by name or type.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- id String
- (String) Source ID.
- search
Key String - Filter the destinations by name or type.
getEnSources Result
The following output properties are available:
- Id string
- (String) Source ID.
- Instance
Guid string - Sources
List<Get
En Sources Source> - (List) List of destinations.
- Total
Count double - (Integer) Total number of destinations.
- Search
Key string
- Id string
- (String) Source ID.
- Instance
Guid string - Sources
[]Get
En Sources Source - (List) List of destinations.
- Total
Count float64 - (Integer) Total number of destinations.
- Search
Key string
- id String
- (String) Source ID.
- instance
Guid String - sources
List<Get
En Sources Source> - (List) List of destinations.
- total
Count Double - (Integer) Total number of destinations.
- search
Key String
- id string
- (String) Source ID.
- instance
Guid string - sources
Get
En Sources Source[] - (List) List of destinations.
- total
Count number - (Integer) Total number of destinations.
- search
Key string
- id str
- (String) Source ID.
- instance_
guid str - sources
Sequence[Get
En Sources Source] - (List) List of destinations.
- total_
count float - (Integer) Total number of destinations.
- search_
key str
- id String
- (String) Source ID.
- instance
Guid String - sources List<Property Map>
- (List) List of destinations.
- total
Count Number - (Integer) Total number of destinations.
- search
Key String
Supporting Types
GetEnSourcesSource
- Description string
- (String) Source description.
- Enabled bool
- (bool) Source is enabled or not.
- Id string
- (String) Source ID.
- Name string
- (String) Source name.
- Topic
Count double - (Integer) Subscription count.
- Type string
- (String) source type api/IBM Cloud Monitoring/resource lifecycle events/ App Configuration/ Secrets Manager/ SCC.
- Updated
At string - (String) Lats updated time.
- Description string
- (String) Source description.
- Enabled bool
- (bool) Source is enabled or not.
- Id string
- (String) Source ID.
- Name string
- (String) Source name.
- Topic
Count float64 - (Integer) Subscription count.
- Type string
- (String) source type api/IBM Cloud Monitoring/resource lifecycle events/ App Configuration/ Secrets Manager/ SCC.
- Updated
At string - (String) Lats updated time.
- description String
- (String) Source description.
- enabled Boolean
- (bool) Source is enabled or not.
- id String
- (String) Source ID.
- name String
- (String) Source name.
- topic
Count Double - (Integer) Subscription count.
- type String
- (String) source type api/IBM Cloud Monitoring/resource lifecycle events/ App Configuration/ Secrets Manager/ SCC.
- updated
At String - (String) Lats updated time.
- description string
- (String) Source description.
- enabled boolean
- (bool) Source is enabled or not.
- id string
- (String) Source ID.
- name string
- (String) Source name.
- topic
Count number - (Integer) Subscription count.
- type string
- (String) source type api/IBM Cloud Monitoring/resource lifecycle events/ App Configuration/ Secrets Manager/ SCC.
- updated
At string - (String) Lats updated time.
- description str
- (String) Source description.
- enabled bool
- (bool) Source is enabled or not.
- id str
- (String) Source ID.
- name str
- (String) Source name.
- topic_
count float - (Integer) Subscription count.
- type str
- (String) source type api/IBM Cloud Monitoring/resource lifecycle events/ App Configuration/ Secrets Manager/ SCC.
- updated_
at str - (String) Lats updated time.
- description String
- (String) Source description.
- enabled Boolean
- (bool) Source is enabled or not.
- id String
- (String) Source ID.
- name String
- (String) Source name.
- topic
Count Number - (Integer) Subscription count.
- type String
- (String) source type api/IBM Cloud Monitoring/resource lifecycle events/ App Configuration/ Secrets Manager/ SCC.
- updated
At String - (String) Lats updated time.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.