1. Packages
  2. Google Cloud Native
  3. API Docs
  4. servicemanagement
  5. servicemanagement/v1
  6. getService

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.servicemanagement/v1.getService

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Gets a managed service. Authentication is required unless the service is public.

    Using getService

    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 getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
    function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
    def get_service(service_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(service_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
    func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
    func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput

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

    public static class GetService 
    {
        public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:servicemanagement/v1:getService
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getService Result

    The following output properties are available:

    ProducerProjectId string
    ID of the project that produces and owns this service.
    ServiceName string
    The name of the service. See the overview for naming requirements.
    ProducerProjectId string
    ID of the project that produces and owns this service.
    ServiceName string
    The name of the service. See the overview for naming requirements.
    producerProjectId String
    ID of the project that produces and owns this service.
    serviceName String
    The name of the service. See the overview for naming requirements.
    producerProjectId string
    ID of the project that produces and owns this service.
    serviceName string
    The name of the service. See the overview for naming requirements.
    producer_project_id str
    ID of the project that produces and owns this service.
    service_name str
    The name of the service. See the overview for naming requirements.
    producerProjectId String
    ID of the project that produces and owns this service.
    serviceName String
    The name of the service. See the overview for naming requirements.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi