1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. arms
  5. getIntegrationExporters
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.arms.getIntegrationExporters

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the Arms Integration Exporters of the current Alibaba Cloud user.

    NOTE: Available in v1.203.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.arms.getIntegrationExporters({
        ids: ["example_id"],
        clusterId: "your_cluster_id",
        integrationType: "kafka",
    });
    export const armsIntegrationExportersId1 = ids.then(ids => ids.integrationExporters?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.arms.get_integration_exporters(ids=["example_id"],
        cluster_id="your_cluster_id",
        integration_type="kafka")
    pulumi.export("armsIntegrationExportersId1", ids.integration_exporters[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := arms.GetIntegrationExporters(ctx, &arms.GetIntegrationExportersArgs{
    			Ids: []string{
    				"example_id",
    			},
    			ClusterId:       "your_cluster_id",
    			IntegrationType: "kafka",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("armsIntegrationExportersId1", ids.IntegrationExporters[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Arms.GetIntegrationExporters.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            ClusterId = "your_cluster_id",
            IntegrationType = "kafka",
        });
    
        return new Dictionary<string, object?>
        {
            ["armsIntegrationExportersId1"] = ids.Apply(getIntegrationExportersResult => getIntegrationExportersResult.IntegrationExporters[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.arms.ArmsFunctions;
    import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersArgs;
    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 ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder()
                .ids("example_id")
                .clusterId("your_cluster_id")
                .integrationType("kafka")
                .build());
    
            ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:arms:getIntegrationExporters
          Arguments:
            ids:
              - example_id
            clusterId: your_cluster_id
            integrationType: kafka
    outputs:
      armsIntegrationExportersId1: ${ids.integrationExporters[0].id}
    

    Using getIntegrationExporters

    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 getIntegrationExporters(args: GetIntegrationExportersArgs, opts?: InvokeOptions): Promise<GetIntegrationExportersResult>
    function getIntegrationExportersOutput(args: GetIntegrationExportersOutputArgs, opts?: InvokeOptions): Output<GetIntegrationExportersResult>
    def get_integration_exporters(cluster_id: Optional[str] = None,
                                  ids: Optional[Sequence[str]] = None,
                                  integration_type: Optional[str] = None,
                                  output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetIntegrationExportersResult
    def get_integration_exporters_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                  ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  integration_type: Optional[pulumi.Input[str]] = None,
                                  output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetIntegrationExportersResult]
    func GetIntegrationExporters(ctx *Context, args *GetIntegrationExportersArgs, opts ...InvokeOption) (*GetIntegrationExportersResult, error)
    func GetIntegrationExportersOutput(ctx *Context, args *GetIntegrationExportersOutputArgs, opts ...InvokeOption) GetIntegrationExportersResultOutput

    > Note: This function is named GetIntegrationExporters in the Go SDK.

    public static class GetIntegrationExporters 
    {
        public static Task<GetIntegrationExportersResult> InvokeAsync(GetIntegrationExportersArgs args, InvokeOptions? opts = null)
        public static Output<GetIntegrationExportersResult> Invoke(GetIntegrationExportersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIntegrationExportersResult> getIntegrationExporters(GetIntegrationExportersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:arms/getIntegrationExporters:getIntegrationExporters
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The ID of the Prometheus instance.
    IntegrationType string
    The type of prometheus integration.
    Ids List<string>
    A list of Integration Exporter IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ClusterId string
    The ID of the Prometheus instance.
    IntegrationType string
    The type of prometheus integration.
    Ids []string
    A list of Integration Exporter IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    clusterId String
    The ID of the Prometheus instance.
    integrationType String
    The type of prometheus integration.
    ids List<String>
    A list of Integration Exporter IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    clusterId string
    The ID of the Prometheus instance.
    integrationType string
    The type of prometheus integration.
    ids string[]
    A list of Integration Exporter IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    cluster_id str
    The ID of the Prometheus instance.
    integration_type str
    The type of prometheus integration.
    ids Sequence[str]
    A list of Integration Exporter IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    clusterId String
    The ID of the Prometheus instance.
    integrationType String
    The type of prometheus integration.
    ids List<String>
    A list of Integration Exporter IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getIntegrationExporters Result

    The following output properties are available:

    ClusterId string
    The ID of the Prometheus instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    IntegrationExporters List<Pulumi.AliCloud.Arms.Outputs.GetIntegrationExportersIntegrationExporter>
    A list of Integration Exporters. Each element contains the following attributes:
    IntegrationType string
    The type of prometheus integration.
    OutputFile string
    ClusterId string
    The ID of the Prometheus instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    IntegrationExporters []GetIntegrationExportersIntegrationExporter
    A list of Integration Exporters. Each element contains the following attributes:
    IntegrationType string
    The type of prometheus integration.
    OutputFile string
    clusterId String
    The ID of the Prometheus instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    integrationExporters List<GetIntegrationExportersIntegrationExporter>
    A list of Integration Exporters. Each element contains the following attributes:
    integrationType String
    The type of prometheus integration.
    outputFile String
    clusterId string
    The ID of the Prometheus instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    integrationExporters GetIntegrationExportersIntegrationExporter[]
    A list of Integration Exporters. Each element contains the following attributes:
    integrationType string
    The type of prometheus integration.
    outputFile string
    cluster_id str
    The ID of the Prometheus instance.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    integration_exporters Sequence[GetIntegrationExportersIntegrationExporter]
    A list of Integration Exporters. Each element contains the following attributes:
    integration_type str
    The type of prometheus integration.
    output_file str
    clusterId String
    The ID of the Prometheus instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    integrationExporters List<Property Map>
    A list of Integration Exporters. Each element contains the following attributes:
    integrationType String
    The type of prometheus integration.
    outputFile String

    Supporting Types

    GetIntegrationExportersIntegrationExporter

    ClusterId string
    The ID of the Prometheus instance.
    ExporterType string
    Integration Exporter Type.
    Id string
    The ID of the Integration Exporter. It formats as <cluster_id>:<integration_type>:<instance_id>.
    InstanceId int
    The ID of the Integration Exporter instance.
    InstanceName string
    The name of the instance.
    IntegrationType string
    The type of prometheus integration.
    Param string
    Exporter configuration parameter json string.
    Target string
    Monitor the target address.
    Version string
    The version information.
    ClusterId string
    The ID of the Prometheus instance.
    ExporterType string
    Integration Exporter Type.
    Id string
    The ID of the Integration Exporter. It formats as <cluster_id>:<integration_type>:<instance_id>.
    InstanceId int
    The ID of the Integration Exporter instance.
    InstanceName string
    The name of the instance.
    IntegrationType string
    The type of prometheus integration.
    Param string
    Exporter configuration parameter json string.
    Target string
    Monitor the target address.
    Version string
    The version information.
    clusterId String
    The ID of the Prometheus instance.
    exporterType String
    Integration Exporter Type.
    id String
    The ID of the Integration Exporter. It formats as <cluster_id>:<integration_type>:<instance_id>.
    instanceId Integer
    The ID of the Integration Exporter instance.
    instanceName String
    The name of the instance.
    integrationType String
    The type of prometheus integration.
    param String
    Exporter configuration parameter json string.
    target String
    Monitor the target address.
    version String
    The version information.
    clusterId string
    The ID of the Prometheus instance.
    exporterType string
    Integration Exporter Type.
    id string
    The ID of the Integration Exporter. It formats as <cluster_id>:<integration_type>:<instance_id>.
    instanceId number
    The ID of the Integration Exporter instance.
    instanceName string
    The name of the instance.
    integrationType string
    The type of prometheus integration.
    param string
    Exporter configuration parameter json string.
    target string
    Monitor the target address.
    version string
    The version information.
    cluster_id str
    The ID of the Prometheus instance.
    exporter_type str
    Integration Exporter Type.
    id str
    The ID of the Integration Exporter. It formats as <cluster_id>:<integration_type>:<instance_id>.
    instance_id int
    The ID of the Integration Exporter instance.
    instance_name str
    The name of the instance.
    integration_type str
    The type of prometheus integration.
    param str
    Exporter configuration parameter json string.
    target str
    Monitor the target address.
    version str
    The version information.
    clusterId String
    The ID of the Prometheus instance.
    exporterType String
    Integration Exporter Type.
    id String
    The ID of the Integration Exporter. It formats as <cluster_id>:<integration_type>:<instance_id>.
    instanceId Number
    The ID of the Integration Exporter instance.
    instanceName String
    The name of the instance.
    integrationType String
    The type of prometheus integration.
    param String
    Exporter configuration parameter json string.
    target String
    Monitor the target address.
    version String
    The version information.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi