Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly
rootly.getService
Explore with Pulumi AI
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rootly = Pulumi.Rootly;
return await Deployment.RunAsync(() =>
{
var my_service = Rootly.GetService.Invoke(new()
{
Slug = "my-service",
});
});
package main
import (
"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rootly.LookupService(ctx, &rootly.LookupServiceArgs{
Slug: pulumi.StringRef("my-service"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rootly.RootlyFunctions;
import com.pulumi.rootly.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 my-service = RootlyFunctions.getService(GetServiceArgs.builder()
.slug("my-service")
.build());
}
}
import pulumi
import pulumi_rootly as rootly
my_service = rootly.get_service(slug="my-service")
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const my-service = rootly.getService({
slug: "my-service",
});
variables:
my-service:
fn::invoke:
Function: rootly:getService
Arguments:
slug: my-service
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(backstage_id: Optional[str] = None,
created_at: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None,
slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(backstage_id: Optional[pulumi.Input[str]] = None,
created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
name: Optional[pulumi.Input[str]] = None,
slug: 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: rootly:index/getService:getService
arguments:
# arguments dictionary
The following arguments are supported:
- Backstage
Id string - Created
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
- Name string
- Slug string
- Backstage
Id string - Created
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
- Name string
- Slug string
- backstage
Id String - created
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
- name String
- slug String
- backstage
Id string - created
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
- name string
- slug string
- backstage_
id str - created_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
- name str
- slug str
- backstage
Id String - created
At Map<Any> - Filter by date range using 'lt' and 'gt'.
- name String
- slug String
getService Result
The following output properties are available:
- Backstage
Id string - Id string
- The ID of this resource.
- Name string
- Slug string
- Created
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
- Backstage
Id string - Id string
- The ID of this resource.
- Name string
- Slug string
- Created
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
- backstage
Id String - id String
- The ID of this resource.
- name String
- slug String
- created
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
- backstage
Id string - id string
- The ID of this resource.
- name string
- slug string
- created
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
- backstage_
id str - id str
- The ID of this resource.
- name str
- slug str
- created_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
- backstage
Id String - id String
- The ID of this resource.
- name String
- slug String
- created
At Map<Any> - Filter by date range using 'lt' and 'gt'.
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.