1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. getStandardsResourceScores
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

pagerduty.getStandardsResourceScores

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Use this data source to get information about the [scores for the standards of a resource][1].

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    
    const example = pagerduty.getService({
        name: "My Service",
    });
    const scores = example.then(example => pagerduty.getStandardsResourceScores({
        resourceType: "technical_services",
        id: example.id,
    }));
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    example = pagerduty.get_service(name="My Service")
    scores = pagerduty.get_standards_resource_scores(resource_type="technical_services",
        id=example.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 {
    		example, err := pagerduty.LookupService(ctx, &pagerduty.LookupServiceArgs{
    			Name: "My Service",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.GetStandardsResourceScores(ctx, &pagerduty.GetStandardsResourceScoresArgs{
    			ResourceType: "technical_services",
    			Id:           example.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 example = Pagerduty.GetService.Invoke(new()
        {
            Name = "My Service",
        });
    
        var scores = Pagerduty.GetStandardsResourceScores.Invoke(new()
        {
            ResourceType = "technical_services",
            Id = example.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.GetStandardsResourceScoresArgs;
    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 example = PagerdutyFunctions.getService(GetServiceArgs.builder()
                .name("My Service")
                .build());
    
            final var scores = PagerdutyFunctions.getStandardsResourceScores(GetStandardsResourceScoresArgs.builder()
                .resourceType("technical_services")
                .id(example.applyValue(getServiceResult -> getServiceResult.id()))
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: pagerduty:getService
          Arguments:
            name: My Service
      scores:
        fn::invoke:
          Function: pagerduty:getStandardsResourceScores
          Arguments:
            resourceType: technical_services
            id: ${example.id}
    

    Using getStandardsResourceScores

    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 getStandardsResourceScores(args: GetStandardsResourceScoresArgs, opts?: InvokeOptions): Promise<GetStandardsResourceScoresResult>
    function getStandardsResourceScoresOutput(args: GetStandardsResourceScoresOutputArgs, opts?: InvokeOptions): Output<GetStandardsResourceScoresResult>
    def get_standards_resource_scores(id: Optional[str] = None,
                                      resource_type: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetStandardsResourceScoresResult
    def get_standards_resource_scores_output(id: Optional[pulumi.Input[str]] = None,
                                      resource_type: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetStandardsResourceScoresResult]
    func GetStandardsResourceScores(ctx *Context, args *GetStandardsResourceScoresArgs, opts ...InvokeOption) (*GetStandardsResourceScoresResult, error)
    func GetStandardsResourceScoresOutput(ctx *Context, args *GetStandardsResourceScoresOutputArgs, opts ...InvokeOption) GetStandardsResourceScoresResultOutput

    > Note: This function is named GetStandardsResourceScores in the Go SDK.

    public static class GetStandardsResourceScores 
    {
        public static Task<GetStandardsResourceScoresResult> InvokeAsync(GetStandardsResourceScoresArgs args, InvokeOptions? opts = null)
        public static Output<GetStandardsResourceScoresResult> Invoke(GetStandardsResourceScoresInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStandardsResourceScoresResult> getStandardsResourceScores(GetStandardsResourceScoresArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: pagerduty:index/getStandardsResourceScores:getStandardsResourceScores
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Identifier of said resource.
    ResourceType string
    Type of the object the standards are associated to. Allowed values are technical_services.
    Id string
    Identifier of said resource.
    ResourceType string
    Type of the object the standards are associated to. Allowed values are technical_services.
    id String
    Identifier of said resource.
    resourceType String
    Type of the object the standards are associated to. Allowed values are technical_services.
    id string
    Identifier of said resource.
    resourceType string
    Type of the object the standards are associated to. Allowed values are technical_services.
    id str
    Identifier of said resource.
    resource_type str
    Type of the object the standards are associated to. Allowed values are technical_services.
    id String
    Identifier of said resource.
    resourceType String
    Type of the object the standards are associated to. Allowed values are technical_services.

    getStandardsResourceScores Result

    The following output properties are available:

    Id string
    A unique identifier for the standard.
    ResourceType string
    Specifies the type of resource to which the standard applies.
    Score GetStandardsResourceScoresScore
    Summary of the scores for standards associated with this resource.
    Standards List<GetStandardsResourceScoresStandard>
    The list of standards evaluated against.
    Id string
    A unique identifier for the standard.
    ResourceType string
    Specifies the type of resource to which the standard applies.
    Score GetStandardsResourceScoresScore
    Summary of the scores for standards associated with this resource.
    Standards []GetStandardsResourceScoresStandard
    The list of standards evaluated against.
    id String
    A unique identifier for the standard.
    resourceType String
    Specifies the type of resource to which the standard applies.
    score GetStandardsResourceScoresScore
    Summary of the scores for standards associated with this resource.
    standards List<GetStandardsResourceScoresStandard>
    The list of standards evaluated against.
    id string
    A unique identifier for the standard.
    resourceType string
    Specifies the type of resource to which the standard applies.
    score GetStandardsResourceScoresScore
    Summary of the scores for standards associated with this resource.
    standards GetStandardsResourceScoresStandard[]
    The list of standards evaluated against.
    id str
    A unique identifier for the standard.
    resource_type str
    Specifies the type of resource to which the standard applies.
    score GetStandardsResourceScoresScore
    Summary of the scores for standards associated with this resource.
    standards Sequence[GetStandardsResourceScoresStandard]
    The list of standards evaluated against.
    id String
    A unique identifier for the standard.
    resourceType String
    Specifies the type of resource to which the standard applies.
    score Property Map
    Summary of the scores for standards associated with this resource.
    standards List<Property Map>
    The list of standards evaluated against.

    Supporting Types

    GetStandardsResourceScoresScore

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

    GetStandardsResourceScoresStandard

    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
    Identifier of said resource.
    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
    Identifier of said resource.
    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
    Identifier of said resource.
    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
    Identifier of said resource.
    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
    Identifier of said resource.
    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
    Identifier of said resource.
    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.
    pagerduty logo
    PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi