PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi
pagerduty.getStandardsResourcesScores
Explore with Pulumi AI
Use this data source to get information about the [scores for the standards for many resources][1].
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const foo = pagerduty.getService({
name: "foo",
});
const bar = pagerduty.getService({
name: "bar",
});
const baz = pagerduty.getService({
name: "baz",
});
const scores = Promise.all([foo, bar, baz]).then(([foo, bar, baz]) => pagerduty.getStandardsResourcesScores({
resourceType: "technical_services",
ids: [
foo.id,
bar.id,
baz.id,
],
}));
import pulumi
import pulumi_pagerduty as pagerduty
foo = pagerduty.get_service(name="foo")
bar = pagerduty.get_service(name="bar")
baz = pagerduty.get_service(name="baz")
scores = pagerduty.get_standards_resources_scores(resource_type="technical_services",
ids=[
foo.id,
bar.id,
baz.id,
])
package main
import (
"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := pagerduty.LookupService(ctx, &pagerduty.LookupServiceArgs{
Name: "foo",
}, nil);
if err != nil {
return err
}
bar, err := pagerduty.LookupService(ctx, &pagerduty.LookupServiceArgs{
Name: "bar",
}, nil);
if err != nil {
return err
}
baz, err := pagerduty.LookupService(ctx, &pagerduty.LookupServiceArgs{
Name: "baz",
}, nil);
if err != nil {
return err
}
_, err = pagerduty.GetStandardsResourcesScores(ctx, &pagerduty.GetStandardsResourcesScoresArgs{
ResourceType: "technical_services",
Ids: interface{}{
foo.Id,
bar.Id,
baz.Id,
},
}, nil);
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() =>
{
var foo = Pagerduty.GetService.Invoke(new()
{
Name = "foo",
});
var bar = Pagerduty.GetService.Invoke(new()
{
Name = "bar",
});
var baz = Pagerduty.GetService.Invoke(new()
{
Name = "baz",
});
var scores = Pagerduty.GetStandardsResourcesScores.Invoke(new()
{
ResourceType = "technical_services",
Ids = new[]
{
foo.Apply(getServiceResult => getServiceResult.Id),
bar.Apply(getServiceResult => getServiceResult.Id),
baz.Apply(getServiceResult => getServiceResult.Id),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetServiceArgs;
import com.pulumi.pagerduty.inputs.GetStandardsResourcesScoresArgs;
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 foo = PagerdutyFunctions.getService(GetServiceArgs.builder()
.name("foo")
.build());
final var bar = PagerdutyFunctions.getService(GetServiceArgs.builder()
.name("bar")
.build());
final var baz = PagerdutyFunctions.getService(GetServiceArgs.builder()
.name("baz")
.build());
final var scores = PagerdutyFunctions.getStandardsResourcesScores(GetStandardsResourcesScoresArgs.builder()
.resourceType("technical_services")
.ids(
foo.applyValue(getServiceResult -> getServiceResult.id()),
bar.applyValue(getServiceResult -> getServiceResult.id()),
baz.applyValue(getServiceResult -> getServiceResult.id()))
.build());
}
}
variables:
foo:
fn::invoke:
Function: pagerduty:getService
Arguments:
name: foo
bar:
fn::invoke:
Function: pagerduty:getService
Arguments:
name: bar
baz:
fn::invoke:
Function: pagerduty:getService
Arguments:
name: baz
scores:
fn::invoke:
Function: pagerduty:getStandardsResourcesScores
Arguments:
resourceType: technical_services
ids:
- ${foo.id}
- ${bar.id}
- ${baz.id}
Using getStandardsResourcesScores
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 getStandardsResourcesScores(args: GetStandardsResourcesScoresArgs, opts?: InvokeOptions): Promise<GetStandardsResourcesScoresResult>
function getStandardsResourcesScoresOutput(args: GetStandardsResourcesScoresOutputArgs, opts?: InvokeOptions): Output<GetStandardsResourcesScoresResult>
def get_standards_resources_scores(ids: Optional[Sequence[str]] = None,
resource_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStandardsResourcesScoresResult
def get_standards_resources_scores_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStandardsResourcesScoresResult]
func GetStandardsResourcesScores(ctx *Context, args *GetStandardsResourcesScoresArgs, opts ...InvokeOption) (*GetStandardsResourcesScoresResult, error)
func GetStandardsResourcesScoresOutput(ctx *Context, args *GetStandardsResourcesScoresOutputArgs, opts ...InvokeOption) GetStandardsResourcesScoresResultOutput
> Note: This function is named GetStandardsResourcesScores
in the Go SDK.
public static class GetStandardsResourcesScores
{
public static Task<GetStandardsResourcesScoresResult> InvokeAsync(GetStandardsResourcesScoresArgs args, InvokeOptions? opts = null)
public static Output<GetStandardsResourcesScoresResult> Invoke(GetStandardsResourcesScoresInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStandardsResourcesScoresResult> getStandardsResourcesScores(GetStandardsResourcesScoresArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: pagerduty:index/getStandardsResourcesScores:getStandardsResourcesScores
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- List of identifiers of the resources to query.
- Resource
Type string - Type of the object the standards are associated to. Allowed values are
technical_services
.
- Ids []string
- List of identifiers of the resources to query.
- Resource
Type string - Type of the object the standards are associated to. Allowed values are
technical_services
.
- ids List<String>
- List of identifiers of the resources to query.
- resource
Type String - Type of the object the standards are associated to. Allowed values are
technical_services
.
- ids string[]
- List of identifiers of the resources to query.
- resource
Type string - Type of the object the standards are associated to. Allowed values are
technical_services
.
- ids Sequence[str]
- List of identifiers of the resources to query.
- resource_
type str - Type of the object the standards are associated to. Allowed values are
technical_services
.
- ids List<String>
- List of identifiers of the resources to query.
- resource
Type String - Type of the object the standards are associated to. Allowed values are
technical_services
.
getStandardsResourcesScores Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Resource
Type string - Specifies the type of resource to which the standard applies.
- Resources
List<Get
Standards Resources Scores Resource> - List of score results for each queried resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Resource
Type string - Specifies the type of resource to which the standard applies.
- Resources
[]Get
Standards Resources Scores Resource - List of score results for each queried resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- resource
Type String - Specifies the type of resource to which the standard applies.
- resources
List<Get
Standards Resources Scores Resource> - List of score results for each queried resource.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- resource
Type string - Specifies the type of resource to which the standard applies.
- resources
Get
Standards Resources Scores Resource[] - List of score results for each queried resource.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- resource_
type str - Specifies the type of resource to which the standard applies.
- resources
Sequence[Get
Standards Resources Scores Resource] - List of score results for each queried resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- resource
Type String - Specifies the type of resource to which the standard applies.
- resources List<Property Map>
- List of score results for each queried resource.
Supporting Types
GetStandardsResourcesScoresResource
- Resource
Id string - Unique Identifier.
- Resource
Type string - Type of the object the standards are associated to. Allowed values are
technical_services
. - Score
Get
Standards Resources Scores Resource Score - Summary of the scores for standards associated with this resource.
- Standards
List<Get
Standards Resources Scores Resource Standard> - The list of standards evaluated against.
- Resource
Id string - Unique Identifier.
- Resource
Type string - Type of the object the standards are associated to. Allowed values are
technical_services
. - Score
Get
Standards Resources Scores Resource Score - Summary of the scores for standards associated with this resource.
- Standards
[]Get
Standards Resources Scores Resource Standard - The list of standards evaluated against.
- resource
Id String - Unique Identifier.
- resource
Type String - Type of the object the standards are associated to. Allowed values are
technical_services
. - score
Get
Standards Resources Scores Resource Score - Summary of the scores for standards associated with this resource.
- standards
List<Get
Standards Resources Scores Resource Standard> - The list of standards evaluated against.
- resource
Id string - Unique Identifier.
- resource
Type string - Type of the object the standards are associated to. Allowed values are
technical_services
. - score
Get
Standards Resources Scores Resource Score - Summary of the scores for standards associated with this resource.
- standards
Get
Standards Resources Scores Resource Standard[] - The list of standards evaluated against.
- resource_
id str - Unique Identifier.
- resource_
type str - Type of the object the standards are associated to. Allowed values are
technical_services
. - score
Get
Standards Resources Scores Resource Score - Summary of the scores for standards associated with this resource.
- standards
Sequence[Get
Standards Resources Scores Resource Standard] - The list of standards evaluated against.
- resource
Id String - Unique Identifier.
- resource
Type String - Type of the object the standards are associated to. Allowed values are
technical_services
. - score Property Map
- Summary of the scores for standards associated with this resource.
- standards List<Property Map>
- The list of standards evaluated against.
GetStandardsResourcesScoresResourceScore
GetStandardsResourcesScoresResourceStandard
- Active bool
- Indicates whether the standard is currently active and applicable to the resource.
- Description string
- Provides a textual description of the standard.
- Id string
- A unique identifier for the standard.
- Name string
- The human-readable name of the standard.
- Pass bool
- Indicates whether the resource complies to this standard.
- Type string
- The type of the standard.
- Active bool
- Indicates whether the standard is currently active and applicable to the resource.
- Description string
- Provides a textual description of the standard.
- Id string
- A unique identifier for the standard.
- Name string
- The human-readable name of the standard.
- Pass bool
- Indicates whether the resource complies to this standard.
- Type string
- The type of the standard.
- active Boolean
- Indicates whether the standard is currently active and applicable to the resource.
- description String
- Provides a textual description of the standard.
- id String
- A unique identifier for the standard.
- name String
- The human-readable name of the standard.
- pass Boolean
- Indicates whether the resource complies to this standard.
- type String
- The type of the standard.
- active boolean
- Indicates whether the standard is currently active and applicable to the resource.
- description string
- Provides a textual description of the standard.
- id string
- A unique identifier for the standard.
- name string
- The human-readable name of the standard.
- pass boolean
- Indicates whether the resource complies to this standard.
- type string
- The type of the standard.
- active bool
- Indicates whether the standard is currently active and applicable to the resource.
- description str
- Provides a textual description of the standard.
- id str
- A unique identifier for the standard.
- name str
- The human-readable name of the standard.
- pass_ bool
- Indicates whether the resource complies to this standard.
- type str
- The type of the standard.
- active Boolean
- Indicates whether the standard is currently active and applicable to the resource.
- description String
- Provides a textual description of the standard.
- id String
- A unique identifier for the standard.
- name String
- The human-readable name of the standard.
- pass Boolean
- Indicates whether the resource complies to this standard.
- type String
- The type of the standard.
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerduty
Terraform Provider.