1. Packages
  2. Cisco ISE
  3. API Docs
  4. trustsec
  5. SecurityGroup
Cisco ISE v0.1.7 published on Tuesday, Sep 24, 2024 by Pulumi

ise.trustsec.SecurityGroup

Explore with Pulumi AI

ise logo
Cisco ISE v0.1.7 published on Tuesday, Sep 24, 2024 by Pulumi

    This resource can manage a TrustSec Security Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ise from "@pulumi/ise";
    
    const example = new ise.trustsec.SecurityGroup("example", {
        name: "SGT1234",
        description: "My SGT",
        value: 1234,
        propogateToApic: true,
        isReadOnly: false,
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.trustsec.SecurityGroup("example",
        name="SGT1234",
        description="My SGT",
        value=1234,
        propogate_to_apic=True,
        is_read_only=False)
    
    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.NewSecurityGroup(ctx, "example", &trustsec.SecurityGroupArgs{
    			Name:            pulumi.String("SGT1234"),
    			Description:     pulumi.String("My SGT"),
    			Value:           pulumi.Int(1234),
    			PropogateToApic: pulumi.Bool(true),
    			IsReadOnly:      pulumi.Bool(false),
    		})
    		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 = new Ise.TrustSec.SecurityGroup("example", new()
        {
            Name = "SGT1234",
            Description = "My SGT",
            Value = 1234,
            PropogateToApic = true,
            IsReadOnly = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ise.trustsec.SecurityGroup;
    import com.pulumi.ise.trustsec.SecurityGroupArgs;
    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) {
            var example = new SecurityGroup("example", SecurityGroupArgs.builder()
                .name("SGT1234")
                .description("My SGT")
                .value(1234)
                .propogateToApic(true)
                .isReadOnly(false)
                .build());
    
        }
    }
    
    resources:
      example:
        type: ise:trustsec:SecurityGroup
        properties:
          name: SGT1234
          description: My SGT
          value: 1234
          propogateToApic: true
          isReadOnly: false
    

    Create SecurityGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecurityGroup(name: string, args: SecurityGroupArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityGroup(resource_name: str,
                      args: SecurityGroupArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityGroup(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      value: Optional[int] = None,
                      description: Optional[str] = None,
                      is_read_only: Optional[bool] = None,
                      name: Optional[str] = None,
                      propogate_to_apic: Optional[bool] = None)
    func NewSecurityGroup(ctx *Context, name string, args SecurityGroupArgs, opts ...ResourceOption) (*SecurityGroup, error)
    public SecurityGroup(string name, SecurityGroupArgs args, CustomResourceOptions? opts = null)
    public SecurityGroup(String name, SecurityGroupArgs args)
    public SecurityGroup(String name, SecurityGroupArgs args, CustomResourceOptions options)
    
    type: ise:trustsec:SecurityGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecurityGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecurityGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecurityGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var securityGroupResource = new Ise.TrustSec.SecurityGroup("securityGroupResource", new()
    {
        Value = 0,
        Description = "string",
        IsReadOnly = false,
        Name = "string",
        PropogateToApic = false,
    });
    
    example, err := trustsec.NewSecurityGroup(ctx, "securityGroupResource", &trustsec.SecurityGroupArgs{
    	Value:           pulumi.Int(0),
    	Description:     pulumi.String("string"),
    	IsReadOnly:      pulumi.Bool(false),
    	Name:            pulumi.String("string"),
    	PropogateToApic: pulumi.Bool(false),
    })
    
    var securityGroupResource = new SecurityGroup("securityGroupResource", SecurityGroupArgs.builder()
        .value(0)
        .description("string")
        .isReadOnly(false)
        .name("string")
        .propogateToApic(false)
        .build());
    
    security_group_resource = ise.trustsec.SecurityGroup("securityGroupResource",
        value=0,
        description="string",
        is_read_only=False,
        name="string",
        propogate_to_apic=False)
    
    const securityGroupResource = new ise.trustsec.SecurityGroup("securityGroupResource", {
        value: 0,
        description: "string",
        isReadOnly: false,
        name: "string",
        propogateToApic: false,
    });
    
    type: ise:trustsec:SecurityGroup
    properties:
        description: string
        isReadOnly: false
        name: string
        propogateToApic: false
        value: 0
    

    SecurityGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SecurityGroup resource accepts the following input properties:

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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SecurityGroup Resource

    Get an existing SecurityGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecurityGroupState, opts?: CustomResourceOptions): SecurityGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            is_read_only: Optional[bool] = None,
            name: Optional[str] = None,
            propogate_to_apic: Optional[bool] = None,
            value: Optional[int] = None) -> SecurityGroup
    func GetSecurityGroup(ctx *Context, name string, id IDInput, state *SecurityGroupState, opts ...ResourceOption) (*SecurityGroup, error)
    public static SecurityGroup Get(string name, Input<string> id, SecurityGroupState? state, CustomResourceOptions? opts = null)
    public static SecurityGroup get(String name, Output<String> id, SecurityGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    Description
    IsReadOnly bool
    Read-only - Default value: false
    Name string
    The name of the security group
    PropogateToApic bool
    Propagate to APIC (ACI)
    Value int
    -1 to auto-generate - Range: -1-65519
    Description string
    Description
    IsReadOnly bool
    Read-only - Default value: false
    Name string
    The name of the security group
    PropogateToApic bool
    Propagate to APIC (ACI)
    Value int
    -1 to auto-generate - Range: -1-65519
    description String
    Description
    isReadOnly Boolean
    Read-only - Default value: false
    name String
    The name of the security group
    propogateToApic Boolean
    Propagate to APIC (ACI)
    value Integer
    -1 to auto-generate - Range: -1-65519
    description string
    Description
    isReadOnly boolean
    Read-only - Default value: false
    name string
    The name of the security group
    propogateToApic boolean
    Propagate to APIC (ACI)
    value number
    -1 to auto-generate - Range: -1-65519
    description str
    Description
    is_read_only bool
    Read-only - Default value: false
    name str
    The name of the security group
    propogate_to_apic bool
    Propagate to APIC (ACI)
    value int
    -1 to auto-generate - Range: -1-65519
    description String
    Description
    isReadOnly Boolean
    Read-only - Default value: false
    name String
    The name of the security group
    propogateToApic Boolean
    Propagate to APIC (ACI)
    value Number
    -1 to auto-generate - Range: -1-65519

    Import

    $ pulumi import ise:trustsec/securityGroup:SecurityGroup example "76d24097-41c4-4558-a4d0-a8c07ac08470"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.7 published on Tuesday, Sep 24, 2024 by Pulumi