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.
- Name
Regex string A regex string to filter results by FC service name.
- Output
File 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.
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 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[Get
Services Service] 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.
- 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 Args 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.
- Vpc
Config Pulumi.Ali Cloud. FC. Inputs. Get Services Service Vpc Config Args 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.
- 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.
- 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 Dict[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.
- role str
FC service role ARN.
- vpc_
config Dict[GetServices Service Vpc Config] 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.
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.
- 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 string[] Associated VSwitch IDs.
- security_
group_ strid 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
alicloudTerraform Provider.