1. Packages
  2. Dome9 Provider
  3. API Docs
  4. getRuleset
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

dome9.getRuleset

Explore with Pulumi AI

dome9 logo
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

    Use this data source to get information about a ruleset in Dome9.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dome9 from "@pulumi/dome9";
    
    const test = dome9.getRuleset({
        id: "d9-rule-set-id",
    });
    
    import pulumi
    import pulumi_dome9 as dome9
    
    test = dome9.get_ruleset(id="d9-rule-set-id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/dome9/dome9"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dome9.LookupRuleset(ctx, &dome9.LookupRulesetArgs{
    			Id: "d9-rule-set-id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dome9 = Pulumi.Dome9;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Dome9.GetRuleset.Invoke(new()
        {
            Id = "d9-rule-set-id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dome9.Dome9Functions;
    import com.pulumi.dome9.inputs.GetRulesetArgs;
    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 test = Dome9Functions.getRuleset(GetRulesetArgs.builder()
                .id("d9-rule-set-id")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: dome9:getRuleset
          arguments:
            id: d9-rule-set-id
    

    Using getRuleset

    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 getRuleset(args: GetRulesetArgs, opts?: InvokeOptions): Promise<GetRulesetResult>
    function getRulesetOutput(args: GetRulesetOutputArgs, opts?: InvokeOptions): Output<GetRulesetResult>
    def get_ruleset(id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetRulesetResult
    def get_ruleset_output(id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetRulesetResult]
    func LookupRuleset(ctx *Context, args *LookupRulesetArgs, opts ...InvokeOption) (*LookupRulesetResult, error)
    func LookupRulesetOutput(ctx *Context, args *LookupRulesetOutputArgs, opts ...InvokeOption) LookupRulesetResultOutput

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

    public static class GetRuleset 
    {
        public static Task<GetRulesetResult> InvokeAsync(GetRulesetArgs args, InvokeOptions? opts = null)
        public static Output<GetRulesetResult> Invoke(GetRulesetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRulesetResult> getRuleset(GetRulesetArgs args, InvokeOptions options)
    public static Output<GetRulesetResult> getRuleset(GetRulesetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dome9:index/getRuleset:getRuleset
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The id of the ruleset in Dome9.
    Id string
    The id of the ruleset in Dome9.
    id String
    The id of the ruleset in Dome9.
    id string
    The id of the ruleset in Dome9.
    id str
    The id of the ruleset in Dome9.
    id String
    The id of the ruleset in Dome9.

    getRuleset Result

    The following output properties are available:

    AccountId string
    The account id of the ruleset in Dome9.
    CloudVendor string
    Cloud vendor that the ruleset is associated with, can be one of the following: aws, azure, google, or imageassurance (for Image Assurance rulesets).
    CreatedTime string
    Rule set creation time.
    Description string
    Rule description.
    HideInCompliance bool
    hide in compliance - true/false.
    Id string
    IsTemplate bool
    is a template rule.
    Language string
    Language of the rules; defaults to 'en' (English).
    MinFeatureTier string
    Min feature tier.
    Name string
    Rule name.
    Rules List<GetRulesetRule>
    RulesCount double
    The rules count.
    Section double
    Which section the rule belongs to.

    • rules - List of rules in the ruleset.
    SystemBundle bool
    Is a system bundle or not.
    UpdatedTime string
    Rule set last update time.
    AccountId string
    The account id of the ruleset in Dome9.
    CloudVendor string
    Cloud vendor that the ruleset is associated with, can be one of the following: aws, azure, google, or imageassurance (for Image Assurance rulesets).
    CreatedTime string
    Rule set creation time.
    Description string
    Rule description.
    HideInCompliance bool
    hide in compliance - true/false.
    Id string
    IsTemplate bool
    is a template rule.
    Language string
    Language of the rules; defaults to 'en' (English).
    MinFeatureTier string
    Min feature tier.
    Name string
    Rule name.
    Rules []GetRulesetRule
    RulesCount float64
    The rules count.
    Section float64
    Which section the rule belongs to.

    • rules - List of rules in the ruleset.
    SystemBundle bool
    Is a system bundle or not.
    UpdatedTime string
    Rule set last update time.
    accountId String
    The account id of the ruleset in Dome9.
    cloudVendor String
    Cloud vendor that the ruleset is associated with, can be one of the following: aws, azure, google, or imageassurance (for Image Assurance rulesets).
    createdTime String
    Rule set creation time.
    description String
    Rule description.
    hideInCompliance Boolean
    hide in compliance - true/false.
    id String
    isTemplate Boolean
    is a template rule.
    language String
    Language of the rules; defaults to 'en' (English).
    minFeatureTier String
    Min feature tier.
    name String
    Rule name.
    rules List<GetRulesetRule>
    rulesCount Double
    The rules count.
    section Double
    Which section the rule belongs to.

    • rules - List of rules in the ruleset.
    systemBundle Boolean
    Is a system bundle or not.
    updatedTime String
    Rule set last update time.
    accountId string
    The account id of the ruleset in Dome9.
    cloudVendor string
    Cloud vendor that the ruleset is associated with, can be one of the following: aws, azure, google, or imageassurance (for Image Assurance rulesets).
    createdTime string
    Rule set creation time.
    description string
    Rule description.
    hideInCompliance boolean
    hide in compliance - true/false.
    id string
    isTemplate boolean
    is a template rule.
    language string
    Language of the rules; defaults to 'en' (English).
    minFeatureTier string
    Min feature tier.
    name string
    Rule name.
    rules GetRulesetRule[]
    rulesCount number
    The rules count.
    section number
    Which section the rule belongs to.

    • rules - List of rules in the ruleset.
    systemBundle boolean
    Is a system bundle or not.
    updatedTime string
    Rule set last update time.
    account_id str
    The account id of the ruleset in Dome9.
    cloud_vendor str
    Cloud vendor that the ruleset is associated with, can be one of the following: aws, azure, google, or imageassurance (for Image Assurance rulesets).
    created_time str
    Rule set creation time.
    description str
    Rule description.
    hide_in_compliance bool
    hide in compliance - true/false.
    id str
    is_template bool
    is a template rule.
    language str
    Language of the rules; defaults to 'en' (English).
    min_feature_tier str
    Min feature tier.
    name str
    Rule name.
    rules Sequence[GetRulesetRule]
    rules_count float
    The rules count.
    section float
    Which section the rule belongs to.

    • rules - List of rules in the ruleset.
    system_bundle bool
    Is a system bundle or not.
    updated_time str
    Rule set last update time.
    accountId String
    The account id of the ruleset in Dome9.
    cloudVendor String
    Cloud vendor that the ruleset is associated with, can be one of the following: aws, azure, google, or imageassurance (for Image Assurance rulesets).
    createdTime String
    Rule set creation time.
    description String
    Rule description.
    hideInCompliance Boolean
    hide in compliance - true/false.
    id String
    isTemplate Boolean
    is a template rule.
    language String
    Language of the rules; defaults to 'en' (English).
    minFeatureTier String
    Min feature tier.
    name String
    Rule name.
    rules List<Property Map>
    rulesCount Number
    The rules count.
    section Number
    Which section the rule belongs to.

    • rules - List of rules in the ruleset.
    systemBundle Boolean
    Is a system bundle or not.
    updatedTime String
    Rule set last update time.

    Supporting Types

    GetRulesetRule

    Category string
    Rule category.
    ComplianceTag string
    A reference to a compliance standard.
    ControlTitle string
    Rule control title.
    Description string
    Rule description.
    Domain string
    Rule domain.
    IsDefault bool
    is a default rule (Default: "false").
    Logic string
    Rule GSL logic. This is the text of the rule, using Dome9 GSL syntax.
    LogicHash string
    Rule logic hash.
    Name string
    Rule name.
    Priority string
    Rule priority.
    Remediation string
    Rule remediation.
    RuleId string
    Rule id.
    Severity string
    Rule severity (Default: "Low").
    Category string
    Rule category.
    ComplianceTag string
    A reference to a compliance standard.
    ControlTitle string
    Rule control title.
    Description string
    Rule description.
    Domain string
    Rule domain.
    IsDefault bool
    is a default rule (Default: "false").
    Logic string
    Rule GSL logic. This is the text of the rule, using Dome9 GSL syntax.
    LogicHash string
    Rule logic hash.
    Name string
    Rule name.
    Priority string
    Rule priority.
    Remediation string
    Rule remediation.
    RuleId string
    Rule id.
    Severity string
    Rule severity (Default: "Low").
    category String
    Rule category.
    complianceTag String
    A reference to a compliance standard.
    controlTitle String
    Rule control title.
    description String
    Rule description.
    domain String
    Rule domain.
    isDefault Boolean
    is a default rule (Default: "false").
    logic String
    Rule GSL logic. This is the text of the rule, using Dome9 GSL syntax.
    logicHash String
    Rule logic hash.
    name String
    Rule name.
    priority String
    Rule priority.
    remediation String
    Rule remediation.
    ruleId String
    Rule id.
    severity String
    Rule severity (Default: "Low").
    category string
    Rule category.
    complianceTag string
    A reference to a compliance standard.
    controlTitle string
    Rule control title.
    description string
    Rule description.
    domain string
    Rule domain.
    isDefault boolean
    is a default rule (Default: "false").
    logic string
    Rule GSL logic. This is the text of the rule, using Dome9 GSL syntax.
    logicHash string
    Rule logic hash.
    name string
    Rule name.
    priority string
    Rule priority.
    remediation string
    Rule remediation.
    ruleId string
    Rule id.
    severity string
    Rule severity (Default: "Low").
    category str
    Rule category.
    compliance_tag str
    A reference to a compliance standard.
    control_title str
    Rule control title.
    description str
    Rule description.
    domain str
    Rule domain.
    is_default bool
    is a default rule (Default: "false").
    logic str
    Rule GSL logic. This is the text of the rule, using Dome9 GSL syntax.
    logic_hash str
    Rule logic hash.
    name str
    Rule name.
    priority str
    Rule priority.
    remediation str
    Rule remediation.
    rule_id str
    Rule id.
    severity str
    Rule severity (Default: "Low").
    category String
    Rule category.
    complianceTag String
    A reference to a compliance standard.
    controlTitle String
    Rule control title.
    description String
    Rule description.
    domain String
    Rule domain.
    isDefault Boolean
    is a default rule (Default: "false").
    logic String
    Rule GSL logic. This is the text of the rule, using Dome9 GSL syntax.
    logicHash String
    Rule logic hash.
    name String
    Rule name.
    priority String
    Rule priority.
    remediation String
    Rule remediation.
    ruleId String
    Rule id.
    severity String
    Rule severity (Default: "Low").

    Package Details

    Repository
    dome9 dome9/terraform-provider-dome9
    License
    Notes
    This Pulumi package is based on the dome9 Terraform Provider.
    dome9 logo
    dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9