GetServices

This data source provides the Function Compute services of the current Alibaba Cloud user.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var fcServicesDs = Output.Create(AliCloud.FC.GetServices.InvokeAsync(new AliCloud.FC.GetServicesArgs
        {
            NameRegex = "sample_fc_service",
        }));
        this.FirstFcServiceName = fcServicesDs.Apply(fcServicesDs => fcServicesDs.Services[0].Name);
    }

    [Output("firstFcServiceName")]
    public Output<string> FirstFcServiceName { get; set; }
}

Coming soon!

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"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const fcServicesDs = pulumi.output(alicloud.fc.getServices({
    nameRegex: "sample_fc_service",
}, { async: true }));

export const firstFcServiceName = fcServicesDs.services[0].name;

Using GetServices

function getServices(args: GetServicesArgs, opts?: InvokeOptions): Promise<GetServicesResult>
function  get_services(ids=None, name_regex=None, output_file=None, opts=None)
func GetServices(ctx *Context, args *GetServicesArgs, opts ...InvokeOption) (*GetServicesResult, error)
public static class GetServices {
    public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>
  • A list of FC services ids.
NameRegex string

A regex string to filter results by FC service name.

OutputFile string
Ids []string
  • A list of FC services ids.
NameRegex string

A regex string to filter results by FC service name.

OutputFile string
ids string[]
  • A list of FC services ids.
nameRegex string

A regex string to filter results by FC service name.

outputFile string
ids List[str]
  • A list of FC services ids.
name_regex str

A regex string to filter results by FC service name.

output_file str

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.AliCloud.FC.Outputs.GetServicesService>

A list of FC services. Each element contains the following attributes:

NameRegex string
OutputFile 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 []GetServicesService

A list of FC services. Each element contains the following attributes:

NameRegex string
OutputFile 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 GetServicesService[]

A list of FC services. Each element contains the following attributes:

nameRegex string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of FC services ids.

names List[str]

A list of FC services names.

services List[GetServicesService]

A list of FC services. Each element contains the following attributes:

name_regex str
output_file str

Supporting Types

GetServicesService

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

CreationTime string

FC service creation time.

Description string

FC service description.

Id string

FC service ID.

InternetAccess bool

Indicate whether the service can access to internet or not.

LastModificationTime string

FC service last modification time.

LogConfig Pulumi.AliCloud.FC.Inputs.GetServicesServiceLogConfigArgs

A list of one element containing information about the associated log store. It contains the following attributes:

Name string

FC service name.

Role string

FC service role ARN.

VpcConfig Pulumi.AliCloud.FC.Inputs.GetServicesServiceVpcConfigArgs

A list of one element containing information about accessible VPC resources. It contains the following attributes:

CreationTime string

FC service creation time.

Description string

FC service description.

Id string

FC service ID.

InternetAccess bool

Indicate whether the service can access to internet or not.

LastModificationTime string

FC service last modification time.

LogConfig GetServicesServiceLogConfig

A list of one element containing information about the associated log store. It contains the following attributes:

Name string

FC service name.

Role string

FC service role ARN.

VpcConfig GetServicesServiceVpcConfig

A list of one element containing information about accessible VPC resources. It contains the following attributes:

creationTime string

FC service creation time.

description string

FC service description.

id string

FC service ID.

internetAccess boolean

Indicate whether the service can access to internet or not.

lastModificationTime string

FC service last modification time.

logConfig GetServicesServiceLogConfig

A list of one element containing information about the associated log store. It contains the following attributes:

name string

FC service name.

role string

FC service role ARN.

vpcConfig GetServicesServiceVpcConfig

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.

lastModificationTime str

FC service last modification time.

log_config Dict[GetServicesServiceLogConfig]

A list of one element containing information about the associated log store. It contains the following attributes:

name str

FC service name.

role str

FC service role ARN.

vpc_config Dict[GetServicesServiceVpcConfig]

A list of one element containing information about accessible VPC resources. It contains the following attributes:

GetServicesServiceLogConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Logstore string

Log Service store name.

Project string

Log Service project name.

Logstore string

Log Service store name.

Project string

Log Service project name.

logstore string

Log Service store name.

project string

Log Service project name.

logstore str

Log Service store name.

project str

Log Service project name.

GetServicesServiceVpcConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

SecurityGroupId string

Associated security group ID.

VpcId string

Associated VPC ID.

VswitchIds List<string>

Associated VSwitch IDs.

SecurityGroupId string

Associated security group ID.

VpcId string

Associated VPC ID.

VswitchIds []string

Associated VSwitch IDs.

securityGroupId string

Associated security group ID.

vpcId string

Associated VPC ID.

vswitchIds string[]

Associated VSwitch IDs.

security_group_id str

Associated security group ID.

vpc_id str

Associated VPC ID.

vswitch_ids List[str]

Associated VSwitch IDs.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.