1. Packages
  2. Cisco ISE Provider
  3. API Docs
  4. trustsec
  5. SecurityGroupAcl
Cisco ISE v0.2.1 published on Saturday, Mar 15, 2025 by Pulumi

ise.trustsec.SecurityGroupAcl

Explore with Pulumi AI

This resource can manage a TrustSec Security Group ACL.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ise from "@pulumi/ise";

const example = new ise.trustsec.SecurityGroupAcl("example", {
    name: "ACL1",
    description: "SG ACL 1",
    aclContent: "Permit IP",
    ipVersion: "IPV4",
    readOnly: false,
});
Copy
import pulumi
import pulumi_ise as ise

example = ise.trustsec.SecurityGroupAcl("example",
    name="ACL1",
    description="SG ACL 1",
    acl_content="Permit IP",
    ip_version="IPV4",
    read_only=False)
Copy
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.NewSecurityGroupAcl(ctx, "example", &trustsec.SecurityGroupAclArgs{
			Name:        pulumi.String("ACL1"),
			Description: pulumi.String("SG ACL 1"),
			AclContent:  pulumi.String("Permit IP"),
			IpVersion:   pulumi.String("IPV4"),
			ReadOnly:    pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ise = Pulumi.Ise;

return await Deployment.RunAsync(() => 
{
    var example = new Ise.TrustSec.SecurityGroupAcl("example", new()
    {
        Name = "ACL1",
        Description = "SG ACL 1",
        AclContent = "Permit IP",
        IpVersion = "IPV4",
        ReadOnly = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ise.trustsec.SecurityGroupAcl;
import com.pulumi.ise.trustsec.SecurityGroupAclArgs;
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 SecurityGroupAcl("example", SecurityGroupAclArgs.builder()
            .name("ACL1")
            .description("SG ACL 1")
            .aclContent("Permit IP")
            .ipVersion("IPV4")
            .readOnly(false)
            .build());

    }
}
Copy
resources:
  example:
    type: ise:trustsec:SecurityGroupAcl
    properties:
      name: ACL1
      description: SG ACL 1
      aclContent: Permit IP
      ipVersion: IPV4
      readOnly: false
Copy

Create SecurityGroupAcl Resource

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

Constructor syntax

new SecurityGroupAcl(name: string, args: SecurityGroupAclArgs, opts?: CustomResourceOptions);
@overload
def SecurityGroupAcl(resource_name: str,
                     args: SecurityGroupAclArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def SecurityGroupAcl(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     acl_content: Optional[str] = None,
                     description: Optional[str] = None,
                     ip_version: Optional[str] = None,
                     name: Optional[str] = None,
                     read_only: Optional[bool] = None)
func NewSecurityGroupAcl(ctx *Context, name string, args SecurityGroupAclArgs, opts ...ResourceOption) (*SecurityGroupAcl, error)
public SecurityGroupAcl(string name, SecurityGroupAclArgs args, CustomResourceOptions? opts = null)
public SecurityGroupAcl(String name, SecurityGroupAclArgs args)
public SecurityGroupAcl(String name, SecurityGroupAclArgs args, CustomResourceOptions options)
type: ise:trustsec:SecurityGroupAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SecurityGroupAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SecurityGroupAclArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SecurityGroupAclArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SecurityGroupAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SecurityGroupAclArgs
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 securityGroupAclResource = new Ise.TrustSec.SecurityGroupAcl("securityGroupAclResource", new()
{
    AclContent = "string",
    Description = "string",
    IpVersion = "string",
    Name = "string",
    ReadOnly = false,
});
Copy
example, err := trustsec.NewSecurityGroupAcl(ctx, "securityGroupAclResource", &trustsec.SecurityGroupAclArgs{
	AclContent:  pulumi.String("string"),
	Description: pulumi.String("string"),
	IpVersion:   pulumi.String("string"),
	Name:        pulumi.String("string"),
	ReadOnly:    pulumi.Bool(false),
})
Copy
var securityGroupAclResource = new SecurityGroupAcl("securityGroupAclResource", SecurityGroupAclArgs.builder()
    .aclContent("string")
    .description("string")
    .ipVersion("string")
    .name("string")
    .readOnly(false)
    .build());
Copy
security_group_acl_resource = ise.trustsec.SecurityGroupAcl("securityGroupAclResource",
    acl_content="string",
    description="string",
    ip_version="string",
    name="string",
    read_only=False)
Copy
const securityGroupAclResource = new ise.trustsec.SecurityGroupAcl("securityGroupAclResource", {
    aclContent: "string",
    description: "string",
    ipVersion: "string",
    name: "string",
    readOnly: false,
});
Copy
type: ise:trustsec:SecurityGroupAcl
properties:
    aclContent: string
    description: string
    ipVersion: string
    name: string
    readOnly: false
Copy

SecurityGroupAcl Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SecurityGroupAcl resource accepts the following input properties:

AclContent This property is required. string
Content of ACL
Description string
Description
IpVersion string
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
Name string
The name of the security group ACL
ReadOnly bool
Read-only
AclContent This property is required. string
Content of ACL
Description string
Description
IpVersion string
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
Name string
The name of the security group ACL
ReadOnly bool
Read-only
aclContent This property is required. String
Content of ACL
description String
Description
ipVersion String
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name String
The name of the security group ACL
readOnly Boolean
Read-only
aclContent This property is required. string
Content of ACL
description string
Description
ipVersion string
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name string
The name of the security group ACL
readOnly boolean
Read-only
acl_content This property is required. str
Content of ACL
description str
Description
ip_version str
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name str
The name of the security group ACL
read_only bool
Read-only
aclContent This property is required. String
Content of ACL
description String
Description
ipVersion String
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name String
The name of the security group ACL
readOnly Boolean
Read-only

Outputs

All input properties are implicitly available as output properties. Additionally, the SecurityGroupAcl 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 SecurityGroupAcl Resource

Get an existing SecurityGroupAcl 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?: SecurityGroupAclState, opts?: CustomResourceOptions): SecurityGroupAcl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acl_content: Optional[str] = None,
        description: Optional[str] = None,
        ip_version: Optional[str] = None,
        name: Optional[str] = None,
        read_only: Optional[bool] = None) -> SecurityGroupAcl
func GetSecurityGroupAcl(ctx *Context, name string, id IDInput, state *SecurityGroupAclState, opts ...ResourceOption) (*SecurityGroupAcl, error)
public static SecurityGroupAcl Get(string name, Input<string> id, SecurityGroupAclState? state, CustomResourceOptions? opts = null)
public static SecurityGroupAcl get(String name, Output<String> id, SecurityGroupAclState state, CustomResourceOptions options)
resources:  _:    type: ise:trustsec:SecurityGroupAcl    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AclContent string
Content of ACL
Description string
Description
IpVersion string
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
Name string
The name of the security group ACL
ReadOnly bool
Read-only
AclContent string
Content of ACL
Description string
Description
IpVersion string
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
Name string
The name of the security group ACL
ReadOnly bool
Read-only
aclContent String
Content of ACL
description String
Description
ipVersion String
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name String
The name of the security group ACL
readOnly Boolean
Read-only
aclContent string
Content of ACL
description string
Description
ipVersion string
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name string
The name of the security group ACL
readOnly boolean
Read-only
acl_content str
Content of ACL
description str
Description
ip_version str
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name str
The name of the security group ACL
read_only bool
Read-only
aclContent String
Content of ACL
description String
Description
ipVersion String
IP Version - Choices: IPV4, IPV6, IP_AGNOSTIC - Default value: IP_AGNOSTIC
name String
The name of the security group ACL
readOnly Boolean
Read-only

Import

$ pulumi import ise:trustsec/securityGroupAcl:SecurityGroupAcl example "76d24097-41c4-4558-a4d0-a8c07ac08470"
Copy

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.