1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getModelartsDatasetVersions
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getModelartsDatasetVersions

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get a list of ModelArts dataset versions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const datasetId = config.requireObject("datasetId");
    const test = flexibleengine.getModelartsDatasetVersions({
        datasetId: datasetId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    dataset_id = config.require_object("datasetId")
    test = flexibleengine.get_modelarts_dataset_versions(dataset_id=dataset_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		datasetId := cfg.RequireObject("datasetId")
    		_, err := flexibleengine.GetModelartsDatasetVersions(ctx, &flexibleengine.GetModelartsDatasetVersionsArgs{
    			DatasetId: datasetId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var datasetId = config.RequireObject<dynamic>("datasetId");
        var test = Flexibleengine.GetModelartsDatasetVersions.Invoke(new()
        {
            DatasetId = datasetId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetModelartsDatasetVersionsArgs;
    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 config = ctx.config();
            final var datasetId = config.get("datasetId");
            final var test = FlexibleengineFunctions.getModelartsDatasetVersions(GetModelartsDatasetVersionsArgs.builder()
                .datasetId(datasetId)
                .build());
    
        }
    }
    
    configuration:
      datasetId:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getModelartsDatasetVersions
          arguments:
            datasetId: ${datasetId}
    

    Using getModelartsDatasetVersions

    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 getModelartsDatasetVersions(args: GetModelartsDatasetVersionsArgs, opts?: InvokeOptions): Promise<GetModelartsDatasetVersionsResult>
    function getModelartsDatasetVersionsOutput(args: GetModelartsDatasetVersionsOutputArgs, opts?: InvokeOptions): Output<GetModelartsDatasetVersionsResult>
    def get_modelarts_dataset_versions(dataset_id: Optional[str] = None,
                                       id: Optional[str] = None,
                                       name: Optional[str] = None,
                                       region: Optional[str] = None,
                                       split_ratio: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetModelartsDatasetVersionsResult
    def get_modelarts_dataset_versions_output(dataset_id: Optional[pulumi.Input[str]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       region: Optional[pulumi.Input[str]] = None,
                                       split_ratio: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetModelartsDatasetVersionsResult]
    func GetModelartsDatasetVersions(ctx *Context, args *GetModelartsDatasetVersionsArgs, opts ...InvokeOption) (*GetModelartsDatasetVersionsResult, error)
    func GetModelartsDatasetVersionsOutput(ctx *Context, args *GetModelartsDatasetVersionsOutputArgs, opts ...InvokeOption) GetModelartsDatasetVersionsResultOutput

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

    public static class GetModelartsDatasetVersions 
    {
        public static Task<GetModelartsDatasetVersionsResult> InvokeAsync(GetModelartsDatasetVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetModelartsDatasetVersionsResult> Invoke(GetModelartsDatasetVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetModelartsDatasetVersionsResult> getModelartsDatasetVersions(GetModelartsDatasetVersionsArgs args, InvokeOptions options)
    public static Output<GetModelartsDatasetVersionsResult> getModelartsDatasetVersions(GetModelartsDatasetVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getModelartsDatasetVersions:getModelartsDatasetVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatasetId string
    Specifies the ID of dataset.
    Id string
    The ID of the dataset version.
    Name string
    Specifies the name of the dataset version.
    Region string
    Specifies the region in which to obtain dataset versions. If omitted, the provider-level region will be used.
    SplitRatio string
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    DatasetId string
    Specifies the ID of dataset.
    Id string
    The ID of the dataset version.
    Name string
    Specifies the name of the dataset version.
    Region string
    Specifies the region in which to obtain dataset versions. If omitted, the provider-level region will be used.
    SplitRatio string
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    datasetId String
    Specifies the ID of dataset.
    id String
    The ID of the dataset version.
    name String
    Specifies the name of the dataset version.
    region String
    Specifies the region in which to obtain dataset versions. If omitted, the provider-level region will be used.
    splitRatio String
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    datasetId string
    Specifies the ID of dataset.
    id string
    The ID of the dataset version.
    name string
    Specifies the name of the dataset version.
    region string
    Specifies the region in which to obtain dataset versions. If omitted, the provider-level region will be used.
    splitRatio string
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    dataset_id str
    Specifies the ID of dataset.
    id str
    The ID of the dataset version.
    name str
    Specifies the name of the dataset version.
    region str
    Specifies the region in which to obtain dataset versions. If omitted, the provider-level region will be used.
    split_ratio str
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    datasetId String
    Specifies the ID of dataset.
    id String
    The ID of the dataset version.
    name String
    Specifies the name of the dataset version.
    region String
    Specifies the region in which to obtain dataset versions. If omitted, the provider-level region will be used.
    splitRatio String
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".

    getModelartsDatasetVersions Result

    The following output properties are available:

    DatasetId string
    Id string
    The ID of the dataset version.
    Region string
    Versions List<GetModelartsDatasetVersionsVersion>
    Indicates a list of all dataset versions found. Structure is documented below.
    Name string
    The name of the dataset version.
    SplitRatio string
    The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
    DatasetId string
    Id string
    The ID of the dataset version.
    Region string
    Versions []GetModelartsDatasetVersionsVersion
    Indicates a list of all dataset versions found. Structure is documented below.
    Name string
    The name of the dataset version.
    SplitRatio string
    The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
    datasetId String
    id String
    The ID of the dataset version.
    region String
    versions List<GetModelartsDatasetVersionsVersion>
    Indicates a list of all dataset versions found. Structure is documented below.
    name String
    The name of the dataset version.
    splitRatio String
    The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
    datasetId string
    id string
    The ID of the dataset version.
    region string
    versions GetModelartsDatasetVersionsVersion[]
    Indicates a list of all dataset versions found. Structure is documented below.
    name string
    The name of the dataset version.
    splitRatio string
    The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
    dataset_id str
    id str
    The ID of the dataset version.
    region str
    versions Sequence[GetModelartsDatasetVersionsVersion]
    Indicates a list of all dataset versions found. Structure is documented below.
    name str
    The name of the dataset version.
    split_ratio str
    The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
    datasetId String
    id String
    The ID of the dataset version.
    region String
    versions List<Property Map>
    Indicates a list of all dataset versions found. Structure is documented below.
    name String
    The name of the dataset version.
    splitRatio String
    The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.

    Supporting Types

    GetModelartsDatasetVersionsVersion

    CreatedAt string
    The creation time, in UTC format.
    Description string
    The description of the dataset version.
    Files double
    The total number of samples.
    Id string
    The ID of the dataset version.
    IsCurrent bool
    Whether this version is current version.
    Name string
    Specifies the name of the dataset version.
    SplitRatio string
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    Status double
    Dataset version status. Valid values are as follows:

    • 0: Creating.
    • 1: Normal.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    StoragePath string
    The path to save the manifest file of the version.
    UpdatedAt string
    The last update time, in UTC format.
    CreatedAt string
    The creation time, in UTC format.
    Description string
    The description of the dataset version.
    Files float64
    The total number of samples.
    Id string
    The ID of the dataset version.
    IsCurrent bool
    Whether this version is current version.
    Name string
    Specifies the name of the dataset version.
    SplitRatio string
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    Status float64
    Dataset version status. Valid values are as follows:

    • 0: Creating.
    • 1: Normal.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    StoragePath string
    The path to save the manifest file of the version.
    UpdatedAt string
    The last update time, in UTC format.
    createdAt String
    The creation time, in UTC format.
    description String
    The description of the dataset version.
    files Double
    The total number of samples.
    id String
    The ID of the dataset version.
    isCurrent Boolean
    Whether this version is current version.
    name String
    Specifies the name of the dataset version.
    splitRatio String
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    status Double
    Dataset version status. Valid values are as follows:

    • 0: Creating.
    • 1: Normal.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    storagePath String
    The path to save the manifest file of the version.
    updatedAt String
    The last update time, in UTC format.
    createdAt string
    The creation time, in UTC format.
    description string
    The description of the dataset version.
    files number
    The total number of samples.
    id string
    The ID of the dataset version.
    isCurrent boolean
    Whether this version is current version.
    name string
    Specifies the name of the dataset version.
    splitRatio string
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    status number
    Dataset version status. Valid values are as follows:

    • 0: Creating.
    • 1: Normal.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    storagePath string
    The path to save the manifest file of the version.
    updatedAt string
    The last update time, in UTC format.
    created_at str
    The creation time, in UTC format.
    description str
    The description of the dataset version.
    files float
    The total number of samples.
    id str
    The ID of the dataset version.
    is_current bool
    Whether this version is current version.
    name str
    Specifies the name of the dataset version.
    split_ratio str
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    status float
    Dataset version status. Valid values are as follows:

    • 0: Creating.
    • 1: Normal.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    storage_path str
    The path to save the manifest file of the version.
    updated_at str
    The last update time, in UTC format.
    createdAt String
    The creation time, in UTC format.
    description String
    The description of the dataset version.
    files Number
    The total number of samples.
    id String
    The ID of the dataset version.
    isCurrent Boolean
    Whether this version is current version.
    name String
    Specifies the name of the dataset version.
    splitRatio String
    Specifies the range of splitting ratio which randomly divides a labeled sample into a training set and a validation set. Separate the minimum and maximum split ratios with commas, for example: "0.0,1.0".
    status Number
    Dataset version status. Valid values are as follows:

    • 0: Creating.
    • 1: Normal.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    storagePath String
    The path to save the manifest file of the version.
    updatedAt String
    The last update time, in UTC format.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud