flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getModelartsDatasetVersions
Start a Neo task
Explain and create a flexibleengine.getModelartsDatasetVersions resource
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 dictionaryThe following arguments are supported:
- Dataset
Id 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.
- Split
Ratio 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 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.
- Split
Ratio 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 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.
- split
Ratio 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 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.
- split
Ratio 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".
- dataset
Id 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.
- split
Ratio 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:
- Dataset
Id string - Id string
- The ID of the dataset version.
- Region string
- Versions
List<Get
Modelarts Dataset Versions Version> - Indicates a list of all dataset versions found. Structure is documented below.
- Name string
- The name of the dataset version.
- Split
Ratio string - The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
- Dataset
Id string - Id string
- The ID of the dataset version.
- Region string
- Versions
[]Get
Modelarts Dataset Versions Version - Indicates a list of all dataset versions found. Structure is documented below.
- Name string
- The name of the dataset version.
- Split
Ratio string - The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
- dataset
Id String - id String
- The ID of the dataset version.
- region String
- versions
List<Get
Modelarts Dataset Versions Version> - Indicates a list of all dataset versions found. Structure is documented below.
- name String
- The name of the dataset version.
- split
Ratio String - The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
- dataset
Id string - id string
- The ID of the dataset version.
- region string
- versions
Get
Modelarts Dataset Versions Version[] - Indicates a list of all dataset versions found. Structure is documented below.
- name string
- The name of the dataset version.
- split
Ratio 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[Get
Modelarts Dataset Versions Version] - 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.
- dataset
Id 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.
- split
Ratio String - The ratio of splitting which randomly divides a labeled sample into a training set and a validation set.
Supporting Types
GetModelartsDatasetVersionsVersion
- Created
At 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.
- Is
Current bool - Whether this version is current version.
- Name string
- Specifies the name of the dataset version.
- Split
Ratio 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.
- Storage
Path string - The path to save the manifest file of the version.
- Updated
At string - The last update time, in UTC format.
- Created
At 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.
- Is
Current bool - Whether this version is current version.
- Name string
- Specifies the name of the dataset version.
- Split
Ratio 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.
- Storage
Path string - The path to save the manifest file of the version.
- Updated
At string - The last update time, in UTC format.
- created
At 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.
- is
Current Boolean - Whether this version is current version.
- name String
- Specifies the name of the dataset version.
- split
Ratio 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.
- storage
Path String - The path to save the manifest file of the version.
- updated
At String - The last update time, in UTC format.
- created
At 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.
- is
Current boolean - Whether this version is current version.
- name string
- Specifies the name of the dataset version.
- split
Ratio 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.
- storage
Path string - The path to save the manifest file of the version.
- updated
At 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.
- created
At 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.
- is
Current Boolean - Whether this version is current version.
- name String
- Specifies the name of the dataset version.
- split
Ratio 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.
- storage
Path String - The path to save the manifest file of the version.
- updated
At 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
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
