1. Packages
  2. Scm Provider
  3. API Docs
  4. getAppOverrideRule
Strata Cloud Manager v0.1.6 published on Wednesday, Oct 16, 2024 by Pulumi

scm.getAppOverrideRule

Explore with Pulumi AI

scm logo
Strata Cloud Manager v0.1.6 published on Wednesday, Oct 16, 2024 by Pulumi

    Retrieves a config item.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    const example = scm.getAppOverrideRule({
        id: "1234-56-789",
    });
    
    import pulumi
    import pulumi_scm as scm
    
    example = scm.get_app_override_rule(id="1234-56-789")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scm.LookupAppOverrideRule(ctx, &scm.LookupAppOverrideRuleArgs{
    			Id: "1234-56-789",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Scm.GetAppOverrideRule.Invoke(new()
        {
            Id = "1234-56-789",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetAppOverrideRuleArgs;
    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 = ScmFunctions.getAppOverrideRule(GetAppOverrideRuleArgs.builder()
                .id("1234-56-789")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: scm:getAppOverrideRule
          Arguments:
            id: 1234-56-789
    

    Using getAppOverrideRule

    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 getAppOverrideRule(args: GetAppOverrideRuleArgs, opts?: InvokeOptions): Promise<GetAppOverrideRuleResult>
    function getAppOverrideRuleOutput(args: GetAppOverrideRuleOutputArgs, opts?: InvokeOptions): Output<GetAppOverrideRuleResult>
    def get_app_override_rule(id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAppOverrideRuleResult
    def get_app_override_rule_output(id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAppOverrideRuleResult]
    func LookupAppOverrideRule(ctx *Context, args *LookupAppOverrideRuleArgs, opts ...InvokeOption) (*LookupAppOverrideRuleResult, error)
    func LookupAppOverrideRuleOutput(ctx *Context, args *LookupAppOverrideRuleOutputArgs, opts ...InvokeOption) LookupAppOverrideRuleResultOutput

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

    public static class GetAppOverrideRule 
    {
        public static Task<GetAppOverrideRuleResult> InvokeAsync(GetAppOverrideRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetAppOverrideRuleResult> Invoke(GetAppOverrideRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppOverrideRuleResult> getAppOverrideRule(GetAppOverrideRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scm:index/getAppOverrideRule:getAppOverrideRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The Id param.
    Id string
    The Id param.
    id String
    The Id param.
    id string
    The Id param.
    id str
    The Id param.
    id String
    The Id param.

    getAppOverrideRule Result

    The following output properties are available:

    Application string
    The Application param.
    Description string
    The Description param. String length must not exceed 1024 characters.
    Destinations List<string>
    The Destinations param.
    Disabled bool
    The Disabled param. Default: false.
    Froms List<string>
    The Froms param.
    GroupTag string
    The GroupTag param.
    Id string
    The Id param.
    Name string
    The Name param. String length must not exceed 63 characters. String validation regex: ^[a-zA-Z0-9._-]+$.
    NegateDestination bool
    The NegateDestination param. Default: false.
    NegateSource bool
    The NegateSource param. Default: false.
    Port int
    The Port param. Value must be between 0 and 65535.
    Protocol string
    The Protocol param. String must be one of these: "tcp", "udp".
    Sources List<string>
    The Sources param.
    Tags List<string>
    The Tags param.
    Tfid string
    Tos List<string>
    The Tos param.
    Application string
    The Application param.
    Description string
    The Description param. String length must not exceed 1024 characters.
    Destinations []string
    The Destinations param.
    Disabled bool
    The Disabled param. Default: false.
    Froms []string
    The Froms param.
    GroupTag string
    The GroupTag param.
    Id string
    The Id param.
    Name string
    The Name param. String length must not exceed 63 characters. String validation regex: ^[a-zA-Z0-9._-]+$.
    NegateDestination bool
    The NegateDestination param. Default: false.
    NegateSource bool
    The NegateSource param. Default: false.
    Port int
    The Port param. Value must be between 0 and 65535.
    Protocol string
    The Protocol param. String must be one of these: "tcp", "udp".
    Sources []string
    The Sources param.
    Tags []string
    The Tags param.
    Tfid string
    Tos []string
    The Tos param.
    application String
    The Application param.
    description String
    The Description param. String length must not exceed 1024 characters.
    destinations List<String>
    The Destinations param.
    disabled Boolean
    The Disabled param. Default: false.
    froms List<String>
    The Froms param.
    groupTag String
    The GroupTag param.
    id String
    The Id param.
    name String
    The Name param. String length must not exceed 63 characters. String validation regex: ^[a-zA-Z0-9._-]+$.
    negateDestination Boolean
    The NegateDestination param. Default: false.
    negateSource Boolean
    The NegateSource param. Default: false.
    port Integer
    The Port param. Value must be between 0 and 65535.
    protocol String
    The Protocol param. String must be one of these: "tcp", "udp".
    sources List<String>
    The Sources param.
    tags List<String>
    The Tags param.
    tfid String
    tos List<String>
    The Tos param.
    application string
    The Application param.
    description string
    The Description param. String length must not exceed 1024 characters.
    destinations string[]
    The Destinations param.
    disabled boolean
    The Disabled param. Default: false.
    froms string[]
    The Froms param.
    groupTag string
    The GroupTag param.
    id string
    The Id param.
    name string
    The Name param. String length must not exceed 63 characters. String validation regex: ^[a-zA-Z0-9._-]+$.
    negateDestination boolean
    The NegateDestination param. Default: false.
    negateSource boolean
    The NegateSource param. Default: false.
    port number
    The Port param. Value must be between 0 and 65535.
    protocol string
    The Protocol param. String must be one of these: "tcp", "udp".
    sources string[]
    The Sources param.
    tags string[]
    The Tags param.
    tfid string
    tos string[]
    The Tos param.
    application str
    The Application param.
    description str
    The Description param. String length must not exceed 1024 characters.
    destinations Sequence[str]
    The Destinations param.
    disabled bool
    The Disabled param. Default: false.
    froms Sequence[str]
    The Froms param.
    group_tag str
    The GroupTag param.
    id str
    The Id param.
    name str
    The Name param. String length must not exceed 63 characters. String validation regex: ^[a-zA-Z0-9._-]+$.
    negate_destination bool
    The NegateDestination param. Default: false.
    negate_source bool
    The NegateSource param. Default: false.
    port int
    The Port param. Value must be between 0 and 65535.
    protocol str
    The Protocol param. String must be one of these: "tcp", "udp".
    sources Sequence[str]
    The Sources param.
    tags Sequence[str]
    The Tags param.
    tfid str
    tos Sequence[str]
    The Tos param.
    application String
    The Application param.
    description String
    The Description param. String length must not exceed 1024 characters.
    destinations List<String>
    The Destinations param.
    disabled Boolean
    The Disabled param. Default: false.
    froms List<String>
    The Froms param.
    groupTag String
    The GroupTag param.
    id String
    The Id param.
    name String
    The Name param. String length must not exceed 63 characters. String validation regex: ^[a-zA-Z0-9._-]+$.
    negateDestination Boolean
    The NegateDestination param. Default: false.
    negateSource Boolean
    The NegateSource param. Default: false.
    port Number
    The Port param. Value must be between 0 and 65535.
    protocol String
    The Protocol param. String must be one of these: "tcp", "udp".
    sources List<String>
    The Sources param.
    tags List<String>
    The Tags param.
    tfid String
    tos List<String>
    The Tos param.

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v0.1.6 published on Wednesday, Oct 16, 2024 by Pulumi