Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
This data source provides Apig Ai Model Provider available to the user.What is Ai Model Provider
NOTE: Available since v1.286.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
// The ID of an existing AI-type APIG gateway
const gatewayId = config.require("gatewayId");
const _default = alicloud.apig.getAiModelProviders({
gatewayId: gatewayId,
});
export const firstProviderId = _default.then(_default => _default.providers?.[0]?.modelProviderId);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
# The ID of an existing AI-type APIG gateway
gateway_id = config.require("gatewayId")
default = alicloud.apig.get_ai_model_providers(gateway_id=gateway_id)
pulumi.export("firstProviderId", default.providers[0].model_provider_id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apig"
"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, "")
// The ID of an existing AI-type APIG gateway
gatewayId := cfg.Require("gatewayId")
_default, err := apig.GetAiModelProviders(ctx, &apig.GetAiModelProvidersArgs{
GatewayId: gatewayId,
}, nil)
if err != nil {
return err
}
ctx.Export("firstProviderId", _default.Providers[0].ModelProviderId)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
// The ID of an existing AI-type APIG gateway
var gatewayId = config.Require("gatewayId");
var @default = AliCloud.Apig.GetAiModelProviders.Invoke(new()
{
GatewayId = gatewayId,
});
return new Dictionary<string, object?>
{
["firstProviderId"] = @default.Apply(@default => @default.Apply(getAiModelProvidersResult => getAiModelProvidersResult.Providers[0]?.ModelProviderId)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.apig.ApigFunctions;
import com.pulumi.alicloud.apig.inputs.GetAiModelProvidersArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 gatewayId = config.require("gatewayId");
final var default = ApigFunctions.getAiModelProviders(GetAiModelProvidersArgs.builder()
.gatewayId(gatewayId)
.build());
ctx.export("firstProviderId", default_.providers()[0].modelProviderId());
}
}
configuration:
gatewayId:
type: string
variables:
default:
fn::invoke:
function: alicloud:apig:getAiModelProviders
arguments:
gatewayId: ${gatewayId}
outputs:
firstProviderId: ${default.providers[0].modelProviderId}
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
data "alicloud_apig_getaimodelproviders" "default" {
gateway_id = var.gatewayId
}
variable "gatewayId" {
type = string
description = "The ID of an existing AI-type APIG gateway"
}
output "firstProviderId" {
value = data.alicloud_apig_getaimodelproviders.default.providers[0].model_provider_id
}
Using getAiModelProviders
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 getAiModelProviders(args: GetAiModelProvidersArgs, opts?: InvokeOptions): Promise<GetAiModelProvidersResult>
function getAiModelProvidersOutput(args: GetAiModelProvidersOutputArgs, opts?: InvokeOutputOptions): Output<GetAiModelProvidersResult>def get_ai_model_providers(gateway_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAiModelProvidersResult
def get_ai_model_providers_output(gateway_id: pulumi.Input[Optional[str]] = None,
ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
output_file: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAiModelProvidersResult]func GetAiModelProviders(ctx *Context, args *GetAiModelProvidersArgs, opts ...InvokeOption) (*GetAiModelProvidersResult, error)
func GetAiModelProvidersOutput(ctx *Context, args *GetAiModelProvidersOutputArgs, opts ...InvokeOption) GetAiModelProvidersResultOutput> Note: This function is named GetAiModelProviders in the Go SDK.
public static class GetAiModelProviders
{
public static Task<GetAiModelProvidersResult> InvokeAsync(GetAiModelProvidersArgs args, InvokeOptions? opts = null)
public static Output<GetAiModelProvidersResult> Invoke(GetAiModelProvidersInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAiModelProvidersResult> Invoke(GetAiModelProvidersInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAiModelProvidersResult> getAiModelProviders(GetAiModelProvidersArgs args, InvokeOptions options)
public static Output<GetAiModelProvidersResult> getAiModelProviders(GetAiModelProvidersArgs args, InvokeOptions options)
public static Output<GetAiModelProvidersResult> getAiModelProviders(GetAiModelProvidersArgs args, InvokeOutputOptions options)
fn::invoke:
function: alicloud:apig/getAiModelProviders:getAiModelProviders
arguments:
# arguments dictionarydata "alicloud_apig_get_ai_model_providers" "name" {
# arguments
}The following arguments are supported:
- Gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- Ids List<string>
- A list of Ai Model Provider IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview).
- Gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- Ids []string
- A list of Ai Model Provider IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview).
- gateway_
id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- ids list(string)
- A list of Ai Model Provider IDs.
- output_
file string - File name where to save data source results (after running
pulumi preview).
- gateway
Id String - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- ids List<String>
- A list of Ai Model Provider IDs.
- output
File String - File name where to save data source results (after running
pulumi preview).
- gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- ids string[]
- A list of Ai Model Provider IDs.
- output
File string - File name where to save data source results (after running
pulumi preview).
- gateway_
id str - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- ids Sequence[str]
- A list of Ai Model Provider IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview).
- gateway
Id String - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- ids List<String>
- A list of Ai Model Provider IDs.
- output
File String - File name where to save data source results (after running
pulumi preview).
getAiModelProviders Result
The following output properties are available:
- Gateway
Id string - The gateway ID of the model card.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Ai Model Provider IDs.
- Providers
List<Pulumi.
Ali Cloud. Apig. Outputs. Get Ai Model Providers Provider> - A list of Ai Model Provider Entries. Each element contains the following attributes:
- Output
File string
- Gateway
Id string - The gateway ID of the model card.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Ai Model Provider IDs.
- Providers
[]Get
Ai Model Providers Provider - A list of Ai Model Provider Entries. Each element contains the following attributes:
- Output
File string
- gateway_
id string - The gateway ID of the model card.
- id string
- The provider-assigned unique ID for this managed resource.
- ids list(string)
- A list of Ai Model Provider IDs.
- providers list(object)
- A list of Ai Model Provider Entries. Each element contains the following attributes:
- output_
file string
- gateway
Id String - The gateway ID of the model card.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Ai Model Provider IDs.
- providers
List<Get
Ai Model Providers Provider> - A list of Ai Model Provider Entries. Each element contains the following attributes:
- output
File String
- gateway
Id string - The gateway ID of the model card.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Ai Model Provider IDs.
- providers
Get
Ai Model Providers Provider[] - A list of Ai Model Provider Entries. Each element contains the following attributes:
- output
File string
- gateway_
id str - The gateway ID of the model card.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Ai Model Provider IDs.
- providers
Sequence[Get
Ai Model Providers Provider] - A list of Ai Model Provider Entries. Each element contains the following attributes:
- output_
file str
- gateway
Id String - The gateway ID of the model card.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Ai Model Provider IDs.
- providers List<Property Map>
- A list of Ai Model Provider Entries. Each element contains the following attributes:
- output
File String
Supporting Types
GetAiModelProvidersProvider
- Bound
Services List<Pulumi.Ali Cloud. Apig. Inputs. Get Ai Model Providers Provider Bound Service> - A list of AI service summaries currently bound to this model vendor. Each element contains the following attributes:
- Display
Name string - Model supplier presentation name.
- Gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- Id string
- The ID of the resource supplied above.
- Model
Cards List<Pulumi.Ali Cloud. Apig. Inputs. Get Ai Model Providers Provider Model Card> - A list of model cards currently associated with the model supplier. Each element contains the following attributes:
- Model
Count int - The number of model cards currently associated with the model supplier.
- Model
Provider string - The model provider identifier.
- Model
Provider stringId - The first ID of the resource.
- Source string
- The model source.
- Update
Time string - The last update time of the model card.
- Bound
Services []GetAi Model Providers Provider Bound Service - A list of AI service summaries currently bound to this model vendor. Each element contains the following attributes:
- Display
Name string - Model supplier presentation name.
- Gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- Id string
- The ID of the resource supplied above.
- Model
Cards []GetAi Model Providers Provider Model Card - A list of model cards currently associated with the model supplier. Each element contains the following attributes:
- Model
Count int - The number of model cards currently associated with the model supplier.
- Model
Provider string - The model provider identifier.
- Model
Provider stringId - The first ID of the resource.
- Source string
- The model source.
- Update
Time string - The last update time of the model card.
- bound_
services list(object) - A list of AI service summaries currently bound to this model vendor. Each element contains the following attributes:
- display_
name string - Model supplier presentation name.
- gateway_
id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- id string
- The ID of the resource supplied above.
- model_
cards list(object) - A list of model cards currently associated with the model supplier. Each element contains the following attributes:
- model_
count number - The number of model cards currently associated with the model supplier.
- model_
provider string - The model provider identifier.
- model_
provider_ stringid - The first ID of the resource.
- source string
- The model source.
- update_
time string - The last update time of the model card.
- bound
Services List<GetAi Model Providers Provider Bound Service> - A list of AI service summaries currently bound to this model vendor. Each element contains the following attributes:
- display
Name String - Model supplier presentation name.
- gateway
Id String - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- id String
- The ID of the resource supplied above.
- model
Cards List<GetAi Model Providers Provider Model Card> - A list of model cards currently associated with the model supplier. Each element contains the following attributes:
- model
Count Integer - The number of model cards currently associated with the model supplier.
- model
Provider String - The model provider identifier.
- model
Provider StringId - The first ID of the resource.
- source String
- The model source.
- update
Time String - The last update time of the model card.
- bound
Services GetAi Model Providers Provider Bound Service[] - A list of AI service summaries currently bound to this model vendor. Each element contains the following attributes:
- display
Name string - Model supplier presentation name.
- gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- id string
- The ID of the resource supplied above.
- model
Cards GetAi Model Providers Provider Model Card[] - A list of model cards currently associated with the model supplier. Each element contains the following attributes:
- model
Count number - The number of model cards currently associated with the model supplier.
- model
Provider string - The model provider identifier.
- model
Provider stringId - The first ID of the resource.
- source string
- The model source.
- update
Time string - The last update time of the model card.
- bound_
services Sequence[GetAi Model Providers Provider Bound Service] - A list of AI service summaries currently bound to this model vendor. Each element contains the following attributes:
- display_
name str - Model supplier presentation name.
- gateway_
id str - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- id str
- The ID of the resource supplied above.
- model_
cards Sequence[GetAi Model Providers Provider Model Card] - A list of model cards currently associated with the model supplier. Each element contains the following attributes:
- model_
count int - The number of model cards currently associated with the model supplier.
- model_
provider str - The model provider identifier.
- model_
provider_ strid - The first ID of the resource.
- source str
- The model source.
- update_
time str - The last update time of the model card.
- bound
Services List<Property Map> - A list of AI service summaries currently bound to this model vendor. Each element contains the following attributes:
- display
Name String - Model supplier presentation name.
- gateway
Id String - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- id String
- The ID of the resource supplied above.
- model
Cards List<Property Map> - A list of model cards currently associated with the model supplier. Each element contains the following attributes:
- model
Count Number - The number of model cards currently associated with the model supplier.
- model
Provider String - The model provider identifier.
- model
Provider StringId - The first ID of the resource.
- source String
- The model source.
- update
Time String - The last update time of the model card.
GetAiModelProvidersProviderBoundService
- Express
Type string - The express type of the AI service.
- Group
Name string - The group name of the AI service.
- Name string
- The name of the AI service.
- Namespace string
- The namespace of the AI service.
- Pai
Workspace stringId - The PAI workspace ID.
- Pai
Workspace stringName - The PAI workspace name.
- Qualifier string
- The qualifier of the AI service.
- Service
Id string - The ID of the AI service.
- Source
Type string - The source type of the AI service.
- Status string
- The status of the AI service.
- Express
Type string - The express type of the AI service.
- Group
Name string - The group name of the AI service.
- Name string
- The name of the AI service.
- Namespace string
- The namespace of the AI service.
- Pai
Workspace stringId - The PAI workspace ID.
- Pai
Workspace stringName - The PAI workspace name.
- Qualifier string
- The qualifier of the AI service.
- Service
Id string - The ID of the AI service.
- Source
Type string - The source type of the AI service.
- Status string
- The status of the AI service.
- express_
type string - The express type of the AI service.
- group_
name string - The group name of the AI service.
- name string
- The name of the AI service.
- namespace string
- The namespace of the AI service.
- pai_
workspace_ stringid - The PAI workspace ID.
- pai_
workspace_ stringname - The PAI workspace name.
- qualifier string
- The qualifier of the AI service.
- service_
id string - The ID of the AI service.
- source_
type string - The source type of the AI service.
- status string
- The status of the AI service.
- express
Type String - The express type of the AI service.
- group
Name String - The group name of the AI service.
- name String
- The name of the AI service.
- namespace String
- The namespace of the AI service.
- pai
Workspace StringId - The PAI workspace ID.
- pai
Workspace StringName - The PAI workspace name.
- qualifier String
- The qualifier of the AI service.
- service
Id String - The ID of the AI service.
- source
Type String - The source type of the AI service.
- status String
- The status of the AI service.
- express
Type string - The express type of the AI service.
- group
Name string - The group name of the AI service.
- name string
- The name of the AI service.
- namespace string
- The namespace of the AI service.
- pai
Workspace stringId - The PAI workspace ID.
- pai
Workspace stringName - The PAI workspace name.
- qualifier string
- The qualifier of the AI service.
- service
Id string - The ID of the AI service.
- source
Type string - The source type of the AI service.
- status string
- The status of the AI service.
- express_
type str - The express type of the AI service.
- group_
name str - The group name of the AI service.
- name str
- The name of the AI service.
- namespace str
- The namespace of the AI service.
- pai_
workspace_ strid - The PAI workspace ID.
- pai_
workspace_ strname - The PAI workspace name.
- qualifier str
- The qualifier of the AI service.
- service_
id str - The ID of the AI service.
- source_
type str - The source type of the AI service.
- status str
- The status of the AI service.
- express
Type String - The express type of the AI service.
- group
Name String - The group name of the AI service.
- name String
- The name of the AI service.
- namespace String
- The namespace of the AI service.
- pai
Workspace StringId - The PAI workspace ID.
- pai
Workspace StringName - The PAI workspace name.
- qualifier String
- The qualifier of the AI service.
- service
Id String - The ID of the AI service.
- source
Type String - The source type of the AI service.
- status String
- The status of the AI service.
GetAiModelProvidersProviderModelCard
- Gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- Model
Card stringId - The ID of the model card.
- Model
Name string - The model name.
- Model
Provider string - The model provider identifier.
- Source string
- The model source.
- Update
Time string - The last update time of the model card.
- Gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- Model
Card stringId - The ID of the model card.
- Model
Name string - The model name.
- Model
Provider string - The model provider identifier.
- Source string
- The model source.
- Update
Time string - The last update time of the model card.
- gateway_
id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- model_
card_ stringid - The ID of the model card.
- model_
name string - The model name.
- model_
provider string - The model provider identifier.
- source string
- The model source.
- update_
time string - The last update time of the model card.
- gateway
Id String - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- model
Card StringId - The ID of the model card.
- model
Name String - The model name.
- model
Provider String - The model provider identifier.
- source String
- The model source.
- update
Time String - The last update time of the model card.
- gateway
Id string - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- model
Card stringId - The ID of the model card.
- model
Name string - The model name.
- model
Provider string - The model provider identifier.
- source string
- The model source.
- update
Time string - The last update time of the model card.
- gateway_
id str - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- model_
card_ strid - The ID of the model card.
- model_
name str - The model name.
- model_
provider str - The model provider identifier.
- source str
- The model source.
- update_
time str - The last update time of the model card.
- gateway
Id String - The ID of the AI gateway instance. The target instance must exist, belong to the current account, and be of the AI gateway type.
- model
Card StringId - The ID of the model card.
- model
Name String - The model name.
- model
Provider String - The model provider identifier.
- source String
- The model source.
- update
Time String - The last update time of the model card.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi