1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. threatdetection
  6. getRdDefaultSyncList
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi

    Provides a Threat Detection Rd Default Sync List data source. The default synchronization list of resource directory folders for Threat Detection. The list is account-level (singleton): each Alibaba Cloud account holds at most one such list, and this data source reads the current account’s list.

    For information about Threat Detection Rd Default Sync List and how to use it, see ListRdDefaultSyncList.

    NOTE: Available since v1.292.0.

    NOTE: The resource folder ids can be obtained via the GetRdTree API. A resource directory management account or a Threat Detection delegated administrator account is required to call these APIs.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = alicloud.threatdetection.getRdDefaultSyncList({});
    export const rdDefaultSyncFolderIds = _default.then(_default => _default.folderIds);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.threatdetection.get_rd_default_sync_list()
    pulumi.export("rdDefaultSyncFolderIds", default.folder_ids)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := threatdetection.LookupRdDefaultSyncList(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("rdDefaultSyncFolderIds", _default.FolderIds)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.ThreatDetection.GetRdDefaultSyncList.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["rdDefaultSyncFolderIds"] = @default.Apply(@default => @default.Apply(getRdDefaultSyncListResult => getRdDefaultSyncListResult.FolderIds)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 default = ThreatdetectionFunctions.getRdDefaultSyncList(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            ctx.export("rdDefaultSyncFolderIds", default_.folderIds());
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: alicloud:threatdetection:getRdDefaultSyncList
          arguments: {}
    outputs:
      rdDefaultSyncFolderIds: ${default.folderIds}
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_threatdetection_getrddefaultsynclist" "default" {
    }
    
    output "rdDefaultSyncFolderIds" {
      value = data.alicloud_threatdetection_getrddefaultsynclist.default.folder_ids
    }
    

    Using getRdDefaultSyncList

    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 getRdDefaultSyncList(opts?: InvokeOptions): Promise<GetRdDefaultSyncListResult>
    function getRdDefaultSyncListOutput(opts?: InvokeOutputOptions): Output<GetRdDefaultSyncListResult>
    def get_rd_default_sync_list(opts: Optional[InvokeOptions] = None) -> GetRdDefaultSyncListResult
    def get_rd_default_sync_list_output(opts: Optional[InvokeOutputOptions] = None) -> Output[GetRdDefaultSyncListResult]
    func LookupRdDefaultSyncList(ctx *Context, opts ...InvokeOption) (*LookupRdDefaultSyncListResult, error)
    func LookupRdDefaultSyncListOutput(ctx *Context, opts ...InvokeOption) LookupRdDefaultSyncListResultOutput

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

    public static class GetRdDefaultSyncList 
    {
        public static Task<GetRdDefaultSyncListResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetRdDefaultSyncListResult> Invoke(InvokeOptions? opts = null)
        public static Output<GetRdDefaultSyncListResult> Invoke(InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRdDefaultSyncListResult> getRdDefaultSyncList(InvokeOptions options)
    public static Output<GetRdDefaultSyncListResult> getRdDefaultSyncList(InvokeOptions options)
    public static Output<GetRdDefaultSyncListResult> getRdDefaultSyncList(InvokeOutputOptions options)
    
    fn::invoke:
      function: alicloud:threatdetection/getRdDefaultSyncList:getRdDefaultSyncList
      arguments:
        # arguments dictionary
    data "alicloud_threatdetection_get_rd_default_sync_list" "name" {
        # arguments
    }

    getRdDefaultSyncList Result

    The following output properties are available:

    FolderIds List<string>
    The current list of synchronized resource directory folder ids.
    Id string
    The provider-assigned unique ID for this managed resource.
    FolderIds []string
    The current list of synchronized resource directory folder ids.
    Id string
    The provider-assigned unique ID for this managed resource.
    folder_ids list(string)
    The current list of synchronized resource directory folder ids.
    id string
    The provider-assigned unique ID for this managed resource.
    folderIds List<String>
    The current list of synchronized resource directory folder ids.
    id String
    The provider-assigned unique ID for this managed resource.
    folderIds string[]
    The current list of synchronized resource directory folder ids.
    id string
    The provider-assigned unique ID for this managed resource.
    folder_ids Sequence[str]
    The current list of synchronized resource directory folder ids.
    id str
    The provider-assigned unique ID for this managed resource.
    folderIds List<String>
    The current list of synchronized resource directory folder ids.
    id String
    The provider-assigned unique ID for this managed resource.

    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 alicloud logo
    Viewing docs for Alibaba Cloud v3.108.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial