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

flexibleengine.getModelartsModelTemplates

Explore with Pulumi AI

Use this data source to get model templates of ModelArts.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const test = flexibleengine.getModelartsModelTemplates({
    type: "Classification",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

test = flexibleengine.get_modelarts_model_templates(type="Classification")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.GetModelartsModelTemplates(ctx, &flexibleengine.GetModelartsModelTemplatesArgs{
			Type: pulumi.StringRef("Classification"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var test = Flexibleengine.GetModelartsModelTemplates.Invoke(new()
    {
        Type = "Classification",
    });

});
Copy
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.GetModelartsModelTemplatesArgs;
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 test = FlexibleengineFunctions.getModelartsModelTemplates(GetModelartsModelTemplatesArgs.builder()
            .type("Classification")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: flexibleengine:getModelartsModelTemplates
      arguments:
        type: Classification
Copy

Using getModelartsModelTemplates

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 getModelartsModelTemplates(args: GetModelartsModelTemplatesArgs, opts?: InvokeOptions): Promise<GetModelartsModelTemplatesResult>
function getModelartsModelTemplatesOutput(args: GetModelartsModelTemplatesOutputArgs, opts?: InvokeOptions): Output<GetModelartsModelTemplatesResult>
Copy
def get_modelarts_model_templates(engine: Optional[str] = None,
                                  environment: Optional[str] = None,
                                  id: Optional[str] = None,
                                  keyword: Optional[str] = None,
                                  region: Optional[str] = None,
                                  type: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetModelartsModelTemplatesResult
def get_modelarts_model_templates_output(engine: Optional[pulumi.Input[str]] = None,
                                  environment: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  keyword: Optional[pulumi.Input[str]] = None,
                                  region: Optional[pulumi.Input[str]] = None,
                                  type: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetModelartsModelTemplatesResult]
Copy
func GetModelartsModelTemplates(ctx *Context, args *GetModelartsModelTemplatesArgs, opts ...InvokeOption) (*GetModelartsModelTemplatesResult, error)
func GetModelartsModelTemplatesOutput(ctx *Context, args *GetModelartsModelTemplatesOutputArgs, opts ...InvokeOption) GetModelartsModelTemplatesResultOutput
Copy

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

public static class GetModelartsModelTemplates 
{
    public static Task<GetModelartsModelTemplatesResult> InvokeAsync(GetModelartsModelTemplatesArgs args, InvokeOptions? opts = null)
    public static Output<GetModelartsModelTemplatesResult> Invoke(GetModelartsModelTemplatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetModelartsModelTemplatesResult> getModelartsModelTemplates(GetModelartsModelTemplatesArgs args, InvokeOptions options)
public static Output<GetModelartsModelTemplatesResult> getModelartsModelTemplates(GetModelartsModelTemplatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getModelartsModelTemplates:getModelartsModelTemplates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Engine string
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
Environment string
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
Id string
The ID of the input parameter.
Keyword string
Keywords to search in name or description. Fuzzy match is supported.
Region string
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
Type string
The type of model. The valid values are Classification and Common.
Engine string
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
Environment string
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
Id string
The ID of the input parameter.
Keyword string
Keywords to search in name or description. Fuzzy match is supported.
Region string
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
Type string
The type of model. The valid values are Classification and Common.
engine String
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment String
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id String
The ID of the input parameter.
keyword String
Keywords to search in name or description. Fuzzy match is supported.
region String
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
type String
The type of model. The valid values are Classification and Common.
engine string
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment string
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id string
The ID of the input parameter.
keyword string
Keywords to search in name or description. Fuzzy match is supported.
region string
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
type string
The type of model. The valid values are Classification and Common.
engine str
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment str
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id str
The ID of the input parameter.
keyword str
Keywords to search in name or description. Fuzzy match is supported.
region str
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
type str
The type of model. The valid values are Classification and Common.
engine String
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment String
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id String
The ID of the input parameter.
keyword String
Keywords to search in name or description. Fuzzy match is supported.
region String
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
type String
The type of model. The valid values are Classification and Common.

getModelartsModelTemplates Result

The following output properties are available:

Id string
The ID of the input parameter.
Region string
Templates List<GetModelartsModelTemplatesTemplate>
The list of model templates. The templates structure is documented below.
Engine string
The AI engine.
The valid values are Caffe, MXNet, MindSpore, PyTorch, and TensorFlow.
Environment string
Model runtime environment.
The valid values are aarch64, python2.7, python2.7-cpu, python2.7-gpu, python3.6, python3.6-gpu, and python3.6-gpu.
Keyword string
Type string
The type of the input parameter.
Id string
The ID of the input parameter.
Region string
Templates []GetModelartsModelTemplatesTemplate
The list of model templates. The templates structure is documented below.
Engine string
The AI engine.
The valid values are Caffe, MXNet, MindSpore, PyTorch, and TensorFlow.
Environment string
Model runtime environment.
The valid values are aarch64, python2.7, python2.7-cpu, python2.7-gpu, python3.6, python3.6-gpu, and python3.6-gpu.
Keyword string
Type string
The type of the input parameter.
id String
The ID of the input parameter.
region String
templates List<GetModelartsModelTemplatesTemplate>
The list of model templates. The templates structure is documented below.
engine String
The AI engine.
The valid values are Caffe, MXNet, MindSpore, PyTorch, and TensorFlow.
environment String
Model runtime environment.
The valid values are aarch64, python2.7, python2.7-cpu, python2.7-gpu, python3.6, python3.6-gpu, and python3.6-gpu.
keyword String
type String
The type of the input parameter.
id string
The ID of the input parameter.
region string
templates GetModelartsModelTemplatesTemplate[]
The list of model templates. The templates structure is documented below.
engine string
The AI engine.
The valid values are Caffe, MXNet, MindSpore, PyTorch, and TensorFlow.
environment string
Model runtime environment.
The valid values are aarch64, python2.7, python2.7-cpu, python2.7-gpu, python3.6, python3.6-gpu, and python3.6-gpu.
keyword string
type string
The type of the input parameter.
id str
The ID of the input parameter.
region str
templates Sequence[GetModelartsModelTemplatesTemplate]
The list of model templates. The templates structure is documented below.
engine str
The AI engine.
The valid values are Caffe, MXNet, MindSpore, PyTorch, and TensorFlow.
environment str
Model runtime environment.
The valid values are aarch64, python2.7, python2.7-cpu, python2.7-gpu, python3.6, python3.6-gpu, and python3.6-gpu.
keyword str
type str
The type of the input parameter.
id String
The ID of the input parameter.
region String
templates List<Property Map>
The list of model templates. The templates structure is documented below.
engine String
The AI engine.
The valid values are Caffe, MXNet, MindSpore, PyTorch, and TensorFlow.
environment String
Model runtime environment.
The valid values are aarch64, python2.7, python2.7-cpu, python2.7-gpu, python3.6, python3.6-gpu, and python3.6-gpu.
keyword String
type String
The type of the input parameter.

Supporting Types

GetModelartsModelTemplatesTemplate

Arch This property is required. string
Description This property is required. string
The description of the input parameter.
Engine This property is required. string
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
Environment This property is required. string
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
Id This property is required. string
The ID of the input parameter.
Name This property is required. string
The name of the input parameter.
TemplateDocs This property is required. List<GetModelartsModelTemplatesTemplateTemplateDoc>
List of template description documents.
The template_docs structure is documented below.
TemplateInputs This property is required. List<GetModelartsModelTemplatesTemplateTemplateInput>
List of input parameters for the model. The template_inputs structure is documented below.
Type This property is required. string
The type of model. The valid values are Classification and Common.
Arch This property is required. string
Description This property is required. string
The description of the input parameter.
Engine This property is required. string
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
Environment This property is required. string
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
Id This property is required. string
The ID of the input parameter.
Name This property is required. string
The name of the input parameter.
TemplateDocs This property is required. []GetModelartsModelTemplatesTemplateTemplateDoc
List of template description documents.
The template_docs structure is documented below.
TemplateInputs This property is required. []GetModelartsModelTemplatesTemplateTemplateInput
List of input parameters for the model. The template_inputs structure is documented below.
Type This property is required. string
The type of model. The valid values are Classification and Common.
arch This property is required. String
description This property is required. String
The description of the input parameter.
engine This property is required. String
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment This property is required. String
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id This property is required. String
The ID of the input parameter.
name This property is required. String
The name of the input parameter.
templateDocs This property is required. List<GetModelartsModelTemplatesTemplateTemplateDoc>
List of template description documents.
The template_docs structure is documented below.
templateInputs This property is required. List<GetModelartsModelTemplatesTemplateTemplateInput>
List of input parameters for the model. The template_inputs structure is documented below.
type This property is required. String
The type of model. The valid values are Classification and Common.
arch This property is required. string
description This property is required. string
The description of the input parameter.
engine This property is required. string
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment This property is required. string
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id This property is required. string
The ID of the input parameter.
name This property is required. string
The name of the input parameter.
templateDocs This property is required. GetModelartsModelTemplatesTemplateTemplateDoc[]
List of template description documents.
The template_docs structure is documented below.
templateInputs This property is required. GetModelartsModelTemplatesTemplateTemplateInput[]
List of input parameters for the model. The template_inputs structure is documented below.
type This property is required. string
The type of model. The valid values are Classification and Common.
arch This property is required. str
description This property is required. str
The description of the input parameter.
engine This property is required. str
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment This property is required. str
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id This property is required. str
The ID of the input parameter.
name This property is required. str
The name of the input parameter.
template_docs This property is required. Sequence[GetModelartsModelTemplatesTemplateTemplateDoc]
List of template description documents.
The template_docs structure is documented below.
template_inputs This property is required. Sequence[GetModelartsModelTemplatesTemplateTemplateInput]
List of input parameters for the model. The template_inputs structure is documented below.
type This property is required. str
The type of model. The valid values are Classification and Common.
arch This property is required. String
description This property is required. String
The description of the input parameter.
engine This property is required. String
The AI engine.
The valid values are Caffe, Caffe1.0 CPU, Caffe1.0 GPU, MXNet, MXNet1.2.1, MindSpore, PyTorch, PyTorch1.0, TensorFlow, and TensorFlow1.8.
environment This property is required. String
Model runtime environment.
The valid values are ascend-arm-py2.7, python2.7, and python3.6.
id This property is required. String
The ID of the input parameter.
name This property is required. String
The name of the input parameter.
templateDocs This property is required. List<Property Map>
List of template description documents.
The template_docs structure is documented below.
templateInputs This property is required. List<Property Map>
List of input parameters for the model. The template_inputs structure is documented below.
type This property is required. String
The type of model. The valid values are Classification and Common.

GetModelartsModelTemplatesTemplateTemplateDoc

DocName This property is required. string
Document name.
DocUrl This property is required. string
HTTP(S) link of the document.
DocName This property is required. string
Document name.
DocUrl This property is required. string
HTTP(S) link of the document.
docName This property is required. String
Document name.
docUrl This property is required. String
HTTP(S) link of the document.
docName This property is required. string
Document name.
docUrl This property is required. string
HTTP(S) link of the document.
doc_name This property is required. str
Document name.
doc_url This property is required. str
HTTP(S) link of the document.
docName This property is required. String
Document name.
docUrl This property is required. String
HTTP(S) link of the document.

GetModelartsModelTemplatesTemplateTemplateInput

Description This property is required. string
The description of the input parameter.
Id This property is required. string
The ID of the input parameter.
Name This property is required. string
The name of the input parameter.
Type This property is required. string
The type of model. The valid values are Classification and Common.
Description This property is required. string
The description of the input parameter.
Id This property is required. string
The ID of the input parameter.
Name This property is required. string
The name of the input parameter.
Type This property is required. string
The type of model. The valid values are Classification and Common.
description This property is required. String
The description of the input parameter.
id This property is required. String
The ID of the input parameter.
name This property is required. String
The name of the input parameter.
type This property is required. String
The type of model. The valid values are Classification and Common.
description This property is required. string
The description of the input parameter.
id This property is required. string
The ID of the input parameter.
name This property is required. string
The name of the input parameter.
type This property is required. string
The type of model. The valid values are Classification and Common.
description This property is required. str
The description of the input parameter.
id This property is required. str
The ID of the input parameter.
name This property is required. str
The name of the input parameter.
type This property is required. str
The type of model. The valid values are Classification and Common.
description This property is required. String
The description of the input parameter.
id This property is required. String
The ID of the input parameter.
name This property is required. String
The name of the input parameter.
type This property is required. String
The type of model. The valid values are Classification and Common.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.