1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. getStandardsResourcesScores
PagerDuty v4.23.0 published on Wednesday, Apr 16, 2025 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,
    ],
}));
Copy
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,
    ])
Copy
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
})
}
Copy
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),
        },
    });

});
Copy
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.id(),
                bar.id(),
                baz.id())
            .build());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetStandardsResourcesScores(ctx *Context, args *GetStandardsResourcesScoresArgs, opts ...InvokeOption) (*GetStandardsResourcesScoresResult, error)
func GetStandardsResourcesScoresOutput(ctx *Context, args *GetStandardsResourcesScoresOutputArgs, opts ...InvokeOption) GetStandardsResourcesScoresResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetStandardsResourcesScoresResult> getStandardsResourcesScores(GetStandardsResourcesScoresArgs args, InvokeOptions options)
public static Output<GetStandardsResourcesScoresResult> getStandardsResourcesScores(GetStandardsResourcesScoresArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: pagerduty:index/getStandardsResourcesScores:getStandardsResourcesScores
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids This property is required. List<string>
List of identifiers of the resources to query.
ResourceType This property is required. string
Type of the object the standards are associated to. Allowed values are technical_services.
Ids This property is required. []string
List of identifiers of the resources to query.
ResourceType This property is required. string
Type of the object the standards are associated to. Allowed values are technical_services.
ids This property is required. List<String>
List of identifiers of the resources to query.
resourceType This property is required. String
Type of the object the standards are associated to. Allowed values are technical_services.
ids This property is required. string[]
List of identifiers of the resources to query.
resourceType This property is required. string
Type of the object the standards are associated to. Allowed values are technical_services.
ids This property is required. Sequence[str]
List of identifiers of the resources to query.
resource_type This property is required. str
Type of the object the standards are associated to. Allowed values are technical_services.
ids This property is required. List<String>
List of identifiers of the resources to query.
resourceType This property is required. 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>
ResourceType string
Specifies the type of resource to which the standard applies.
Resources List<GetStandardsResourcesScoresResource>
List of score results for each queried resource.
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
ResourceType string
Specifies the type of resource to which the standard applies.
Resources []GetStandardsResourcesScoresResource
List of score results for each queried resource.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
resourceType String
Specifies the type of resource to which the standard applies.
resources List<GetStandardsResourcesScoresResource>
List of score results for each queried resource.
id string
The provider-assigned unique ID for this managed resource.
ids string[]
resourceType string
Specifies the type of resource to which the standard applies.
resources GetStandardsResourcesScoresResource[]
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[GetStandardsResourcesScoresResource]
List of score results for each queried resource.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
resourceType 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

ResourceId This property is required. string
Unique Identifier.
ResourceType This property is required. string
Type of the object the standards are associated to. Allowed values are technical_services.
Score This property is required. GetStandardsResourcesScoresResourceScore
Summary of the scores for standards associated with this resource.
Standards This property is required. List<GetStandardsResourcesScoresResourceStandard>
The list of standards evaluated against.
ResourceId This property is required. string
Unique Identifier.
ResourceType This property is required. string
Type of the object the standards are associated to. Allowed values are technical_services.
Score This property is required. GetStandardsResourcesScoresResourceScore
Summary of the scores for standards associated with this resource.
Standards This property is required. []GetStandardsResourcesScoresResourceStandard
The list of standards evaluated against.
resourceId This property is required. String
Unique Identifier.
resourceType This property is required. String
Type of the object the standards are associated to. Allowed values are technical_services.
score This property is required. GetStandardsResourcesScoresResourceScore
Summary of the scores for standards associated with this resource.
standards This property is required. List<GetStandardsResourcesScoresResourceStandard>
The list of standards evaluated against.
resourceId This property is required. string
Unique Identifier.
resourceType This property is required. string
Type of the object the standards are associated to. Allowed values are technical_services.
score This property is required. GetStandardsResourcesScoresResourceScore
Summary of the scores for standards associated with this resource.
standards This property is required. GetStandardsResourcesScoresResourceStandard[]
The list of standards evaluated against.
resource_id This property is required. str
Unique Identifier.
resource_type This property is required. str
Type of the object the standards are associated to. Allowed values are technical_services.
score This property is required. GetStandardsResourcesScoresResourceScore
Summary of the scores for standards associated with this resource.
standards This property is required. Sequence[GetStandardsResourcesScoresResourceStandard]
The list of standards evaluated against.
resourceId This property is required. String
Unique Identifier.
resourceType This property is required. String
Type of the object the standards are associated to. Allowed values are technical_services.
score This property is required. Property Map
Summary of the scores for standards associated with this resource.
standards This property is required. List<Property Map>
The list of standards evaluated against.

GetStandardsResourcesScoresResourceScore

Passing This property is required. int
Number of standards this resource successfully complies to.
Total This property is required. int
Number of standards associated to this resource.
Passing This property is required. int
Number of standards this resource successfully complies to.
Total This property is required. int
Number of standards associated to this resource.
passing This property is required. Integer
Number of standards this resource successfully complies to.
total This property is required. Integer
Number of standards associated to this resource.
passing This property is required. number
Number of standards this resource successfully complies to.
total This property is required. number
Number of standards associated to this resource.
passing This property is required. int
Number of standards this resource successfully complies to.
total This property is required. int
Number of standards associated to this resource.
passing This property is required. Number
Number of standards this resource successfully complies to.
total This property is required. Number
Number of standards associated to this resource.

GetStandardsResourcesScoresResourceStandard

Active This property is required. bool
Indicates whether the standard is currently active and applicable to the resource.
Description This property is required. string
Provides a textual description of the standard.
Id This property is required. string
A unique identifier for the standard.
Name This property is required. string
The human-readable name of the standard.
Pass This property is required. bool
Indicates whether the resource complies to this standard.
Type This property is required. string
The type of the standard.
Active This property is required. bool
Indicates whether the standard is currently active and applicable to the resource.
Description This property is required. string
Provides a textual description of the standard.
Id This property is required. string
A unique identifier for the standard.
Name This property is required. string
The human-readable name of the standard.
Pass This property is required. bool
Indicates whether the resource complies to this standard.
Type This property is required. string
The type of the standard.
active This property is required. Boolean
Indicates whether the standard is currently active and applicable to the resource.
description This property is required. String
Provides a textual description of the standard.
id This property is required. String
A unique identifier for the standard.
name This property is required. String
The human-readable name of the standard.
pass This property is required. Boolean
Indicates whether the resource complies to this standard.
type This property is required. String
The type of the standard.
active This property is required. boolean
Indicates whether the standard is currently active and applicable to the resource.
description This property is required. string
Provides a textual description of the standard.
id This property is required. string
A unique identifier for the standard.
name This property is required. string
The human-readable name of the standard.
pass This property is required. boolean
Indicates whether the resource complies to this standard.
type This property is required. string
The type of the standard.
active This property is required. bool
Indicates whether the standard is currently active and applicable to the resource.
description This property is required. str
Provides a textual description of the standard.
id This property is required. str
A unique identifier for the standard.
name This property is required. str
The human-readable name of the standard.
pass_ This property is required. bool
Indicates whether the resource complies to this standard.
type This property is required. str
The type of the standard.
active This property is required. Boolean
Indicates whether the standard is currently active and applicable to the resource.
description This property is required. String
Provides a textual description of the standard.
id This property is required. String
A unique identifier for the standard.
name This property is required. String
The human-readable name of the standard.
pass This property is required. Boolean
Indicates whether the resource complies to this standard.
type This property is required. 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.