1. Packages
  2. Athenz Provider
  3. API Docs
  4. getService
athenz 1.0.49 published on Monday, Oct 6, 2025 by athenz

athenz.getService

Start a Neo task
Explain and create an athenz.getService resource
athenz logo
athenz 1.0.49 published on Monday, Oct 6, 2025 by athenz

    athenz.Service provides details about a specific Athenz service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as athenz from "@pulumi/athenz";
    
    const config = new pulumi.Config();
    const serviceName = config.require("serviceName");
    const selected = athenz.getService({
        name: serviceName,
        domain: some_domain,
    });
    
    import pulumi
    import pulumi_athenz as athenz
    
    config = pulumi.Config()
    service_name = config.require("serviceName")
    selected = athenz.get_service(name=service_name,
        domain=some_domain)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/athenz/athenz"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		serviceName := cfg.Require("serviceName")
    		_, err := athenz.LookupService(ctx, &athenz.LookupServiceArgs{
    			Name:   serviceName,
    			Domain: some_domain,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Athenz = Pulumi.Athenz;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var serviceName = config.Require("serviceName");
        var selected = Athenz.GetService.Invoke(new()
        {
            Name = serviceName,
            Domain = some_domain,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.athenz.AthenzFunctions;
    import com.pulumi.athenz.inputs.GetServiceArgs;
    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 config = ctx.config();
            final var serviceName = config.get("serviceName");
            final var selected = AthenzFunctions.getService(GetServiceArgs.builder()
                .name(serviceName)
                .domain(some_domain)
                .build());
    
        }
    }
    
    configuration:
      serviceName:
        type: string
    variables:
      selected:
        fn::invoke:
          function: athenz:getService
          arguments:
            name: ${serviceName}
            domain: ${some_domain}
    

    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(description: Optional[str] = None,
                    domain: Optional[str] = None,
                    id: Optional[str] = None,
                    name: Optional[str] = None,
                    public_keys: Optional[Sequence[GetServicePublicKey]] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(description: Optional[pulumi.Input[str]] = None,
                    domain: Optional[pulumi.Input[str]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    public_keys: Optional[pulumi.Input[Sequence[pulumi.Input[GetServicePublicKeyArgs]]]] = None,
                    tags: Optional[pulumi.Input[Mapping[str, 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)
    public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: athenz:index/getService:getService
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Domain string
    • The Athenz domain name.
    Name string
    • The name of the specific Athenz service.
    Description string
    A description of the service
    Id string
    The ID of this resource.
    PublicKeys List<GetServicePublicKey>
    Tags Dictionary<string, string>
    Domain string
    • The Athenz domain name.
    Name string
    • The name of the specific Athenz service.
    Description string
    A description of the service
    Id string
    The ID of this resource.
    PublicKeys []GetServicePublicKey
    Tags map[string]string
    domain String
    • The Athenz domain name.
    name String
    • The name of the specific Athenz service.
    description String
    A description of the service
    id String
    The ID of this resource.
    publicKeys List<GetServicePublicKey>
    tags Map<String,String>
    domain string
    • The Athenz domain name.
    name string
    • The name of the specific Athenz service.
    description string
    A description of the service
    id string
    The ID of this resource.
    publicKeys GetServicePublicKey[]
    tags {[key: string]: string}
    domain str
    • The Athenz domain name.
    name str
    • The name of the specific Athenz service.
    description str
    A description of the service
    id str
    The ID of this resource.
    public_keys Sequence[GetServicePublicKey]
    tags Mapping[str, str]
    domain String
    • The Athenz domain name.
    name String
    • The name of the specific Athenz service.
    description String
    A description of the service
    id String
    The ID of this resource.
    publicKeys List<Property Map>
    tags Map<String>

    getService Result

    The following output properties are available:

    Domain string
    • The Athenz domain name.
    Id string
    The ID of this resource.
    Name string
    • The name of the specific Athenz service.
    Description string
    A description of the service
    PublicKeys List<GetServicePublicKey>
    Tags Dictionary<string, string>
    Domain string
    • The Athenz domain name.
    Id string
    The ID of this resource.
    Name string
    • The name of the specific Athenz service.
    Description string
    A description of the service
    PublicKeys []GetServicePublicKey
    Tags map[string]string
    domain String
    • The Athenz domain name.
    id String
    The ID of this resource.
    name String
    • The name of the specific Athenz service.
    description String
    A description of the service
    publicKeys List<GetServicePublicKey>
    tags Map<String,String>
    domain string
    • The Athenz domain name.
    id string
    The ID of this resource.
    name string
    • The name of the specific Athenz service.
    description string
    A description of the service
    publicKeys GetServicePublicKey[]
    tags {[key: string]: string}
    domain str
    • The Athenz domain name.
    id str
    The ID of this resource.
    name str
    • The name of the specific Athenz service.
    description str
    A description of the service
    public_keys Sequence[GetServicePublicKey]
    tags Mapping[str, str]
    domain String
    • The Athenz domain name.
    id String
    The ID of this resource.
    name String
    • The name of the specific Athenz service.
    description String
    A description of the service
    publicKeys List<Property Map>
    tags Map<String>

    Supporting Types

    GetServicePublicKey

    KeyId string
    KeyValue string
    KeyId string
    KeyValue string
    keyId String
    keyValue String
    keyId string
    keyValue string
    keyId String
    keyValue String

    Package Details

    Repository
    athenz athenz/terraform-provider-athenz
    License
    Notes
    This Pulumi package is based on the athenz Terraform Provider.
    athenz logo
    athenz 1.0.49 published on Monday, Oct 6, 2025 by athenz
      Meet Neo: Your AI Platform Teammate