1. Packages
  2. Athenz Provider
  3. API Docs
  4. getService
athenz 1.0.45 published on Tuesday, Apr 15, 2025 by athenz

athenz.getService

Explore with Pulumi AI

athenz 1.0.45 published on Tuesday, Apr 15, 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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
configuration:
  serviceName:
    type: string
variables:
  selected:
    fn::invoke:
      function: athenz:getService
      arguments:
        name: ${serviceName}
        domain: ${some_domain}
Copy

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>
Copy
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]
Copy
func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: athenz:index/getService:getService
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domain This property is required. string
  • The Athenz domain name.
Name This property is required. 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 This property is required. string
  • The Athenz domain name.
Name This property is required. 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 This property is required. String
  • The Athenz domain name.
name This property is required. 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 This property is required. string
  • The Athenz domain name.
name This property is required. 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 This property is required. str
  • The Athenz domain name.
name This property is required. 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 This property is required. String
  • The Athenz domain name.
name This property is required. 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 This property is required. string
KeyValue This property is required. string
KeyId This property is required. string
KeyValue This property is required. string
keyId This property is required. String
keyValue This property is required. String
keyId This property is required. string
keyValue This property is required. string
key_id This property is required. str
key_value This property is required. str
keyId This property is required. String
keyValue This property is required. String

Package Details

Repository
athenz athenz/terraform-provider-athenz
License
Notes
This Pulumi package is based on the athenz Terraform Provider.
athenz 1.0.45 published on Tuesday, Apr 15, 2025 by athenz