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

alicloud.cms.getHybridMonitorFcTasks

Explore with Pulumi AI

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

    This data source provides the Cms Hybrid Monitor Fc Tasks of the current Alibaba Cloud user.

    NOTE: Available in v1.179.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.cms.getHybridMonitorFcTasks({
        ids: ["example_value"],
    });
    export const cmsHybridMonitorFcTaskId1 = ids.then(ids => ids.tasks?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.cms.get_hybrid_monitor_fc_tasks(ids=["example_value"])
    pulumi.export("cmsHybridMonitorFcTaskId1", ids.tasks[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := cms.GetHybridMonitorFcTasks(ctx, &cms.GetHybridMonitorFcTasksArgs{
    			Ids: []string{
    				"example_value",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cmsHybridMonitorFcTaskId1", ids.Tasks[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Cms.GetHybridMonitorFcTasks.Invoke(new()
        {
            Ids = new[]
            {
                "example_value",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["cmsHybridMonitorFcTaskId1"] = ids.Apply(getHybridMonitorFcTasksResult => getHybridMonitorFcTasksResult.Tasks[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cms.CmsFunctions;
    import com.pulumi.alicloud.cms.inputs.GetHybridMonitorFcTasksArgs;
    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 = CmsFunctions.getHybridMonitorFcTasks(GetHybridMonitorFcTasksArgs.builder()
                .ids("example_value")
                .build());
    
            ctx.export("cmsHybridMonitorFcTaskId1", ids.applyValue(getHybridMonitorFcTasksResult -> getHybridMonitorFcTasksResult.tasks()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:cms:getHybridMonitorFcTasks
          Arguments:
            ids:
              - example_value
    outputs:
      cmsHybridMonitorFcTaskId1: ${ids.tasks[0].id}
    

    Using getHybridMonitorFcTasks

    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 getHybridMonitorFcTasks(args: GetHybridMonitorFcTasksArgs, opts?: InvokeOptions): Promise<GetHybridMonitorFcTasksResult>
    function getHybridMonitorFcTasksOutput(args: GetHybridMonitorFcTasksOutputArgs, opts?: InvokeOptions): Output<GetHybridMonitorFcTasksResult>
    def get_hybrid_monitor_fc_tasks(ids: Optional[Sequence[str]] = None,
                                    namespace: Optional[str] = None,
                                    output_file: Optional[str] = None,
                                    page_number: Optional[int] = None,
                                    page_size: Optional[int] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetHybridMonitorFcTasksResult
    def get_hybrid_monitor_fc_tasks_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    namespace: Optional[pulumi.Input[str]] = None,
                                    output_file: Optional[pulumi.Input[str]] = None,
                                    page_number: Optional[pulumi.Input[int]] = None,
                                    page_size: Optional[pulumi.Input[int]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetHybridMonitorFcTasksResult]
    func GetHybridMonitorFcTasks(ctx *Context, args *GetHybridMonitorFcTasksArgs, opts ...InvokeOption) (*GetHybridMonitorFcTasksResult, error)
    func GetHybridMonitorFcTasksOutput(ctx *Context, args *GetHybridMonitorFcTasksOutputArgs, opts ...InvokeOption) GetHybridMonitorFcTasksResultOutput

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

    public static class GetHybridMonitorFcTasks 
    {
        public static Task<GetHybridMonitorFcTasksResult> InvokeAsync(GetHybridMonitorFcTasksArgs args, InvokeOptions? opts = null)
        public static Output<GetHybridMonitorFcTasksResult> Invoke(GetHybridMonitorFcTasksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHybridMonitorFcTasksResult> getHybridMonitorFcTasks(GetHybridMonitorFcTasksArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cms/getHybridMonitorFcTasks:getHybridMonitorFcTasks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Hybrid Monitor Fc Task IDs.
    Namespace string
    The name of the namespace.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Ids []string
    A list of Hybrid Monitor Fc Task IDs.
    Namespace string
    The name of the namespace.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    ids List<String>
    A list of Hybrid Monitor Fc Task IDs.
    namespace String
    The name of the namespace.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    ids string[]
    A list of Hybrid Monitor Fc Task IDs.
    namespace string
    The name of the namespace.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    ids Sequence[str]
    A list of Hybrid Monitor Fc Task IDs.
    namespace str
    The name of the namespace.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    ids List<String>
    A list of Hybrid Monitor Fc Task IDs.
    namespace String
    The name of the namespace.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number

    getHybridMonitorFcTasks Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Tasks List<Pulumi.AliCloud.Cms.Outputs.GetHybridMonitorFcTasksTask>
    Namespace string
    OutputFile string
    PageNumber int
    PageSize int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Tasks []GetHybridMonitorFcTasksTask
    Namespace string
    OutputFile string
    PageNumber int
    PageSize int
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    tasks List<GetHybridMonitorFcTasksTask>
    namespace String
    outputFile String
    pageNumber Integer
    pageSize Integer
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    tasks GetHybridMonitorFcTasksTask[]
    namespace string
    outputFile string
    pageNumber number
    pageSize number
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    tasks Sequence[GetHybridMonitorFcTasksTask]
    namespace str
    output_file str
    page_number int
    page_size int
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    tasks List<Property Map>
    namespace String
    outputFile String
    pageNumber Number
    pageSize Number

    Supporting Types

    GetHybridMonitorFcTasksTask

    CreateTime string
    Create the timestamp of the monitoring task. Unit: milliseconds.
    HybridMonitorFcTaskId string
    The ID of the monitoring task.
    Id string
    The ID of the Hybrid Monitor Fc Task. The value formats as <hybrid_monitor_fc_task_id>:<namespace>.
    Namespace string
    The index warehouse where the host belongs.
    TargetUserId string
    The ID of the member account.
    YarmConfig string
    The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
    CreateTime string
    Create the timestamp of the monitoring task. Unit: milliseconds.
    HybridMonitorFcTaskId string
    The ID of the monitoring task.
    Id string
    The ID of the Hybrid Monitor Fc Task. The value formats as <hybrid_monitor_fc_task_id>:<namespace>.
    Namespace string
    The index warehouse where the host belongs.
    TargetUserId string
    The ID of the member account.
    YarmConfig string
    The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
    createTime String
    Create the timestamp of the monitoring task. Unit: milliseconds.
    hybridMonitorFcTaskId String
    The ID of the monitoring task.
    id String
    The ID of the Hybrid Monitor Fc Task. The value formats as <hybrid_monitor_fc_task_id>:<namespace>.
    namespace String
    The index warehouse where the host belongs.
    targetUserId String
    The ID of the member account.
    yarmConfig String
    The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
    createTime string
    Create the timestamp of the monitoring task. Unit: milliseconds.
    hybridMonitorFcTaskId string
    The ID of the monitoring task.
    id string
    The ID of the Hybrid Monitor Fc Task. The value formats as <hybrid_monitor_fc_task_id>:<namespace>.
    namespace string
    The index warehouse where the host belongs.
    targetUserId string
    The ID of the member account.
    yarmConfig string
    The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
    create_time str
    Create the timestamp of the monitoring task. Unit: milliseconds.
    hybrid_monitor_fc_task_id str
    The ID of the monitoring task.
    id str
    The ID of the Hybrid Monitor Fc Task. The value formats as <hybrid_monitor_fc_task_id>:<namespace>.
    namespace str
    The index warehouse where the host belongs.
    target_user_id str
    The ID of the member account.
    yarm_config str
    The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
    createTime String
    Create the timestamp of the monitoring task. Unit: milliseconds.
    hybridMonitorFcTaskId String
    The ID of the monitoring task.
    id String
    The ID of the Hybrid Monitor Fc Task. The value formats as <hybrid_monitor_fc_task_id>:<namespace>.
    namespace String
    The index warehouse where the host belongs.
    targetUserId String
    The ID of the member account.
    yarmConfig String
    The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.

    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