athenz 1.0.45 published on Tuesday, Apr 15, 2025 by athenz
athenz.getService
Explore with Pulumi AI
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 dictionaryThe 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.
 - Public
Keys List<GetService Public Key>  - 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.
 - Public
Keys []GetService Public Key  - 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.
 - public
Keys List<GetService Public Key>  - 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.
 - public
Keys GetService Public Key[]  - {[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[GetService Public Key]  - 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.
 - public
Keys List<Property Map> - 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
 - Public
Keys List<GetService Public Key>  - 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
 - Public
Keys []GetService Public Key  - 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
 - public
Keys List<GetService Public Key>  - 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
 - public
Keys GetService Public Key[]  - {[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[GetService Public Key]  - 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
 - public
Keys List<Property Map> - Map<String>
 
Supporting Types
GetServicePublicKey   
Package Details
- Repository
 - athenz athenz/terraform-provider-athenz
 - License
 - Notes
 - This Pulumi package is based on the 
athenzTerraform Provider.