Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Opsgenie

v1.1.0 published on Thursday, Nov 11, 2021 by Pulumi

getService

Manages existing Service within Opsgenie.

Example Usage

using Pulumi;
using Opsgenie = Pulumi.Opsgenie;

class MyStack : Stack
{
    public MyStack()
    {
        var @this = Output.Create(Opsgenie.GetService.InvokeAsync(new Opsgenie.GetServiceArgs
        {
            Name = "Payment",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-opsgenie/sdk/go/opsgenie"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsgenie.LookupService(ctx, &GetServiceArgs{
			Name: "Payment",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_opsgenie as opsgenie

this = opsgenie.get_service(name="Payment")
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";

const thisService = pulumi.output(opsgenie.getService({
    name: "Payment",
}));

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,
                name: Optional[str] = None,
                team_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(description: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                team_id: 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)
}

The following arguments are supported:

Name string
Name of the service. This field must not be longer than 100 characters.
Description string
Description field of the service that is generally used to provide a detailed information about the service.
TeamId string
Team id of the service.
Name string
Name of the service. This field must not be longer than 100 characters.
Description string
Description field of the service that is generally used to provide a detailed information about the service.
TeamId string
Team id of the service.
name string
Name of the service. This field must not be longer than 100 characters.
description string
Description field of the service that is generally used to provide a detailed information about the service.
teamId string
Team id of the service.
name str
Name of the service. This field must not be longer than 100 characters.
description str
Description field of the service that is generally used to provide a detailed information about the service.
team_id str
Team id of the service.

getService Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Description string
TeamId string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Description string
TeamId string
id string
The provider-assigned unique ID for this managed resource.
name string
description string
teamId string
id str
The provider-assigned unique ID for this managed resource.
name str
description str
team_id str

Package Details

Repository
https://github.com/pulumi/pulumi-opsgenie
License
Apache-2.0
Notes
This Pulumi package is based on the opsgenie Terraform Provider.