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

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

    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",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test = flexibleengine.get_modelarts_model_templates(type="Classification")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getModelartsModelTemplates
          arguments:
            type: Classification
    

    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>
    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]
    func GetModelartsModelTemplates(ctx *Context, args *GetModelartsModelTemplatesArgs, opts ...InvokeOption) (*GetModelartsModelTemplatesResult, error)
    func GetModelartsModelTemplatesOutput(ctx *Context, args *GetModelartsModelTemplatesOutputArgs, opts ...InvokeOption) GetModelartsModelTemplatesResultOutput

    > 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)
    }
    public static CompletableFuture<GetModelartsModelTemplatesResult> getModelartsModelTemplates(GetModelartsModelTemplatesArgs args, InvokeOptions options)
    public static Output<GetModelartsModelTemplatesResult> getModelartsModelTemplates(GetModelartsModelTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getModelartsModelTemplates:getModelartsModelTemplates
      arguments:
        # arguments dictionary

    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 string
    Description string
    The description of the input parameter.
    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.
    Name string
    The name of the input parameter.
    TemplateDocs List<GetModelartsModelTemplatesTemplateTemplateDoc>
    List of template description documents.
    The template_docs structure is documented below.
    TemplateInputs List<GetModelartsModelTemplatesTemplateTemplateInput>
    List of input parameters for the model. The template_inputs structure is documented below.
    Type string
    The type of model. The valid values are Classification and Common.
    Arch string
    Description string
    The description of the input parameter.
    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.
    Name string
    The name of the input parameter.
    TemplateDocs []GetModelartsModelTemplatesTemplateTemplateDoc
    List of template description documents.
    The template_docs structure is documented below.
    TemplateInputs []GetModelartsModelTemplatesTemplateTemplateInput
    List of input parameters for the model. The template_inputs structure is documented below.
    Type string
    The type of model. The valid values are Classification and Common.
    arch String
    description String
    The description of the input parameter.
    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.
    name String
    The name of the input parameter.
    templateDocs List<GetModelartsModelTemplatesTemplateTemplateDoc>
    List of template description documents.
    The template_docs structure is documented below.
    templateInputs List<GetModelartsModelTemplatesTemplateTemplateInput>
    List of input parameters for the model. The template_inputs structure is documented below.
    type String
    The type of model. The valid values are Classification and Common.
    arch string
    description string
    The description of the input parameter.
    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.
    name string
    The name of the input parameter.
    templateDocs GetModelartsModelTemplatesTemplateTemplateDoc[]
    List of template description documents.
    The template_docs structure is documented below.
    templateInputs GetModelartsModelTemplatesTemplateTemplateInput[]
    List of input parameters for the model. The template_inputs structure is documented below.
    type string
    The type of model. The valid values are Classification and Common.
    arch str
    description str
    The description of the input parameter.
    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.
    name str
    The name of the input parameter.
    template_docs Sequence[GetModelartsModelTemplatesTemplateTemplateDoc]
    List of template description documents.
    The template_docs structure is documented below.
    template_inputs Sequence[GetModelartsModelTemplatesTemplateTemplateInput]
    List of input parameters for the model. The template_inputs structure is documented below.
    type str
    The type of model. The valid values are Classification and Common.
    arch String
    description String
    The description of the input parameter.
    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.
    name String
    The name of the input parameter.
    templateDocs List<Property Map>
    List of template description documents.
    The template_docs structure is documented below.
    templateInputs List<Property Map>
    List of input parameters for the model. The template_inputs structure is documented below.
    type String
    The type of model. The valid values are Classification and Common.

    GetModelartsModelTemplatesTemplateTemplateDoc

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

    GetModelartsModelTemplatesTemplateTemplateInput

    Description string
    The description of the input parameter.
    Id string
    The ID of the input parameter.
    Name string
    The name of the input parameter.
    Type string
    The type of model. The valid values are Classification and Common.
    Description string
    The description of the input parameter.
    Id string
    The ID of the input parameter.
    Name string
    The name of the input parameter.
    Type string
    The type of model. The valid values are Classification and Common.
    description String
    The description of the input parameter.
    id String
    The ID of the input parameter.
    name String
    The name of the input parameter.
    type String
    The type of model. The valid values are Classification and Common.
    description string
    The description of the input parameter.
    id string
    The ID of the input parameter.
    name string
    The name of the input parameter.
    type string
    The type of model. The valid values are Classification and Common.
    description str
    The description of the input parameter.
    id str
    The ID of the input parameter.
    name str
    The name of the input parameter.
    type str
    The type of model. The valid values are Classification and Common.
    description String
    The description of the input parameter.
    id String
    The ID of the input parameter.
    name String
    The name of the input parameter.
    type 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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud