signalfx logo
SignalFx v5.7.0, Jan 18 23

signalfx.gcp.getServices

Use this data source to get a list of GCP service names.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SignalFx = Pulumi.SignalFx;

return await Deployment.RunAsync(() => 
{
    var gcpServices = SignalFx.Gcp.GetServices.Invoke();

    // Leaves out most of the integration bits, see the docs
    // for signalfx_gcp_integration for more
    // …
    var gcpMyteam = new SignalFx.Gcp.Integration("gcpMyteam", new()
    {
        Services = new[]
        {
            gcpServices.Apply(getServicesResult => getServicesResult.Services),
        }.Select(__item => __item?.Name).ToList(),
    });

});

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.signalfx.gcp.GcpFunctions;
import com.pulumi.signalfx.gcp.inputs.GetServicesArgs;
import com.pulumi.signalfx.gcp.Integration;
import com.pulumi.signalfx.gcp.IntegrationArgs;
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 gcpServices = GcpFunctions.getServices();

        var gcpMyteam = new Integration("gcpMyteam", IntegrationArgs.builder()        
            .services(gcpServices.applyValue(getServicesResult -> getServicesResult.services()).stream().map(element -> element.name()).collect(toList()))
            .build());

    }
}
import pulumi
import pulumi_signalfx as signalfx

gcp_services = signalfx.gcp.get_services()
# Leaves out most of the integration bits, see the docs
# for signalfx_gcp_integration for more
# …
gcp_myteam = signalfx.gcp.Integration("gcpMyteam", services=[__item.name for __item in [gcp_services.services]])
import * as pulumi from "@pulumi/pulumi";
import * as signalfx from "@pulumi/signalfx";

const gcpServices = signalfx.gcp.getServices({});
// Leaves out most of the integration bits, see the docs
// for signalfx_gcp_integration for more
// …
const gcpMyteam = new signalfx.gcp.Integration("gcpMyteam", {services: [gcpServices.then(gcpServices => gcpServices.services)].map(__item => __item?.name)});

Coming soon!

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(services: Optional[Sequence[GetServicesService]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetServicesResult
def get_services_output(services: Optional[pulumi.Input[Sequence[pulumi.Input[GetServicesServiceArgs]]]] = 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: signalfx:gcp/getServices:getServices
  arguments:
    # arguments dictionary

The following arguments are supported:

getServices Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Services List<Pulumi.SignalFx.Gcp.Outputs.GetServicesService>
Id string

The provider-assigned unique ID for this managed resource.

Services []GetServicesService
id String

The provider-assigned unique ID for this managed resource.

services List<GetServicesService>
id string

The provider-assigned unique ID for this managed resource.

services GetServicesService[]
id str

The provider-assigned unique ID for this managed resource.

services Sequence[GetServicesService]
id String

The provider-assigned unique ID for this managed resource.

services List<Property Map>

Supporting Types

GetServicesService

Name string
Name string
name String
name string
name str
name String

Package Details

Repository
SignalFx pulumi/pulumi-signalfx
License
Apache-2.0
Notes

This Pulumi package is based on the signalfx Terraform Provider.