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

ise.trustsec.IpToSgtMapping

Explore with Pulumi AI

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

    This resource can manage a TrustSec IP to SGT Mapping.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ise from "@pulumi/ise";
    
    const example = new ise.trustsec.IpToSgtMapping("example", {
        name: "10.0.0.1/32",
        deployType: "ALL",
        hostIp: "10.0.0.1/32",
        sgt: "93e1bf00-8c01-11e6-996c-525400b48521",
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.trustsec.IpToSgtMapping("example",
        name="10.0.0.1/32",
        deploy_type="ALL",
        host_ip="10.0.0.1/32",
        sgt="93e1bf00-8c01-11e6-996c-525400b48521")
    
    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.NewIpToSgtMapping(ctx, "example", &trustsec.IpToSgtMappingArgs{
    			Name:       pulumi.String("10.0.0.1/32"),
    			DeployType: pulumi.String("ALL"),
    			HostIp:     pulumi.String("10.0.0.1/32"),
    			Sgt:        pulumi.String("93e1bf00-8c01-11e6-996c-525400b48521"),
    		})
    		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.IpToSgtMapping("example", new()
        {
            Name = "10.0.0.1/32",
            DeployType = "ALL",
            HostIp = "10.0.0.1/32",
            Sgt = "93e1bf00-8c01-11e6-996c-525400b48521",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ise.trustsec.IpToSgtMapping;
    import com.pulumi.ise.trustsec.IpToSgtMappingArgs;
    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 IpToSgtMapping("example", IpToSgtMappingArgs.builder()
                .name("10.0.0.1/32")
                .deployType("ALL")
                .hostIp("10.0.0.1/32")
                .sgt("93e1bf00-8c01-11e6-996c-525400b48521")
                .build());
    
        }
    }
    
    resources:
      example:
        type: ise:trustsec:IpToSgtMapping
        properties:
          name: 10.0.0.1/32
          deployType: ALL
          hostIp: 10.0.0.1/32
          sgt: 93e1bf00-8c01-11e6-996c-525400b48521
    

    Create IpToSgtMapping Resource

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

    Constructor syntax

    new IpToSgtMapping(name: string, args?: IpToSgtMappingArgs, opts?: CustomResourceOptions);
    @overload
    def IpToSgtMapping(resource_name: str,
                       args: Optional[IpToSgtMappingArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IpToSgtMapping(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       deploy_to: Optional[str] = None,
                       deploy_type: Optional[str] = None,
                       description: Optional[str] = None,
                       host_ip: Optional[str] = None,
                       host_name: Optional[str] = None,
                       mapping_group: Optional[str] = None,
                       name: Optional[str] = None,
                       sgt: Optional[str] = None)
    func NewIpToSgtMapping(ctx *Context, name string, args *IpToSgtMappingArgs, opts ...ResourceOption) (*IpToSgtMapping, error)
    public IpToSgtMapping(string name, IpToSgtMappingArgs? args = null, CustomResourceOptions? opts = null)
    public IpToSgtMapping(String name, IpToSgtMappingArgs args)
    public IpToSgtMapping(String name, IpToSgtMappingArgs args, CustomResourceOptions options)
    
    type: ise:trustsec:IpToSgtMapping
    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 IpToSgtMappingArgs
    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 IpToSgtMappingArgs
    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 IpToSgtMappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IpToSgtMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IpToSgtMappingArgs
    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 ipToSgtMappingResource = new Ise.TrustSec.IpToSgtMapping("ipToSgtMappingResource", new()
    {
        DeployTo = "string",
        DeployType = "string",
        Description = "string",
        HostIp = "string",
        HostName = "string",
        MappingGroup = "string",
        Name = "string",
        Sgt = "string",
    });
    
    example, err := trustsec.NewIpToSgtMapping(ctx, "ipToSgtMappingResource", &trustsec.IpToSgtMappingArgs{
    	DeployTo:     pulumi.String("string"),
    	DeployType:   pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	HostIp:       pulumi.String("string"),
    	HostName:     pulumi.String("string"),
    	MappingGroup: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Sgt:          pulumi.String("string"),
    })
    
    var ipToSgtMappingResource = new IpToSgtMapping("ipToSgtMappingResource", IpToSgtMappingArgs.builder()
        .deployTo("string")
        .deployType("string")
        .description("string")
        .hostIp("string")
        .hostName("string")
        .mappingGroup("string")
        .name("string")
        .sgt("string")
        .build());
    
    ip_to_sgt_mapping_resource = ise.trustsec.IpToSgtMapping("ipToSgtMappingResource",
        deploy_to="string",
        deploy_type="string",
        description="string",
        host_ip="string",
        host_name="string",
        mapping_group="string",
        name="string",
        sgt="string")
    
    const ipToSgtMappingResource = new ise.trustsec.IpToSgtMapping("ipToSgtMappingResource", {
        deployTo: "string",
        deployType: "string",
        description: "string",
        hostIp: "string",
        hostName: "string",
        mappingGroup: "string",
        name: "string",
        sgt: "string",
    });
    
    type: ise:trustsec:IpToSgtMapping
    properties:
        deployTo: string
        deployType: string
        description: string
        hostIp: string
        hostName: string
        mappingGroup: string
        name: string
        sgt: string
    

    IpToSgtMapping 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 IpToSgtMapping resource accepts the following input properties:

    DeployTo string
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    DeployType string
    Deploy Type - Choices: ALL, ND, NDG
    Description string
    Description
    HostIp string
    Mandatory if host_name is empty
    HostName string
    Mandatory if host_ip is empty
    MappingGroup string
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    Name string
    The name of the IP to SGT mapping
    Sgt string
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    DeployTo string
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    DeployType string
    Deploy Type - Choices: ALL, ND, NDG
    Description string
    Description
    HostIp string
    Mandatory if host_name is empty
    HostName string
    Mandatory if host_ip is empty
    MappingGroup string
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    Name string
    The name of the IP to SGT mapping
    Sgt string
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deployTo String
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deployType String
    Deploy Type - Choices: ALL, ND, NDG
    description String
    Description
    hostIp String
    Mandatory if host_name is empty
    hostName String
    Mandatory if host_ip is empty
    mappingGroup String
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name String
    The name of the IP to SGT mapping
    sgt String
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deployTo string
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deployType string
    Deploy Type - Choices: ALL, ND, NDG
    description string
    Description
    hostIp string
    Mandatory if host_name is empty
    hostName string
    Mandatory if host_ip is empty
    mappingGroup string
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name string
    The name of the IP to SGT mapping
    sgt string
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deploy_to str
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deploy_type str
    Deploy Type - Choices: ALL, ND, NDG
    description str
    Description
    host_ip str
    Mandatory if host_name is empty
    host_name str
    Mandatory if host_ip is empty
    mapping_group str
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name str
    The name of the IP to SGT mapping
    sgt str
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deployTo String
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deployType String
    Deploy Type - Choices: ALL, ND, NDG
    description String
    Description
    hostIp String
    Mandatory if host_name is empty
    hostName String
    Mandatory if host_ip is empty
    mappingGroup String
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name String
    The name of the IP to SGT mapping
    sgt String
    Trustsec Security Group ID. Mandatory unless mapping_group is set

    Outputs

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

    Get an existing IpToSgtMapping 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?: IpToSgtMappingState, opts?: CustomResourceOptions): IpToSgtMapping
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            deploy_to: Optional[str] = None,
            deploy_type: Optional[str] = None,
            description: Optional[str] = None,
            host_ip: Optional[str] = None,
            host_name: Optional[str] = None,
            mapping_group: Optional[str] = None,
            name: Optional[str] = None,
            sgt: Optional[str] = None) -> IpToSgtMapping
    func GetIpToSgtMapping(ctx *Context, name string, id IDInput, state *IpToSgtMappingState, opts ...ResourceOption) (*IpToSgtMapping, error)
    public static IpToSgtMapping Get(string name, Input<string> id, IpToSgtMappingState? state, CustomResourceOptions? opts = null)
    public static IpToSgtMapping get(String name, Output<String> id, IpToSgtMappingState 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:
    DeployTo string
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    DeployType string
    Deploy Type - Choices: ALL, ND, NDG
    Description string
    Description
    HostIp string
    Mandatory if host_name is empty
    HostName string
    Mandatory if host_ip is empty
    MappingGroup string
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    Name string
    The name of the IP to SGT mapping
    Sgt string
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    DeployTo string
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    DeployType string
    Deploy Type - Choices: ALL, ND, NDG
    Description string
    Description
    HostIp string
    Mandatory if host_name is empty
    HostName string
    Mandatory if host_ip is empty
    MappingGroup string
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    Name string
    The name of the IP to SGT mapping
    Sgt string
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deployTo String
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deployType String
    Deploy Type - Choices: ALL, ND, NDG
    description String
    Description
    hostIp String
    Mandatory if host_name is empty
    hostName String
    Mandatory if host_ip is empty
    mappingGroup String
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name String
    The name of the IP to SGT mapping
    sgt String
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deployTo string
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deployType string
    Deploy Type - Choices: ALL, ND, NDG
    description string
    Description
    hostIp string
    Mandatory if host_name is empty
    hostName string
    Mandatory if host_ip is empty
    mappingGroup string
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name string
    The name of the IP to SGT mapping
    sgt string
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deploy_to str
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deploy_type str
    Deploy Type - Choices: ALL, ND, NDG
    description str
    Description
    host_ip str
    Mandatory if host_name is empty
    host_name str
    Mandatory if host_ip is empty
    mapping_group str
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name str
    The name of the IP to SGT mapping
    sgt str
    Trustsec Security Group ID. Mandatory unless mapping_group is set
    deployTo String
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    deployType String
    Deploy Type - Choices: ALL, ND, NDG
    description String
    Description
    hostIp String
    Mandatory if host_name is empty
    hostName String
    Mandatory if host_ip is empty
    mappingGroup String
    IP to SGT Mapping Group ID. Mandatory unless sgt and deploy_to and deploy_type are set
    name String
    The name of the IP to SGT mapping
    sgt String
    Trustsec Security Group ID. Mandatory unless mapping_group is set

    Import

    $ pulumi import ise:trustsec/ipToSgtMapping:IpToSgtMapping 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.10 published on Tuesday, Nov 19, 2024 by Pulumi