1. Packages
  2. Cisco ISE
  3. API Docs
  4. trustsec
  5. getSecurityGroup
Cisco ISE v0.1.10 published on Tuesday, Nov 19, 2024 by Pulumi

ise.trustsec.getSecurityGroup

Explore with Pulumi AI

ise logo
Cisco ISE v0.1.10 published on Tuesday, Nov 19, 2024 by Pulumi

    This data source can read the TrustSec Security Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ise from "@pulumi/ise";
    
    const example = ise.trustsec.getSecurityGroup({
        id: "76d24097-41c4-4558-a4d0-a8c07ac08470",
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.trustsec.get_security_group(id="76d24097-41c4-4558-a4d0-a8c07ac08470")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-ise/sdk/go/ise/trustsec"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := trustsec.LookupSecurityGroup(ctx, &trustsec.LookupSecurityGroupArgs{
    			Id: pulumi.StringRef("76d24097-41c4-4558-a4d0-a8c07ac08470"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ise = Pulumi.Ise;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ise.TrustSec.GetSecurityGroup.Invoke(new()
        {
            Id = "76d24097-41c4-4558-a4d0-a8c07ac08470",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ise.trustsec.TrustsecFunctions;
    import com.pulumi.ise.trustsec.inputs.GetSecurityGroupArgs;
    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 = TrustsecFunctions.getSecurityGroup(GetSecurityGroupArgs.builder()
                .id("76d24097-41c4-4558-a4d0-a8c07ac08470")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: ise:trustsec:getSecurityGroup
          Arguments:
            id: 76d24097-41c4-4558-a4d0-a8c07ac08470
    

    Using getSecurityGroup

    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 getSecurityGroup(args: GetSecurityGroupArgs, opts?: InvokeOptions): Promise<GetSecurityGroupResult>
    function getSecurityGroupOutput(args: GetSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupResult>
    def get_security_group(id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetSecurityGroupResult
    def get_security_group_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupResult]
    func LookupSecurityGroup(ctx *Context, args *LookupSecurityGroupArgs, opts ...InvokeOption) (*LookupSecurityGroupResult, error)
    func LookupSecurityGroupOutput(ctx *Context, args *LookupSecurityGroupOutputArgs, opts ...InvokeOption) LookupSecurityGroupResultOutput

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

    public static class GetSecurityGroup 
    {
        public static Task<GetSecurityGroupResult> InvokeAsync(GetSecurityGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityGroupResult> Invoke(GetSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityGroupResult> getSecurityGroup(GetSecurityGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ise:trustsec/getSecurityGroup:getSecurityGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The id of the object
    Name string
    The name of the security group
    Id string
    The id of the object
    Name string
    The name of the security group
    id String
    The id of the object
    name String
    The name of the security group
    id string
    The id of the object
    name string
    The name of the security group
    id str
    The id of the object
    name str
    The name of the security group
    id String
    The id of the object
    name String
    The name of the security group

    getSecurityGroup Result

    The following output properties are available:

    Description string
    Description
    Id string
    The id of the object
    IsReadOnly bool
    Read-only
    Name string
    The name of the security group
    PropogateToApic bool
    Propagate to APIC (ACI)
    Value int
    -1 to auto-generate
    Description string
    Description
    Id string
    The id of the object
    IsReadOnly bool
    Read-only
    Name string
    The name of the security group
    PropogateToApic bool
    Propagate to APIC (ACI)
    Value int
    -1 to auto-generate
    description String
    Description
    id String
    The id of the object
    isReadOnly Boolean
    Read-only
    name String
    The name of the security group
    propogateToApic Boolean
    Propagate to APIC (ACI)
    value Integer
    -1 to auto-generate
    description string
    Description
    id string
    The id of the object
    isReadOnly boolean
    Read-only
    name string
    The name of the security group
    propogateToApic boolean
    Propagate to APIC (ACI)
    value number
    -1 to auto-generate
    description str
    Description
    id str
    The id of the object
    is_read_only bool
    Read-only
    name str
    The name of the security group
    propogate_to_apic bool
    Propagate to APIC (ACI)
    value int
    -1 to auto-generate
    description String
    Description
    id String
    The id of the object
    isReadOnly Boolean
    Read-only
    name String
    The name of the security group
    propogateToApic Boolean
    Propagate to APIC (ACI)
    value Number
    -1 to auto-generate

    Package Details

    Repository
    ise pulumi/pulumi-ise
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ise Terraform Provider.
    ise logo
    Cisco ISE v0.1.10 published on Tuesday, Nov 19, 2024 by Pulumi