1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. accesscontextmanager
  5. getSupportedServices
Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi

    Lists all VPC Service Controls supported services.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const all = gcp.accesscontextmanager.getSupportedServices({});
    
    import pulumi
    import pulumi_gcp as gcp
    
    all = gcp.accesscontextmanager.get_supported_services()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/accesscontextmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := accesscontextmanager.GetSupportedServices(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Gcp.AccessContextManager.GetSupportedServices.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.accesscontextmanager.AccesscontextmanagerFunctions;
    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 all = AccesscontextmanagerFunctions.getSupportedServices(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: gcp:accesscontextmanager:getSupportedServices
          arguments: {}
    

    Filter to GA services available on restricted VIP

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    export = async () => {
        const all = await gcp.accesscontextmanager.getSupportedServices({});
        const gaRestrictedServices = .filter(s => s.serviceSupportStage == "GA" && s.availableOnRestrictedVip).map(s => (s.name));
        return {
            gaRestrictedServices: gaRestrictedServices,
        };
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    all = gcp.accesscontextmanager.get_supported_services()
    ga_restricted_services = [s.name for s in all.supported_services if s.service_support_stage == "GA" and s.available_on_restricted_vip]
    pulumi.export("gaRestrictedServices", ga_restricted_services)
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Gcp.AccessContextManager.GetSupportedServices.Invoke();
    
        var gaRestrictedServices = .Where(s => s.ServiceSupportStage == "GA" && s.AvailableOnRestrictedVip).Select(s => 
        {
            return s.Name;
        }).ToList();
    
        return new Dictionary<string, object?>
        {
            ["gaRestrictedServices"] = gaRestrictedServices,
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    

    Using getSupportedServices

    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 getSupportedServices(opts?: InvokeOptions): Promise<GetSupportedServicesResult>
    function getSupportedServicesOutput(opts?: InvokeOptions): Output<GetSupportedServicesResult>
    def get_supported_services(opts: Optional[InvokeOptions] = None) -> GetSupportedServicesResult
    def get_supported_services_output(opts: Optional[InvokeOptions] = None) -> Output[GetSupportedServicesResult]
    func GetSupportedServices(ctx *Context, opts ...InvokeOption) (*GetSupportedServicesResult, error)
    func GetSupportedServicesOutput(ctx *Context, opts ...InvokeOption) GetSupportedServicesResultOutput

    > Note: This function is named GetSupportedServices in the Go SDK.

    public static class GetSupportedServices 
    {
        public static Task<GetSupportedServicesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetSupportedServicesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSupportedServicesResult> getSupportedServices(InvokeOptions options)
    public static Output<GetSupportedServicesResult> getSupportedServices(InvokeOptions options)
    
    fn::invoke:
      function: gcp:accesscontextmanager/getSupportedServices:getSupportedServices
      arguments:
        # arguments dictionary

    getSupportedServices Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    SupportedServices List<GetSupportedServicesSupportedService>
    The list of VPC-SC supported services. Each service contains the following fields:
    Id string
    The provider-assigned unique ID for this managed resource.
    SupportedServices []GetSupportedServicesSupportedService
    The list of VPC-SC supported services. Each service contains the following fields:
    id String
    The provider-assigned unique ID for this managed resource.
    supportedServices List<GetSupportedServicesSupportedService>
    The list of VPC-SC supported services. Each service contains the following fields:
    id string
    The provider-assigned unique ID for this managed resource.
    supportedServices GetSupportedServicesSupportedService[]
    The list of VPC-SC supported services. Each service contains the following fields:
    id str
    The provider-assigned unique ID for this managed resource.
    supported_services Sequence[GetSupportedServicesSupportedService]
    The list of VPC-SC supported services. Each service contains the following fields:
    id String
    The provider-assigned unique ID for this managed resource.
    supportedServices List<Property Map>
    The list of VPC-SC supported services. Each service contains the following fields:

    Supporting Types

    GetSupportedServicesSupportedService

    AvailableOnRestrictedVip bool
    True if the service is available on the restricted VIP. Services on the restricted VIP typically either support VPC Service Controls or are core infrastructure services required for the functioning of Google Cloud.
    KnownLimitations bool
    True if the service is supported with some limitations. Check documentation for details.
    Name string
    The service name or address of the supported service, such as storage.googleapis.com.
    ServiceSupportStage string
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    SupportStage string
    The support stage of the service.
    Title string
    The name of the supported product, such as 'Cloud Storage'.
    AvailableOnRestrictedVip bool
    True if the service is available on the restricted VIP. Services on the restricted VIP typically either support VPC Service Controls or are core infrastructure services required for the functioning of Google Cloud.
    KnownLimitations bool
    True if the service is supported with some limitations. Check documentation for details.
    Name string
    The service name or address of the supported service, such as storage.googleapis.com.
    ServiceSupportStage string
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    SupportStage string
    The support stage of the service.
    Title string
    The name of the supported product, such as 'Cloud Storage'.
    availableOnRestrictedVip Boolean
    True if the service is available on the restricted VIP. Services on the restricted VIP typically either support VPC Service Controls or are core infrastructure services required for the functioning of Google Cloud.
    knownLimitations Boolean
    True if the service is supported with some limitations. Check documentation for details.
    name String
    The service name or address of the supported service, such as storage.googleapis.com.
    serviceSupportStage String
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    supportStage String
    The support stage of the service.
    title String
    The name of the supported product, such as 'Cloud Storage'.
    availableOnRestrictedVip boolean
    True if the service is available on the restricted VIP. Services on the restricted VIP typically either support VPC Service Controls or are core infrastructure services required for the functioning of Google Cloud.
    knownLimitations boolean
    True if the service is supported with some limitations. Check documentation for details.
    name string
    The service name or address of the supported service, such as storage.googleapis.com.
    serviceSupportStage string
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    supportStage string
    The support stage of the service.
    title string
    The name of the supported product, such as 'Cloud Storage'.
    available_on_restricted_vip bool
    True if the service is available on the restricted VIP. Services on the restricted VIP typically either support VPC Service Controls or are core infrastructure services required for the functioning of Google Cloud.
    known_limitations bool
    True if the service is supported with some limitations. Check documentation for details.
    name str
    The service name or address of the supported service, such as storage.googleapis.com.
    service_support_stage str
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    support_stage str
    The support stage of the service.
    title str
    The name of the supported product, such as 'Cloud Storage'.
    availableOnRestrictedVip Boolean
    True if the service is available on the restricted VIP. Services on the restricted VIP typically either support VPC Service Controls or are core infrastructure services required for the functioning of Google Cloud.
    knownLimitations Boolean
    True if the service is supported with some limitations. Check documentation for details.
    name String
    The service name or address of the supported service, such as storage.googleapis.com.
    serviceSupportStage String
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    supportStage String
    The support stage of the service.
    title String
    The name of the supported product, such as 'Cloud Storage'.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.15.0
    published on Thursday, Mar 12, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.