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

pagerduty.getStandards

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 standards applicable to the PagerDuty account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    
    const standards = pagerduty.getStandards({});
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    standards = pagerduty.get_standards()
    
    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 {
    		_, err := pagerduty.GetStandards(ctx, &pagerduty.GetStandardsArgs{}, 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 standards = Pagerduty.GetStandards.Invoke();
    
    });
    
    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.GetStandardsArgs;
    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 standards = PagerdutyFunctions.getStandards();
    
        }
    }
    
    variables:
      standards:
        fn::invoke:
          Function: pagerduty:getStandards
          Arguments: {}
    

    Using getStandards

    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 getStandards(args: GetStandardsArgs, opts?: InvokeOptions): Promise<GetStandardsResult>
    function getStandardsOutput(args: GetStandardsOutputArgs, opts?: InvokeOptions): Output<GetStandardsResult>
    def get_standards(resource_type: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetStandardsResult
    def get_standards_output(resource_type: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetStandardsResult]
    func GetStandards(ctx *Context, args *GetStandardsArgs, opts ...InvokeOption) (*GetStandardsResult, error)
    func GetStandardsOutput(ctx *Context, args *GetStandardsOutputArgs, opts ...InvokeOption) GetStandardsResultOutput

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

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

    The following arguments are supported:

    ResourceType string
    Filter by resource_type the received standards. Allowed values are technical_service.
    ResourceType string
    Filter by resource_type the received standards. Allowed values are technical_service.
    resourceType String
    Filter by resource_type the received standards. Allowed values are technical_service.
    resourceType string
    Filter by resource_type the received standards. Allowed values are technical_service.
    resource_type str
    Filter by resource_type the received standards. Allowed values are technical_service.
    resourceType String
    Filter by resource_type the received standards. Allowed values are technical_service.

    getStandards Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Standards List<GetStandardsStandard>
    The list of standards defined.
    ResourceType string
    Specifies the type of resource to which the standard applies.
    Id string
    The provider-assigned unique ID for this managed resource.
    Standards []GetStandardsStandard
    The list of standards defined.
    ResourceType string
    Specifies the type of resource to which the standard applies.
    id String
    The provider-assigned unique ID for this managed resource.
    standards List<GetStandardsStandard>
    The list of standards defined.
    resourceType String
    Specifies the type of resource to which the standard applies.
    id string
    The provider-assigned unique ID for this managed resource.
    standards GetStandardsStandard[]
    The list of standards defined.
    resourceType string
    Specifies the type of resource to which the standard applies.
    id str
    The provider-assigned unique ID for this managed resource.
    standards Sequence[GetStandardsStandard]
    The list of standards defined.
    resource_type str
    Specifies the type of resource to which the standard applies.
    id String
    The provider-assigned unique ID for this managed resource.
    standards List<Property Map>
    The list of standards defined.
    resourceType String
    Specifies the type of resource to which the standard applies.

    Supporting Types

    GetStandardsStandard

    Active bool
    Indicates whether the standard is currently active and applicable to the resource.
    Description string
    Provides a textual description of the standard.
    Exclusions List<GetStandardsStandardExclusion>
    A list of exceptions for the application of this standard.
    Id string
    The unique identifier for the resource being included.
    Inclusions List<GetStandardsStandardInclusion>
    A list of explict instances this standard applies to.
    Name string
    The human-readable name of the standard.
    ResourceType string
    Filter by resource_type the received standards. Allowed values are technical_service.
    Type string
    Specifies the type of resource this inclusion applies to.
    Active bool
    Indicates whether the standard is currently active and applicable to the resource.
    Description string
    Provides a textual description of the standard.
    Exclusions []GetStandardsStandardExclusion
    A list of exceptions for the application of this standard.
    Id string
    The unique identifier for the resource being included.
    Inclusions []GetStandardsStandardInclusion
    A list of explict instances this standard applies to.
    Name string
    The human-readable name of the standard.
    ResourceType string
    Filter by resource_type the received standards. Allowed values are technical_service.
    Type string
    Specifies the type of resource this inclusion applies to.
    active Boolean
    Indicates whether the standard is currently active and applicable to the resource.
    description String
    Provides a textual description of the standard.
    exclusions List<GetStandardsStandardExclusion>
    A list of exceptions for the application of this standard.
    id String
    The unique identifier for the resource being included.
    inclusions List<GetStandardsStandardInclusion>
    A list of explict instances this standard applies to.
    name String
    The human-readable name of the standard.
    resourceType String
    Filter by resource_type the received standards. Allowed values are technical_service.
    type String
    Specifies the type of resource this inclusion applies to.
    active boolean
    Indicates whether the standard is currently active and applicable to the resource.
    description string
    Provides a textual description of the standard.
    exclusions GetStandardsStandardExclusion[]
    A list of exceptions for the application of this standard.
    id string
    The unique identifier for the resource being included.
    inclusions GetStandardsStandardInclusion[]
    A list of explict instances this standard applies to.
    name string
    The human-readable name of the standard.
    resourceType string
    Filter by resource_type the received standards. Allowed values are technical_service.
    type string
    Specifies the type of resource this inclusion applies to.
    active bool
    Indicates whether the standard is currently active and applicable to the resource.
    description str
    Provides a textual description of the standard.
    exclusions Sequence[GetStandardsStandardExclusion]
    A list of exceptions for the application of this standard.
    id str
    The unique identifier for the resource being included.
    inclusions Sequence[GetStandardsStandardInclusion]
    A list of explict instances this standard applies to.
    name str
    The human-readable name of the standard.
    resource_type str
    Filter by resource_type the received standards. Allowed values are technical_service.
    type str
    Specifies the type of resource this inclusion applies to.
    active Boolean
    Indicates whether the standard is currently active and applicable to the resource.
    description String
    Provides a textual description of the standard.
    exclusions List<Property Map>
    A list of exceptions for the application of this standard.
    id String
    The unique identifier for the resource being included.
    inclusions List<Property Map>
    A list of explict instances this standard applies to.
    name String
    The human-readable name of the standard.
    resourceType String
    Filter by resource_type the received standards. Allowed values are technical_service.
    type String
    Specifies the type of resource this inclusion applies to.

    GetStandardsStandardExclusion

    Id string
    The unique identifier for the resource being included.
    Type string
    Specifies the type of resource this inclusion applies to.
    Id string
    The unique identifier for the resource being included.
    Type string
    Specifies the type of resource this inclusion applies to.
    id String
    The unique identifier for the resource being included.
    type String
    Specifies the type of resource this inclusion applies to.
    id string
    The unique identifier for the resource being included.
    type string
    Specifies the type of resource this inclusion applies to.
    id str
    The unique identifier for the resource being included.
    type str
    Specifies the type of resource this inclusion applies to.
    id String
    The unique identifier for the resource being included.
    type String
    Specifies the type of resource this inclusion applies to.

    GetStandardsStandardInclusion

    Id string
    The unique identifier for the resource being included.
    Type string
    Specifies the type of resource this inclusion applies to.
    Id string
    The unique identifier for the resource being included.
    Type string
    Specifies the type of resource this inclusion applies to.
    id String
    The unique identifier for the resource being included.
    type String
    Specifies the type of resource this inclusion applies to.
    id string
    The unique identifier for the resource being included.
    type string
    Specifies the type of resource this inclusion applies to.
    id str
    The unique identifier for the resource being included.
    type str
    Specifies the type of resource this inclusion applies to.
    id String
    The unique identifier for the resource being included.
    type String
    Specifies the type of resource this inclusion applies to.

    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