Alibaba Cloud v3.87.0 published on Saturday, Oct 18, 2025 by Pulumi
alicloud.fc.getServices
This data source provides the Function Compute services of the current Alibaba Cloud user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const fcServicesDs = alicloud.fc.getServices({
nameRegex: "sample_fc_service",
});
export const firstFcServiceName = fcServicesDs.then(fcServicesDs => fcServicesDs.services?.[0]?.name);
import pulumi
import pulumi_alicloud as alicloud
fc_services_ds = alicloud.fc.get_services(name_regex="sample_fc_service")
pulumi.export("firstFcServiceName", fc_services_ds.services[0].name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fcServicesDs, err := fc.GetServices(ctx, &fc.GetServicesArgs{
NameRegex: pulumi.StringRef("sample_fc_service"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstFcServiceName", fcServicesDs.Services[0].Name)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var fcServicesDs = AliCloud.FC.GetServices.Invoke(new()
{
NameRegex = "sample_fc_service",
});
return new Dictionary<string, object?>
{
["firstFcServiceName"] = fcServicesDs.Apply(getServicesResult => getServicesResult.Services[0]?.Name),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.FcFunctions;
import com.pulumi.alicloud.fc.inputs.GetServicesArgs;
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 fcServicesDs = FcFunctions.getServices(GetServicesArgs.builder()
.nameRegex("sample_fc_service")
.build());
ctx.export("firstFcServiceName", fcServicesDs.services()[0].name());
}
}
variables:
fcServicesDs:
fn::invoke:
function: alicloud:fc:getServices
arguments:
nameRegex: sample_fc_service
outputs:
firstFcServiceName: ${fcServicesDs.services[0].name}
Using getServices
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 getServices(args: GetServicesArgs, opts?: InvokeOptions): Promise<GetServicesResult>
function getServicesOutput(args: GetServicesOutputArgs, opts?: InvokeOptions): Output<GetServicesResult>def get_services(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServicesResult
def get_services_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServicesResult]func GetServices(ctx *Context, args *GetServicesArgs, opts ...InvokeOption) (*GetServicesResult, error)
func GetServicesOutput(ctx *Context, args *GetServicesOutputArgs, opts ...InvokeOption) GetServicesResultOutput> Note: This function is named GetServices in the Go SDK.
public static class GetServices
{
public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args, InvokeOptions? opts = null)
public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:fc/getServices:getServices
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of FC services ids.
- Name
Regex string - A regex string to filter results by FC service name.
- Output
File string - File name where to save data source results (after running
pulumi preview).
- Ids []string
- A list of FC services ids.
- Name
Regex string - A regex string to filter results by FC service name.
- Output
File string - File name where to save data source results (after running
pulumi preview).
- ids List<String>
- A list of FC services ids.
- name
Regex String - A regex string to filter results by FC service name.
- output
File String - File name where to save data source results (after running
pulumi preview).
- ids string[]
- A list of FC services ids.
- name
Regex string - A regex string to filter results by FC service name.
- output
File string - File name where to save data source results (after running
pulumi preview).
- ids Sequence[str]
- A list of FC services ids.
- name_
regex str - A regex string to filter results by FC service name.
- output_
file str - File name where to save data source results (after running
pulumi preview).
- ids List<String>
- A list of FC services ids.
- name
Regex String - A regex string to filter results by FC service name.
- output
File String - File name where to save data source results (after running
pulumi preview).
getServices Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of FC services ids.
- Names List<string>
- A list of FC services names.
- Services
List<Pulumi.
Ali Cloud. FC. Outputs. Get Services Service> - A list of FC services. Each element contains the following attributes:
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of FC services ids.
- Names []string
- A list of FC services names.
- Services
[]Get
Services Service - A list of FC services. Each element contains the following attributes:
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of FC services ids.
- names List<String>
- A list of FC services names.
- services
List<Get
Services Service> - A list of FC services. Each element contains the following attributes:
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of FC services ids.
- names string[]
- A list of FC services names.
- services
Get
Services Service[] - A list of FC services. Each element contains the following attributes:
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of FC services ids.
- names Sequence[str]
- A list of FC services names.
- services
Sequence[Get
Services Service] - A list of FC services. Each element contains the following attributes:
- name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of FC services ids.
- names List<String>
- A list of FC services names.
- services List<Property Map>
- A list of FC services. Each element contains the following attributes:
- name
Regex String - output
File String
Supporting Types
GetServicesService
- Creation
Time string - FC service creation time.
- Description string
- FC service description.
- Id string
- FC service ID.
- Internet
Access bool - Indicate whether the service can access to internet or not.
- Last
Modification stringTime - FC service last modification time.
- Log
Config Pulumi.Ali Cloud. FC. Inputs. Get Services Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- Name string
- FC service name.
- Nas
Config Pulumi.Ali Cloud. FC. Inputs. Get Services Service Nas Config - A list of one element about the nas configuration.
- Role string
- FC service role ARN.
- Vpc
Config Pulumi.Ali Cloud. FC. Inputs. Get Services Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- Creation
Time string - FC service creation time.
- Description string
- FC service description.
- Id string
- FC service ID.
- Internet
Access bool - Indicate whether the service can access to internet or not.
- Last
Modification stringTime - FC service last modification time.
- Log
Config GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- Name string
- FC service name.
- Nas
Config GetServices Service Nas Config - A list of one element about the nas configuration.
- Role string
- FC service role ARN.
- Vpc
Config GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation
Time String - FC service creation time.
- description String
- FC service description.
- id String
- FC service ID.
- internet
Access Boolean - Indicate whether the service can access to internet or not.
- last
Modification StringTime - FC service last modification time.
- log
Config GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- name String
- FC service name.
- nas
Config GetServices Service Nas Config - A list of one element about the nas configuration.
- role String
- FC service role ARN.
- vpc
Config GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation
Time string - FC service creation time.
- description string
- FC service description.
- id string
- FC service ID.
- internet
Access boolean - Indicate whether the service can access to internet or not.
- last
Modification stringTime - FC service last modification time.
- log
Config GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- name string
- FC service name.
- nas
Config GetServices Service Nas Config - A list of one element about the nas configuration.
- role string
- FC service role ARN.
- vpc
Config GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation_
time str - FC service creation time.
- description str
- FC service description.
- id str
- FC service ID.
- internet_
access bool - Indicate whether the service can access to internet or not.
- last_
modification_ strtime - FC service last modification time.
- log_
config GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- name str
- FC service name.
- nas_
config GetServices Service Nas Config - A list of one element about the nas configuration.
- role str
- FC service role ARN.
- vpc_
config GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation
Time String - FC service creation time.
- description String
- FC service description.
- id String
- FC service ID.
- internet
Access Boolean - Indicate whether the service can access to internet or not.
- last
Modification StringTime - FC service last modification time.
- log
Config Property Map - A list of one element containing information about the associated log store. It contains the following attributes:
- name String
- FC service name.
- nas
Config Property Map - A list of one element about the nas configuration.
- role String
- FC service role ARN.
- vpc
Config Property Map - A list of one element containing information about accessible VPC resources. It contains the following attributes:
GetServicesServiceLogConfig
GetServicesServiceNasConfig
- Group
Id int - The group id of the NAS file system.
- Mount
Points List<Pulumi.Ali Cloud. FC. Inputs. Get Services Service Nas Config Mount Point> - The mount points configuration, including following attributes:
- User
Id int - The user id of the NAS file system.
- Group
Id int - The group id of the NAS file system.
- Mount
Points []GetServices Service Nas Config Mount Point - The mount points configuration, including following attributes:
- User
Id int - The user id of the NAS file system.
- group
Id Integer - The group id of the NAS file system.
- mount
Points List<GetServices Service Nas Config Mount Point> - The mount points configuration, including following attributes:
- user
Id Integer - The user id of the NAS file system.
- group
Id number - The group id of the NAS file system.
- mount
Points GetServices Service Nas Config Mount Point[] - The mount points configuration, including following attributes:
- user
Id number - The user id of the NAS file system.
- group_
id int - The group id of the NAS file system.
- mount_
points Sequence[GetServices Service Nas Config Mount Point] - The mount points configuration, including following attributes:
- user_
id int - The user id of the NAS file system.
- group
Id Number - The group id of the NAS file system.
- mount
Points List<Property Map> - The mount points configuration, including following attributes:
- user
Id Number - The user id of the NAS file system.
GetServicesServiceNasConfigMountPoint
- Mount
Dir string - The local address where to mount your remote NAS directory.
- Server
Addr string - The address of the remote NAS directory.
- Mount
Dir string - The local address where to mount your remote NAS directory.
- Server
Addr string - The address of the remote NAS directory.
- mount
Dir String - The local address where to mount your remote NAS directory.
- server
Addr String - The address of the remote NAS directory.
- mount
Dir string - The local address where to mount your remote NAS directory.
- server
Addr string - The address of the remote NAS directory.
- mount_
dir str - The local address where to mount your remote NAS directory.
- server_
addr str - The address of the remote NAS directory.
- mount
Dir String - The local address where to mount your remote NAS directory.
- server
Addr String - The address of the remote NAS directory.
GetServicesServiceVpcConfig
- Security
Group stringId - Associated security group ID.
- Vpc
Id string - Associated VPC ID.
- Vswitch
Ids List<string> - Associated vSwitch IDs.
- Security
Group stringId - Associated security group ID.
- Vpc
Id string - Associated VPC ID.
- Vswitch
Ids []string - Associated vSwitch IDs.
- security
Group StringId - Associated security group ID.
- vpc
Id String - Associated VPC ID.
- vswitch
Ids List<String> - Associated vSwitch IDs.
- security
Group stringId - Associated security group ID.
- vpc
Id string - Associated VPC ID.
- vswitch
Ids string[] - Associated vSwitch IDs.
- security_
group_ strid - Associated security group ID.
- vpc_
id str - Associated VPC ID.
- vswitch_
ids Sequence[str] - Associated vSwitch IDs.
- security
Group StringId - Associated security group ID.
- vpc
Id String - Associated VPC ID.
- vswitch
Ids List<String> - Associated vSwitch IDs.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
