Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.cms.getHybridMonitorFcTasks
Explore with Pulumi AI
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.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- Ids []string
- A list of Hybrid Monitor Fc Task IDs.
- Namespace string
- The name of the namespace.
- Output
File string - 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.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer
- ids string[]
- A list of Hybrid Monitor Fc Task IDs.
- namespace string
- The name of the namespace.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size 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.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size 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.
Ali Cloud. Cms. Outputs. Get Hybrid Monitor Fc Tasks Task> - Namespace string
- Output
File string - Page
Number int - Page
Size int
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Tasks
[]Get
Hybrid Monitor Fc Tasks Task - Namespace string
- Output
File string - Page
Number int - Page
Size int
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- tasks
List<Get
Hybrid Monitor Fc Tasks Task> - namespace String
- output
File String - page
Number Integer - page
Size Integer
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- tasks
Get
Hybrid Monitor Fc Tasks Task[] - namespace string
- output
File string - page
Number number - page
Size number
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- tasks
Sequence[Get
Hybrid Monitor Fc Tasks Task] - 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
- output
File String - page
Number Number - page
Size Number
Supporting Types
GetHybridMonitorFcTasksTask
- Create
Time string - Create the timestamp of the monitoring task. Unit: milliseconds.
- Hybrid
Monitor stringFc Task Id - 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.
- Target
User stringId - The ID of the member account.
- Yarm
Config string - The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
- Create
Time string - Create the timestamp of the monitoring task. Unit: milliseconds.
- Hybrid
Monitor stringFc Task Id - 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.
- Target
User stringId - The ID of the member account.
- Yarm
Config string - The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
- create
Time String - Create the timestamp of the monitoring task. Unit: milliseconds.
- hybrid
Monitor StringFc Task Id - 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.
- target
User StringId - The ID of the member account.
- yarm
Config String - The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
- create
Time string - Create the timestamp of the monitoring task. Unit: milliseconds.
- hybrid
Monitor stringFc Task Id - 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.
- target
User stringId - The ID of the member account.
- yarm
Config 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_ strfc_ task_ id - 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_ strid - 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.
- create
Time String - Create the timestamp of the monitoring task. Unit: milliseconds.
- hybrid
Monitor StringFc Task Id - 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.
- target
User StringId - The ID of the member account.
- yarm
Config 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.