Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.fc.getServices
Explore with Pulumi AI
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.applyValue(getServicesResult -> getServicesResult.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 dictionary
The following arguments are supported:
- Ids List<string>
- A list of FC services ids.
- Name
Regex Changes to this property will trigger replacement.
- 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 Changes to this property will trigger replacement.
- 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 Changes to this property will trigger replacement.
- 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 Changes to this property will trigger replacement.
- 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 Changes to this property will trigger replacement.
- 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 Changes to this property will trigger replacement.
- 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 This property is required. string - FC service creation time.
- Description
This property is required. string - FC service description.
- Id
This property is required. string - FC service ID.
- Internet
Access This property is required. bool - Indicate whether the service can access to internet or not.
- Last
Modification Time This property is required. string - FC service last modification time.
- Log
Config This property is required. 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
This property is required. string - FC service name.
- Nas
Config This property is required. Pulumi.Ali Cloud. FC. Inputs. Get Services Service Nas Config - A list of one element about the nas configuration.
- Role
This property is required. string - FC service role ARN.
- Vpc
Config This property is required. 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 This property is required. string - FC service creation time.
- Description
This property is required. string - FC service description.
- Id
This property is required. string - FC service ID.
- Internet
Access This property is required. bool - Indicate whether the service can access to internet or not.
- Last
Modification Time This property is required. string - FC service last modification time.
- Log
Config This property is required. GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- Name
This property is required. string - FC service name.
- Nas
Config This property is required. GetServices Service Nas Config - A list of one element about the nas configuration.
- Role
This property is required. string - FC service role ARN.
- Vpc
Config This property is required. GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation
Time This property is required. String - FC service creation time.
- description
This property is required. String - FC service description.
- id
This property is required. String - FC service ID.
- internet
Access This property is required. Boolean - Indicate whether the service can access to internet or not.
- last
Modification Time This property is required. String - FC service last modification time.
- log
Config This property is required. GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- name
This property is required. String - FC service name.
- nas
Config This property is required. GetServices Service Nas Config - A list of one element about the nas configuration.
- role
This property is required. String - FC service role ARN.
- vpc
Config This property is required. GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation
Time This property is required. string - FC service creation time.
- description
This property is required. string - FC service description.
- id
This property is required. string - FC service ID.
- internet
Access This property is required. boolean - Indicate whether the service can access to internet or not.
- last
Modification Time This property is required. string - FC service last modification time.
- log
Config This property is required. GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- name
This property is required. string - FC service name.
- nas
Config This property is required. GetServices Service Nas Config - A list of one element about the nas configuration.
- role
This property is required. string - FC service role ARN.
- vpc
Config This property is required. GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation_
time This property is required. str - FC service creation time.
- description
This property is required. str - FC service description.
- id
This property is required. str - FC service ID.
- internet_
access This property is required. bool - Indicate whether the service can access to internet or not.
- last_
modification_ time This property is required. str - FC service last modification time.
- log_
config This property is required. GetServices Service Log Config - A list of one element containing information about the associated log store. It contains the following attributes:
- name
This property is required. str - FC service name.
- nas_
config This property is required. GetServices Service Nas Config - A list of one element about the nas configuration.
- role
This property is required. str - FC service role ARN.
- vpc_
config This property is required. GetServices Service Vpc Config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
- creation
Time This property is required. String - FC service creation time.
- description
This property is required. String - FC service description.
- id
This property is required. String - FC service ID.
- internet
Access This property is required. Boolean - Indicate whether the service can access to internet or not.
- last
Modification Time This property is required. String - FC service last modification time.
- log
Config This property is required. Property Map - A list of one element containing information about the associated log store. It contains the following attributes:
- name
This property is required. String - FC service name.
- nas
Config This property is required. Property Map - A list of one element about the nas configuration.
- role
This property is required. String - FC service role ARN.
- vpc
Config This property is required. Property Map - A list of one element containing information about accessible VPC resources. It contains the following attributes:
GetServicesServiceLogConfig
GetServicesServiceNasConfig
- Group
Id This property is required. int - The group id of the NAS file system.
- Mount
Points This property is required. List<Pulumi.Ali Cloud. FC. Inputs. Get Services Service Nas Config Mount Point> - The mount points configuration, including following attributes:
- User
Id This property is required. int - The user id of the NAS file system.
- Group
Id This property is required. int - The group id of the NAS file system.
- Mount
Points This property is required. []GetServices Service Nas Config Mount Point - The mount points configuration, including following attributes:
- User
Id This property is required. int - The user id of the NAS file system.
- group
Id This property is required. Integer - The group id of the NAS file system.
- mount
Points This property is required. List<GetServices Service Nas Config Mount Point> - The mount points configuration, including following attributes:
- user
Id This property is required. Integer - The user id of the NAS file system.
- group
Id This property is required. number - The group id of the NAS file system.
- mount
Points This property is required. GetServices Service Nas Config Mount Point[] - The mount points configuration, including following attributes:
- user
Id This property is required. number - The user id of the NAS file system.
- group_
id This property is required. int - The group id of the NAS file system.
- mount_
points This property is required. Sequence[GetServices Service Nas Config Mount Point] - The mount points configuration, including following attributes:
- user_
id This property is required. int - The user id of the NAS file system.
- group
Id This property is required. Number - The group id of the NAS file system.
- mount
Points This property is required. List<Property Map> - The mount points configuration, including following attributes:
- user
Id This property is required. Number - The user id of the NAS file system.
GetServicesServiceNasConfigMountPoint
- Mount
Dir This property is required. string - The local address where to mount your remote NAS directory.
- Server
Addr This property is required. string - The address of the remote NAS directory.
- Mount
Dir This property is required. string - The local address where to mount your remote NAS directory.
- Server
Addr This property is required. string - The address of the remote NAS directory.
- mount
Dir This property is required. String - The local address where to mount your remote NAS directory.
- server
Addr This property is required. String - The address of the remote NAS directory.
- mount
Dir This property is required. string - The local address where to mount your remote NAS directory.
- server
Addr This property is required. string - The address of the remote NAS directory.
- mount_
dir This property is required. str - The local address where to mount your remote NAS directory.
- server_
addr This property is required. str - The address of the remote NAS directory.
- mount
Dir This property is required. String - The local address where to mount your remote NAS directory.
- server
Addr This property is required. String - The address of the remote NAS directory.
GetServicesServiceVpcConfig
- Security
Group Id This property is required. string - Associated security group ID.
- Vpc
Id This property is required. string - Associated VPC ID.
- Vswitch
Ids This property is required. List<string> - Associated vSwitch IDs.
- Security
Group Id This property is required. string - Associated security group ID.
- Vpc
Id This property is required. string - Associated VPC ID.
- Vswitch
Ids This property is required. []string - Associated vSwitch IDs.
- security
Group Id This property is required. String - Associated security group ID.
- vpc
Id This property is required. String - Associated VPC ID.
- vswitch
Ids This property is required. List<String> - Associated vSwitch IDs.
- security
Group Id This property is required. string - Associated security group ID.
- vpc
Id This property is required. string - Associated VPC ID.
- vswitch
Ids This property is required. string[] - Associated vSwitch IDs.
- security_
group_ id This property is required. str - Associated security group ID.
- vpc_
id This property is required. str - Associated VPC ID.
- vswitch_
ids This property is required. Sequence[str] - Associated vSwitch IDs.
- security
Group Id This property is required. String - Associated security group ID.
- vpc
Id This property is required. String - Associated VPC ID.
- vswitch
Ids This property is required. 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
alicloud
Terraform Provider.