1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. accesscontextmanager
  5. getSupportedService
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

    Get information about a VPC Service Controls supported service, including its supported methods.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const storage = gcp.accesscontextmanager.getSupportedService({
        serviceName: "storage.googleapis.com",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    storage = gcp.accesscontextmanager.get_supported_service(service_name="storage.googleapis.com")
    
    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.GetSupportedService(ctx, &accesscontextmanager.GetSupportedServiceArgs{
    			ServiceName: "storage.googleapis.com",
    		}, 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 storage = Gcp.AccessContextManager.GetSupportedService.Invoke(new()
        {
            ServiceName = "storage.googleapis.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.accesscontextmanager.AccesscontextmanagerFunctions;
    import com.pulumi.gcp.accesscontextmanager.inputs.GetSupportedServiceArgs;
    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 storage = AccesscontextmanagerFunctions.getSupportedService(GetSupportedServiceArgs.builder()
                .serviceName("storage.googleapis.com")
                .build());
    
        }
    }
    
    variables:
      storage:
        fn::invoke:
          function: gcp:accesscontextmanager:getSupportedService
          arguments:
            serviceName: storage.googleapis.com
    

    Use supported methods in a service perimeter

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const storage = gcp.accesscontextmanager.getSupportedService({
        serviceName: "storage.googleapis.com",
    });
    export const storageMethods = storage.then(storage => storage.supportedMethods);
    
    import pulumi
    import pulumi_gcp as gcp
    
    storage = gcp.accesscontextmanager.get_supported_service(service_name="storage.googleapis.com")
    pulumi.export("storageMethods", storage.supported_methods)
    
    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 {
    		storage, err := accesscontextmanager.GetSupportedService(ctx, &accesscontextmanager.GetSupportedServiceArgs{
    			ServiceName: "storage.googleapis.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("storageMethods", storage.SupportedMethods)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var storage = Gcp.AccessContextManager.GetSupportedService.Invoke(new()
        {
            ServiceName = "storage.googleapis.com",
        });
    
        return new Dictionary<string, object?>
        {
            ["storageMethods"] = storage.Apply(getSupportedServiceResult => getSupportedServiceResult.SupportedMethods),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.accesscontextmanager.AccesscontextmanagerFunctions;
    import com.pulumi.gcp.accesscontextmanager.inputs.GetSupportedServiceArgs;
    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 storage = AccesscontextmanagerFunctions.getSupportedService(GetSupportedServiceArgs.builder()
                .serviceName("storage.googleapis.com")
                .build());
    
            ctx.export("storageMethods", storage.supportedMethods());
        }
    }
    
    variables:
      storage:
        fn::invoke:
          function: gcp:accesscontextmanager:getSupportedService
          arguments:
            serviceName: storage.googleapis.com
    outputs:
      storageMethods: ${storage.supportedMethods}
    

    Using getSupportedService

    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 getSupportedService(args: GetSupportedServiceArgs, opts?: InvokeOptions): Promise<GetSupportedServiceResult>
    function getSupportedServiceOutput(args: GetSupportedServiceOutputArgs, opts?: InvokeOptions): Output<GetSupportedServiceResult>
    def get_supported_service(service_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSupportedServiceResult
    def get_supported_service_output(service_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSupportedServiceResult]
    func GetSupportedService(ctx *Context, args *GetSupportedServiceArgs, opts ...InvokeOption) (*GetSupportedServiceResult, error)
    func GetSupportedServiceOutput(ctx *Context, args *GetSupportedServiceOutputArgs, opts ...InvokeOption) GetSupportedServiceResultOutput

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

    public static class GetSupportedService 
    {
        public static Task<GetSupportedServiceResult> InvokeAsync(GetSupportedServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetSupportedServiceResult> Invoke(GetSupportedServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSupportedServiceResult> getSupportedService(GetSupportedServiceArgs args, InvokeOptions options)
    public static Output<GetSupportedServiceResult> getSupportedService(GetSupportedServiceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:accesscontextmanager/getSupportedService:getSupportedService
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, storage.googleapis.com.
    ServiceName string
    The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, storage.googleapis.com.
    serviceName String
    The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, storage.googleapis.com.
    serviceName string
    The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, storage.googleapis.com.
    service_name str
    The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, storage.googleapis.com.
    serviceName String
    The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, storage.googleapis.com.

    getSupportedService Result

    The following output properties are available:

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    KnownLimitations bool
    True if the service is supported with some limitations. Check documentation for details.
    ServiceName string
    ServiceSupportStage string
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    SupportStage string
    The support stage of the service.
    SupportedMethods List<GetSupportedServiceSupportedMethod>
    The list of supported methods for this service. Each method contains the following fields:
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    KnownLimitations bool
    True if the service is supported with some limitations. Check documentation for details.
    ServiceName string
    ServiceSupportStage string
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    SupportStage string
    The support stage of the service.
    SupportedMethods []GetSupportedServiceSupportedMethod
    The list of supported methods for this service. Each method contains the following fields:
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    knownLimitations Boolean
    True if the service is supported with some limitations. Check documentation for details.
    serviceName String
    serviceSupportStage String
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    supportStage String
    The support stage of the service.
    supportedMethods List<GetSupportedServiceSupportedMethod>
    The list of supported methods for this service. Each method contains the following fields:
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    knownLimitations boolean
    True if the service is supported with some limitations. Check documentation for details.
    serviceName string
    serviceSupportStage string
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    supportStage string
    The support stage of the service.
    supportedMethods GetSupportedServiceSupportedMethod[]
    The list of supported methods for this service. Each method contains the following fields:
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    known_limitations bool
    True if the service is supported with some limitations. Check documentation for details.
    service_name str
    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.
    supported_methods Sequence[GetSupportedServiceSupportedMethod]
    The list of supported methods for this service. Each method contains the following fields:
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    knownLimitations Boolean
    True if the service is supported with some limitations. Check documentation for details.
    serviceName String
    serviceSupportStage String
    The support stage of the service. Values are GA, PREVIEW, and DEPRECATED.
    supportStage String
    The support stage of the service.
    supportedMethods List<Property Map>
    The list of supported methods for this service. Each method contains the following fields:
    title String
    The name of the supported product, such as 'Cloud Storage'.

    Supporting Types

    GetSupportedServiceSupportedMethod

    Method string
    A valid method name for the respective request mode. Must be a fully qualified name, for example, storage.googleapis.com/BucketService.GetBucket.
    Permission string
    A valid Cloud IAM permission for the respective request mode, for example, storage.buckets.get.
    Method string
    A valid method name for the respective request mode. Must be a fully qualified name, for example, storage.googleapis.com/BucketService.GetBucket.
    Permission string
    A valid Cloud IAM permission for the respective request mode, for example, storage.buckets.get.
    method String
    A valid method name for the respective request mode. Must be a fully qualified name, for example, storage.googleapis.com/BucketService.GetBucket.
    permission String
    A valid Cloud IAM permission for the respective request mode, for example, storage.buckets.get.
    method string
    A valid method name for the respective request mode. Must be a fully qualified name, for example, storage.googleapis.com/BucketService.GetBucket.
    permission string
    A valid Cloud IAM permission for the respective request mode, for example, storage.buckets.get.
    method str
    A valid method name for the respective request mode. Must be a fully qualified name, for example, storage.googleapis.com/BucketService.GetBucket.
    permission str
    A valid Cloud IAM permission for the respective request mode, for example, storage.buckets.get.
    method String
    A valid method name for the respective request mode. Must be a fully qualified name, for example, storage.googleapis.com/BucketService.GetBucket.
    permission String
    A valid Cloud IAM permission for the respective request mode, for example, storage.buckets.get.

    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.