PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi
pagerduty.getStandards
Explore with Pulumi AI
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:
- Resource
Type string - Filter by
resource_type
the received standards. Allowed values aretechnical_service
.
- Resource
Type string - Filter by
resource_type
the received standards. Allowed values aretechnical_service
.
- resource
Type String - Filter by
resource_type
the received standards. Allowed values aretechnical_service
.
- resource
Type string - Filter by
resource_type
the received standards. Allowed values aretechnical_service
.
- resource_
type str - Filter by
resource_type
the received standards. Allowed values aretechnical_service
.
- resource
Type String - Filter by
resource_type
the received standards. Allowed values aretechnical_service
.
getStandards Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Standards
List<Get
Standards Standard> - The list of standards defined.
- Resource
Type string - Specifies the type of resource to which the standard applies.
- Id string
- The provider-assigned unique ID for this managed resource.
- Standards
[]Get
Standards Standard - The list of standards defined.
- Resource
Type string - Specifies the type of resource to which the standard applies.
- id String
- The provider-assigned unique ID for this managed resource.
- standards
List<Get
Standards Standard> - The list of standards defined.
- resource
Type String - Specifies the type of resource to which the standard applies.
- id string
- The provider-assigned unique ID for this managed resource.
- standards
Get
Standards Standard[] - The list of standards defined.
- resource
Type string - Specifies the type of resource to which the standard applies.
- id str
- The provider-assigned unique ID for this managed resource.
- standards
Sequence[Get
Standards Standard] - 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.
- resource
Type 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<Get
Standards Standard Exclusion> - A list of exceptions for the application of this standard.
- Id string
- The unique identifier for the resource being included.
- Inclusions
List<Get
Standards Standard Inclusion> - A list of explict instances this standard applies to.
- Name string
- The human-readable name of the standard.
- Resource
Type string - Filter by
resource_type
the received standards. Allowed values aretechnical_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
[]Get
Standards Standard Exclusion - A list of exceptions for the application of this standard.
- Id string
- The unique identifier for the resource being included.
- Inclusions
[]Get
Standards Standard Inclusion - A list of explict instances this standard applies to.
- Name string
- The human-readable name of the standard.
- Resource
Type string - Filter by
resource_type
the received standards. Allowed values aretechnical_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<Get
Standards Standard Exclusion> - A list of exceptions for the application of this standard.
- id String
- The unique identifier for the resource being included.
- inclusions
List<Get
Standards Standard Inclusion> - A list of explict instances this standard applies to.
- name String
- The human-readable name of the standard.
- resource
Type String - Filter by
resource_type
the received standards. Allowed values aretechnical_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
Get
Standards Standard Exclusion[] - A list of exceptions for the application of this standard.
- id string
- The unique identifier for the resource being included.
- inclusions
Get
Standards Standard Inclusion[] - A list of explict instances this standard applies to.
- name string
- The human-readable name of the standard.
- resource
Type string - Filter by
resource_type
the received standards. Allowed values aretechnical_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[Get
Standards Standard Exclusion] - A list of exceptions for the application of this standard.
- id str
- The unique identifier for the resource being included.
- inclusions
Sequence[Get
Standards Standard Inclusion] - 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 aretechnical_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.
- resource
Type String - Filter by
resource_type
the received standards. Allowed values aretechnical_service
. - type String
- Specifies the type of resource this inclusion applies to.
GetStandardsStandardExclusion
GetStandardsStandardInclusion
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerduty
Terraform Provider.