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

ise.trustsec.getIpToSgtMapping

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 IP to SGT Mapping.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ise from "@pulumi/ise";
    
    const example = ise.trustsec.getIpToSgtMapping({
        id: "76d24097-41c4-4558-a4d0-a8c07ac08470",
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.trustsec.get_ip_to_sgt_mapping(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.LookupIpToSgtMapping(ctx, &trustsec.LookupIpToSgtMappingArgs{
    			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.GetIpToSgtMapping.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.GetIpToSgtMappingArgs;
    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.getIpToSgtMapping(GetIpToSgtMappingArgs.builder()
                .id("76d24097-41c4-4558-a4d0-a8c07ac08470")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: ise:trustsec:getIpToSgtMapping
          Arguments:
            id: 76d24097-41c4-4558-a4d0-a8c07ac08470
    

    Using getIpToSgtMapping

    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 getIpToSgtMapping(args: GetIpToSgtMappingArgs, opts?: InvokeOptions): Promise<GetIpToSgtMappingResult>
    function getIpToSgtMappingOutput(args: GetIpToSgtMappingOutputArgs, opts?: InvokeOptions): Output<GetIpToSgtMappingResult>
    def get_ip_to_sgt_mapping(id: Optional[str] = None,
                              name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetIpToSgtMappingResult
    def get_ip_to_sgt_mapping_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetIpToSgtMappingResult]
    func LookupIpToSgtMapping(ctx *Context, args *LookupIpToSgtMappingArgs, opts ...InvokeOption) (*LookupIpToSgtMappingResult, error)
    func LookupIpToSgtMappingOutput(ctx *Context, args *LookupIpToSgtMappingOutputArgs, opts ...InvokeOption) LookupIpToSgtMappingResultOutput

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

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

    The following arguments are supported:

    Id string
    The id of the object
    Name string
    The name of the IP to SGT mapping
    Id string
    The id of the object
    Name string
    The name of the IP to SGT mapping
    id String
    The id of the object
    name String
    The name of the IP to SGT mapping
    id string
    The id of the object
    name string
    The name of the IP to SGT mapping
    id str
    The id of the object
    name str
    The name of the IP to SGT mapping
    id String
    The id of the object
    name String
    The name of the IP to SGT mapping

    getIpToSgtMapping Result

    The following output properties are available:

    DeployTo string
    Mandatory unless mapping_group is set or unless deploy_type is ALL
    DeployType string
    Deploy Type
    Description string
    Description
    HostIp string
    Mandatory if host_name is empty
    HostName string
    Mandatory if host_ip is empty
    Id string
    The id of the object
    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
    Description string
    Description
    HostIp string
    Mandatory if host_name is empty
    HostName string
    Mandatory if host_ip is empty
    Id string
    The id of the object
    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
    description String
    Description
    hostIp String
    Mandatory if host_name is empty
    hostName String
    Mandatory if host_ip is empty
    id String
    The id of the object
    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
    description string
    Description
    hostIp string
    Mandatory if host_name is empty
    hostName string
    Mandatory if host_ip is empty
    id string
    The id of the object
    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
    description str
    Description
    host_ip str
    Mandatory if host_name is empty
    host_name str
    Mandatory if host_ip is empty
    id str
    The id of the object
    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
    description String
    Description
    hostIp String
    Mandatory if host_name is empty
    hostName String
    Mandatory if host_ip is empty
    id String
    The id of the object
    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

    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