1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. sddp
  5. getDataLimits
Alibaba Cloud v3.45.1 published on Thursday, Dec 7, 2023 by Pulumi

alicloud.sddp.getDataLimits

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.45.1 published on Thursday, Dec 7, 2023 by Pulumi

    This data source provides the Sddp Data Limits of the current Alibaba Cloud user.

    NOTE: Available in v1.159.0+.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Sddp.GetDataLimits.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["sddpDataLimitId1"] = ids.Apply(getDataLimitsResult => getDataLimitsResult.Limits[0]?.Id),
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sddp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := sddp.GetDataLimits(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("sddpDataLimitId1", ids.Limits[0].Id)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.sddp.SddpFunctions;
    import com.pulumi.alicloud.sddp.inputs.GetDataLimitsArgs;
    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 = SddpFunctions.getDataLimits();
    
            ctx.export("sddpDataLimitId1", ids.applyValue(getDataLimitsResult -> getDataLimitsResult.limits()[0].id()));
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.sddp.get_data_limits()
    pulumi.export("sddpDataLimitId1", ids.limits[0].id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.sddp.getDataLimits({});
    export const sddpDataLimitId1 = ids.then(ids => ids.limits?.[0]?.id);
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:sddp:getDataLimits
          Arguments: {}
    outputs:
      sddpDataLimitId1: ${ids.limits[0].id}
    

    Using getDataLimits

    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 getDataLimits(args: GetDataLimitsArgs, opts?: InvokeOptions): Promise<GetDataLimitsResult>
    function getDataLimitsOutput(args: GetDataLimitsOutputArgs, opts?: InvokeOptions): Output<GetDataLimitsResult>
    def get_data_limits(ids: Optional[Sequence[str]] = None,
                        output_file: Optional[str] = None,
                        parent_id: Optional[str] = None,
                        resource_type: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDataLimitsResult
    def get_data_limits_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        parent_id: Optional[pulumi.Input[str]] = None,
                        resource_type: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDataLimitsResult]
    func GetDataLimits(ctx *Context, args *GetDataLimitsArgs, opts ...InvokeOption) (*GetDataLimitsResult, error)
    func GetDataLimitsOutput(ctx *Context, args *GetDataLimitsOutputArgs, opts ...InvokeOption) GetDataLimitsResultOutput

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

    public static class GetDataLimits 
    {
        public static Task<GetDataLimitsResult> InvokeAsync(GetDataLimitsArgs args, InvokeOptions? opts = null)
        public static Output<GetDataLimitsResult> Invoke(GetDataLimitsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataLimitsResult> getDataLimits(GetDataLimitsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:sddp/getDataLimits:getDataLimits
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>

    A list of Data Limit IDs.

    OutputFile string

    File name where to save data source results (after running pulumi preview).

    ParentId string

    The ID of the data asset.

    ResourceType string

    The type of the service to which the data asset belongs.

    Ids []string

    A list of Data Limit IDs.

    OutputFile string

    File name where to save data source results (after running pulumi preview).

    ParentId string

    The ID of the data asset.

    ResourceType string

    The type of the service to which the data asset belongs.

    ids List<String>

    A list of Data Limit IDs.

    outputFile String

    File name where to save data source results (after running pulumi preview).

    parentId String

    The ID of the data asset.

    resourceType String

    The type of the service to which the data asset belongs.

    ids string[]

    A list of Data Limit IDs.

    outputFile string

    File name where to save data source results (after running pulumi preview).

    parentId string

    The ID of the data asset.

    resourceType string

    The type of the service to which the data asset belongs.

    ids Sequence[str]

    A list of Data Limit IDs.

    output_file str

    File name where to save data source results (after running pulumi preview).

    parent_id str

    The ID of the data asset.

    resource_type str

    The type of the service to which the data asset belongs.

    ids List<String>

    A list of Data Limit IDs.

    outputFile String

    File name where to save data source results (after running pulumi preview).

    parentId String

    The ID of the data asset.

    resourceType String

    The type of the service to which the data asset belongs.

    getDataLimits Result

    The following output properties are available:

    Id string

    The provider-assigned unique ID for this managed resource.

    Ids List<string>
    Limits List<Pulumi.AliCloud.Sddp.Outputs.GetDataLimitsLimit>
    OutputFile string
    ParentId string
    ResourceType string
    Id string

    The provider-assigned unique ID for this managed resource.

    Ids []string
    Limits []GetDataLimitsLimit
    OutputFile string
    ParentId string
    ResourceType string
    id String

    The provider-assigned unique ID for this managed resource.

    ids List<String>
    limits List<GetDataLimitsLimit>
    outputFile String
    parentId String
    resourceType String
    id string

    The provider-assigned unique ID for this managed resource.

    ids string[]
    limits GetDataLimitsLimit[]
    outputFile string
    parentId string
    resourceType string
    id str

    The provider-assigned unique ID for this managed resource.

    ids Sequence[str]
    limits Sequence[GetDataLimitsLimit]
    output_file str
    parent_id str
    resource_type str
    id String

    The provider-assigned unique ID for this managed resource.

    ids List<String>
    limits List<Property Map>
    outputFile String
    parentId String
    resourceType String

    Supporting Types

    GetDataLimitsLimit

    AuditStatus int

    Whether to enable the log auditing feature.

    CheckStatus int

    The status of the connectivity test between the data asset and SDDP.

    DataLimitId string

    The first ID of the resource.

    EngineType string

    The type of the database.

    Id string

    The ID of the Data Limit.

    LocalName string

    The name of the service to which the data asset belongs.

    LogStoreDay int

    The retention period of raw logs after you enable the log auditing feature.

    ParentId string

    The ID of the data asset.

    Port int

    The port that is used to connect to the database.

    ResourceType string

    The type of the service to which the data asset belongs.

    UserName string

    The name of the user who owns the data asset.

    AuditStatus int

    Whether to enable the log auditing feature.

    CheckStatus int

    The status of the connectivity test between the data asset and SDDP.

    DataLimitId string

    The first ID of the resource.

    EngineType string

    The type of the database.

    Id string

    The ID of the Data Limit.

    LocalName string

    The name of the service to which the data asset belongs.

    LogStoreDay int

    The retention period of raw logs after you enable the log auditing feature.

    ParentId string

    The ID of the data asset.

    Port int

    The port that is used to connect to the database.

    ResourceType string

    The type of the service to which the data asset belongs.

    UserName string

    The name of the user who owns the data asset.

    auditStatus Integer

    Whether to enable the log auditing feature.

    checkStatus Integer

    The status of the connectivity test between the data asset and SDDP.

    dataLimitId String

    The first ID of the resource.

    engineType String

    The type of the database.

    id String

    The ID of the Data Limit.

    localName String

    The name of the service to which the data asset belongs.

    logStoreDay Integer

    The retention period of raw logs after you enable the log auditing feature.

    parentId String

    The ID of the data asset.

    port Integer

    The port that is used to connect to the database.

    resourceType String

    The type of the service to which the data asset belongs.

    userName String

    The name of the user who owns the data asset.

    auditStatus number

    Whether to enable the log auditing feature.

    checkStatus number

    The status of the connectivity test between the data asset and SDDP.

    dataLimitId string

    The first ID of the resource.

    engineType string

    The type of the database.

    id string

    The ID of the Data Limit.

    localName string

    The name of the service to which the data asset belongs.

    logStoreDay number

    The retention period of raw logs after you enable the log auditing feature.

    parentId string

    The ID of the data asset.

    port number

    The port that is used to connect to the database.

    resourceType string

    The type of the service to which the data asset belongs.

    userName string

    The name of the user who owns the data asset.

    audit_status int

    Whether to enable the log auditing feature.

    check_status int

    The status of the connectivity test between the data asset and SDDP.

    data_limit_id str

    The first ID of the resource.

    engine_type str

    The type of the database.

    id str

    The ID of the Data Limit.

    local_name str

    The name of the service to which the data asset belongs.

    log_store_day int

    The retention period of raw logs after you enable the log auditing feature.

    parent_id str

    The ID of the data asset.

    port int

    The port that is used to connect to the database.

    resource_type str

    The type of the service to which the data asset belongs.

    user_name str

    The name of the user who owns the data asset.

    auditStatus Number

    Whether to enable the log auditing feature.

    checkStatus Number

    The status of the connectivity test between the data asset and SDDP.

    dataLimitId String

    The first ID of the resource.

    engineType String

    The type of the database.

    id String

    The ID of the Data Limit.

    localName String

    The name of the service to which the data asset belongs.

    logStoreDay Number

    The retention period of raw logs after you enable the log auditing feature.

    parentId String

    The ID of the data asset.

    port Number

    The port that is used to connect to the database.

    resourceType String

    The type of the service to which the data asset belongs.

    userName String

    The name of the user who owns the data asset.

    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.45.1 published on Thursday, Dec 7, 2023 by Pulumi