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 Source available to the user. What is Source
NOTE: Available since v1.292.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.apig.getSources({
gatewayId: "gw-cq7l5s5lhtgi6q***",
});
export const firstSourceId = _default.then(_default => _default.sources?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.apig.get_sources(gateway_id="gw-cq7l5s5lhtgi6q***")
pulumi.export("firstSourceId", default.sources[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := apig.GetSources(ctx, &apig.GetSourcesArgs{
GatewayId: pulumi.StringRef("gw-cq7l5s5lhtgi6q***"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstSourceId", _default.Sources[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Apig.GetSources.Invoke(new()
{
GatewayId = "gw-cq7l5s5lhtgi6q***",
});
return new Dictionary<string, object?>
{
["firstSourceId"] = @default.Apply(@default => @default.Apply(getSourcesResult => getSourcesResult.Sources[0]?.Id)),
};
});
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.GetSourcesArgs;
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 default = ApigFunctions.getSources(GetSourcesArgs.builder()
.gatewayId("gw-cq7l5s5lhtgi6q***")
.build());
ctx.export("firstSourceId", default_.sources()[0].id());
}
}
variables:
default:
fn::invoke:
function: alicloud:apig:getSources
arguments:
gatewayId: gw-cq7l5s5lhtgi6q***
outputs:
firstSourceId: ${default.sources[0].id}
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
data "alicloud_apig_getsources" "default" {
gateway_id = "gw-cq7l5s5lhtgi6q***"
}
output "firstSourceId" {
value = data.alicloud_apig_getsources.default.sources[0].id
}
Using getSources
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 getSources(args: GetSourcesArgs, opts?: InvokeOptions): Promise<GetSourcesResult>
function getSourcesOutput(args: GetSourcesOutputArgs, opts?: InvokeOutputOptions): Output<GetSourcesResult>def get_sources(enable_details: Optional[bool] = None,
gateway_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSourcesResult
def get_sources_output(enable_details: pulumi.Input[Optional[bool]] = None,
gateway_id: pulumi.Input[Optional[str]] = None,
ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
name_regex: pulumi.Input[Optional[str]] = None,
output_file: pulumi.Input[Optional[str]] = None,
resource_group_id: pulumi.Input[Optional[str]] = None,
type: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSourcesResult]func GetSources(ctx *Context, args *GetSourcesArgs, opts ...InvokeOption) (*GetSourcesResult, error)
func GetSourcesOutput(ctx *Context, args *GetSourcesOutputArgs, opts ...InvokeOption) GetSourcesResultOutput> Note: This function is named GetSources in the Go SDK.
public static class GetSources
{
public static Task<GetSourcesResult> InvokeAsync(GetSourcesArgs args, InvokeOptions? opts = null)
public static Output<GetSourcesResult> Invoke(GetSourcesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSourcesResult> Invoke(GetSourcesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSourcesResult> getSources(GetSourcesArgs args, InvokeOptions options)
public static Output<GetSourcesResult> getSources(GetSourcesArgs args, InvokeOptions options)
public static Output<GetSourcesResult> getSources(GetSourcesArgs args, InvokeOutputOptions options)
fn::invoke:
function: alicloud:apig/getSources:getSources
arguments:
# arguments dictionarydata "alicloud_apig_get_sources" "name" {
# arguments
}The following arguments are supported:
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Gateway
Id string - The ID of the gateway instance.
- Ids List<string>
- A list of Source IDs.
- Name
Regex string - A regex string to filter results by Source name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Resource
Group stringId - The ID of the resource group.
- Type string
- The type of the source. Valid values:
K8S,MSE_NACOS.
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Gateway
Id string - The ID of the gateway instance.
- Ids []string
- A list of Source IDs.
- Name
Regex string - A regex string to filter results by Source name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Resource
Group stringId - The ID of the resource group.
- Type string
- The type of the source. Valid values:
K8S,MSE_NACOS.
- enable_
details bool - Default to
false. Set it totruecan output more details about resource attributes. - gateway_
id string - The ID of the gateway instance.
- ids list(string)
- A list of Source IDs.
- name_
regex string - A regex string to filter results by Source name.
- output_
file string - File name where to save data source results (after running
pulumi preview). - resource_
group_ stringid - The ID of the resource group.
- type string
- The type of the source. Valid values:
K8S,MSE_NACOS.
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - gateway
Id String - The ID of the gateway instance.
- ids List<String>
- A list of Source IDs.
- name
Regex String - A regex string to filter results by Source name.
- output
File String - File name where to save data source results (after running
pulumi preview). - resource
Group StringId - The ID of the resource group.
- type String
- The type of the source. Valid values:
K8S,MSE_NACOS.
- enable
Details boolean - Default to
false. Set it totruecan output more details about resource attributes. - gateway
Id string - The ID of the gateway instance.
- ids string[]
- A list of Source IDs.
- name
Regex string - A regex string to filter results by Source name.
- output
File string - File name where to save data source results (after running
pulumi preview). - resource
Group stringId - The ID of the resource group.
- type string
- The type of the source. Valid values:
K8S,MSE_NACOS.
- enable_
details bool - Default to
false. Set it totruecan output more details about resource attributes. - gateway_
id str - The ID of the gateway instance.
- ids Sequence[str]
- A list of Source IDs.
- name_
regex str - A regex string to filter results by Source name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - resource_
group_ strid - The ID of the resource group.
- type str
- The type of the source. Valid values:
K8S,MSE_NACOS.
- enable
Details Boolean - Default to
false. Set it totruecan output more details about resource attributes. - gateway
Id String - The ID of the gateway instance.
- ids List<String>
- A list of Source IDs.
- name
Regex String - A regex string to filter results by Source name.
- output
File String - File name where to save data source results (after running
pulumi preview). - resource
Group StringId - The ID of the resource group.
- type String
- The type of the source. Valid values:
K8S,MSE_NACOS.
getSources Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Source IDs.
- Names List<string>
- A list of name of Sources.
- Sources
List<Pulumi.
Ali Cloud. Apig. Outputs. Get Sources Source> - A list of Source Entries. Each element contains the following attributes:
- Enable
Details bool - Gateway
Id string - NOTE: This field is only available when
enableDetailsistrue. The ID of the gateway instance. - Name
Regex string - Output
File string - Resource
Group stringId - The ID of the resource group.
- Type string
- NOTE: This field is only available when
enableDetailsistrue. The type of the source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Source IDs.
- Names []string
- A list of name of Sources.
- Sources
[]Get
Sources Source - A list of Source Entries. Each element contains the following attributes:
- Enable
Details bool - Gateway
Id string - NOTE: This field is only available when
enableDetailsistrue. The ID of the gateway instance. - Name
Regex string - Output
File string - Resource
Group stringId - The ID of the resource group.
- Type string
- NOTE: This field is only available when
enableDetailsistrue. The type of the source.
- id string
- The provider-assigned unique ID for this managed resource.
- ids list(string)
- A list of Source IDs.
- names list(string)
- A list of name of Sources.
- sources list(object)
- A list of Source Entries. Each element contains the following attributes:
- enable_
details bool - gateway_
id string - NOTE: This field is only available when
enableDetailsistrue. The ID of the gateway instance. - name_
regex string - output_
file string - resource_
group_ stringid - The ID of the resource group.
- type string
- NOTE: This field is only available when
enableDetailsistrue. The type of the source.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Source IDs.
- names List<String>
- A list of name of Sources.
- sources
List<Get
Sources Source> - A list of Source Entries. Each element contains the following attributes:
- enable
Details Boolean - gateway
Id String - NOTE: This field is only available when
enableDetailsistrue. The ID of the gateway instance. - name
Regex String - output
File String - resource
Group StringId - The ID of the resource group.
- type String
- NOTE: This field is only available when
enableDetailsistrue. The type of the source.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Source IDs.
- names string[]
- A list of name of Sources.
- sources
Get
Sources Source[] - A list of Source Entries. Each element contains the following attributes:
- enable
Details boolean - gateway
Id string - NOTE: This field is only available when
enableDetailsistrue. The ID of the gateway instance. - name
Regex string - output
File string - resource
Group stringId - The ID of the resource group.
- type string
- NOTE: This field is only available when
enableDetailsistrue. The type of the source.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Source IDs.
- names Sequence[str]
- A list of name of Sources.
- sources
Sequence[Get
Sources Source] - A list of Source Entries. Each element contains the following attributes:
- enable_
details bool - gateway_
id str - NOTE: This field is only available when
enableDetailsistrue. The ID of the gateway instance. - name_
regex str - output_
file str - resource_
group_ strid - The ID of the resource group.
- type str
- NOTE: This field is only available when
enableDetailsistrue. The type of the source.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Source IDs.
- names List<String>
- A list of name of Sources.
- sources List<Property Map>
- A list of Source Entries. Each element contains the following attributes:
- enable
Details Boolean - gateway
Id String - NOTE: This field is only available when
enableDetailsistrue. The ID of the gateway instance. - name
Regex String - output
File String - resource
Group StringId - The ID of the resource group.
- type String
- NOTE: This field is only available when
enableDetailsistrue. The type of the source.
Supporting Types
GetSourcesSource
- Association
Reason string - The reason for the association status.
- Association
Status string - The association status of the source.
- Create
Time int - The creation timestamp of the source.
- Gateway
Id string - The ID of the gateway instance.
- Id string
- The ID of the resource supplied above.
- K8s
Source List<Pulumi.Infos Ali Cloud. Apig. Inputs. Get Sources Source K8s Source Info> - The ACK cluster source information.
- Nacos
Source List<Pulumi.Infos Ali Cloud. Apig. Inputs. Get Sources Source Nacos Source Info> - The MSE Nacos source information.
- Resource
Group stringId - The ID of the resource group.
- Source
Id string - The ID of the source.
- Source
Name string - The name of the source.
- Type string
- The type of the source. Valid values:
K8S,MSE_NACOS. - Update
Time int - The update timestamp of the source.
- Association
Reason string - The reason for the association status.
- Association
Status string - The association status of the source.
- Create
Time int - The creation timestamp of the source.
- Gateway
Id string - The ID of the gateway instance.
- Id string
- The ID of the resource supplied above.
- K8s
Source []GetInfos Sources Source K8s Source Info - The ACK cluster source information.
- Nacos
Source []GetInfos Sources Source Nacos Source Info - The MSE Nacos source information.
- Resource
Group stringId - The ID of the resource group.
- Source
Id string - The ID of the source.
- Source
Name string - The name of the source.
- Type string
- The type of the source. Valid values:
K8S,MSE_NACOS. - Update
Time int - The update timestamp of the source.
- association_
reason string - The reason for the association status.
- association_
status string - The association status of the source.
- create_
time number - The creation timestamp of the source.
- gateway_
id string - The ID of the gateway instance.
- id string
- The ID of the resource supplied above.
- k8s_
source_ list(object)infos - The ACK cluster source information.
- nacos_
source_ list(object)infos - The MSE Nacos source information.
- resource_
group_ stringid - The ID of the resource group.
- source_
id string - The ID of the source.
- source_
name string - The name of the source.
- type string
- The type of the source. Valid values:
K8S,MSE_NACOS. - update_
time number - The update timestamp of the source.
- association
Reason String - The reason for the association status.
- association
Status String - The association status of the source.
- create
Time Integer - The creation timestamp of the source.
- gateway
Id String - The ID of the gateway instance.
- id String
- The ID of the resource supplied above.
- k8s
Source List<GetInfos Sources Source K8s Source Info> - The ACK cluster source information.
- nacos
Source List<GetInfos Sources Source Nacos Source Info> - The MSE Nacos source information.
- resource
Group StringId - The ID of the resource group.
- source
Id String - The ID of the source.
- source
Name String - The name of the source.
- type String
- The type of the source. Valid values:
K8S,MSE_NACOS. - update
Time Integer - The update timestamp of the source.
- association
Reason string - The reason for the association status.
- association
Status string - The association status of the source.
- create
Time number - The creation timestamp of the source.
- gateway
Id string - The ID of the gateway instance.
- id string
- The ID of the resource supplied above.
- k8s
Source GetInfos Sources Source K8s Source Info[] - The ACK cluster source information.
- nacos
Source GetInfos Sources Source Nacos Source Info[] - The MSE Nacos source information.
- resource
Group stringId - The ID of the resource group.
- source
Id string - The ID of the source.
- source
Name string - The name of the source.
- type string
- The type of the source. Valid values:
K8S,MSE_NACOS. - update
Time number - The update timestamp of the source.
- association_
reason str - The reason for the association status.
- association_
status str - The association status of the source.
- create_
time int - The creation timestamp of the source.
- gateway_
id str - The ID of the gateway instance.
- id str
- The ID of the resource supplied above.
- k8s_
source_ Sequence[Getinfos Sources Source K8s Source Info] - The ACK cluster source information.
- nacos_
source_ Sequence[Getinfos Sources Source Nacos Source Info] - The MSE Nacos source information.
- resource_
group_ strid - The ID of the resource group.
- source_
id str - The ID of the source.
- source_
name str - The name of the source.
- type str
- The type of the source. Valid values:
K8S,MSE_NACOS. - update_
time int - The update timestamp of the source.
- association
Reason String - The reason for the association status.
- association
Status String - The association status of the source.
- create
Time Number - The creation timestamp of the source.
- gateway
Id String - The ID of the gateway instance.
- id String
- The ID of the resource supplied above.
- k8s
Source List<Property Map>Infos - The ACK cluster source information.
- nacos
Source List<Property Map>Infos - The MSE Nacos source information.
- resource
Group StringId - The ID of the resource group.
- source
Id String - The ID of the source.
- source
Name String - The name of the source.
- type String
- The type of the source. Valid values:
K8S,MSE_NACOS. - update
Time Number - The update timestamp of the source.
GetSourcesSourceK8sSourceInfo
- Cluster
Id string - The ID of the Nacos cluster.
- Cluster
Id string - The ID of the Nacos cluster.
- cluster_
id string - The ID of the Nacos cluster.
- cluster
Id String - The ID of the Nacos cluster.
- cluster
Id string - The ID of the Nacos cluster.
- cluster_
id str - The ID of the Nacos cluster.
- cluster
Id String - The ID of the Nacos cluster.
GetSourcesSourceNacosSourceInfo
- Address string
- The access address of the Nacos instance.
- Cluster
Id string - The ID of the Nacos cluster.
- Instance
Id string - The ID of the MSE Nacos instance.
- Address string
- The access address of the Nacos instance.
- Cluster
Id string - The ID of the Nacos cluster.
- Instance
Id string - The ID of the MSE Nacos instance.
- address string
- The access address of the Nacos instance.
- cluster_
id string - The ID of the Nacos cluster.
- instance_
id string - The ID of the MSE Nacos instance.
- address String
- The access address of the Nacos instance.
- cluster
Id String - The ID of the Nacos cluster.
- instance
Id String - The ID of the MSE Nacos instance.
- address string
- The access address of the Nacos instance.
- cluster
Id string - The ID of the Nacos cluster.
- instance
Id string - The ID of the MSE Nacos instance.
- address str
- The access address of the Nacos instance.
- cluster_
id str - The ID of the Nacos cluster.
- instance_
id str - The ID of the MSE Nacos instance.
- address String
- The access address of the Nacos instance.
- cluster
Id String - The ID of the Nacos cluster.
- instance
Id String - The ID of the MSE Nacos instance.
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