Opsgenie
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
})
}
Coming soon!
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",
}));
Coming soon!
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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: opsgenie:index/getService:getService
Arguments:
# Arguments dictionary
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.
- Team
Id 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.
- Team
Id 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.
- team
Id 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.
- team
Id 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.
- 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.
- team
Id 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
- Team
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Description string
- Team
Id string
- id String
The provider-assigned unique ID for this managed resource.
- name String
- description String
- team
Id String
- id string
The provider-assigned unique ID for this managed resource.
- name string
- description string
- team
Id 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
- team
Id String
Package Details
- Repository
- https://github.com/pulumi/pulumi-opsgenie
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
opsgenie
Terraform Provider.