getBusinessService

Use this data source to get information about a specific business service.

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Pagerduty.GetBusinessService.InvokeAsync(new Pagerduty.GetBusinessServiceArgs
        {
            Name = "My Service",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pagerduty.LookupBusinessService(ctx, &pagerduty.LookupBusinessServiceArgs{
			Name: "My Service",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_pagerduty as pagerduty

example = pagerduty.get_business_service(name="My Service")
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const example = pulumi.output(pagerduty.getBusinessService({
    name: "My Service",
}, { async: true }));

Using getBusinessService

function getBusinessService(args: GetBusinessServiceArgs, opts?: InvokeOptions): Promise<GetBusinessServiceResult>
def get_business_service(name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetBusinessServiceResult
func LookupBusinessService(ctx *Context, args *LookupBusinessServiceArgs, opts ...InvokeOption) (*LookupBusinessServiceResult, error)

Note: This function is named LookupBusinessService in the Go SDK.

public static class GetBusinessService {
    public static Task<GetBusinessServiceResult> InvokeAsync(GetBusinessServiceArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string
The business service name to use to find a business service in the PagerDuty API.
Name string
The business service name to use to find a business service in the PagerDuty API.
name string
The business service name to use to find a business service in the PagerDuty API.
name str
The business service name to use to find a business service in the PagerDuty API.

getBusinessService Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The short name of the found business service.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The short name of the found business service.
id string
The provider-assigned unique ID for this managed resource.
name string
The short name of the found business service.
id str
The provider-assigned unique ID for this managed resource.
name str
The short name of the found business service.

Package Details

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