opsgenie.getService
Explore with Pulumi AI
Manages existing Service within Opsgenie.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";
const _this = opsgenie.getService({
    name: "Payment",
});
import pulumi
import pulumi_opsgenie as opsgenie
this = opsgenie.get_service(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, &opsgenie.LookupServiceArgs{
			Name: "Payment",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opsgenie = Pulumi.Opsgenie;
return await Deployment.RunAsync(() => 
{
    var @this = Opsgenie.GetService.Invoke(new()
    {
        Name = "Payment",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opsgenie.OpsgenieFunctions;
import com.pulumi.opsgenie.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 this = OpsgenieFunctions.getService(GetServiceArgs.builder()
            .name("Payment")
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: opsgenie:getService
      arguments:
        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)
}public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
fn::invoke:
  function: opsgenie:index/getService:getService
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Name of the service. This field must not be longer than 100 characters. - The following attributes are exported: 
- 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. - The following attributes are exported: 
- 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. - The following attributes are exported: 
- 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. - The following attributes are exported: 
- 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. - The following attributes are exported: 
- 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.
- name String
- Name of the service. This field must not be longer than 100 characters. - The following attributes are exported: 
- 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.
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 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
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- description String
- teamId String
Package Details
- Repository
- Opsgenie pulumi/pulumi-opsgenie
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the opsgenieTerraform Provider.