ise.deviceadmin.AllowedProtocolsTacacs
Explore with Pulumi AI
This resource can manage a TACACS allowed protocols policy element.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ise from "@pulumi/ise";
const example = new ise.deviceadmin.AllowedProtocolsTacacs("example", {
name: "Protocols1",
description: "My allowed TACACS protocols",
allowPapAscii: true,
allowChap: true,
allowMsChapV1: true,
});
import pulumi
import pulumi_ise as ise
example = ise.deviceadmin.AllowedProtocolsTacacs("example",
name="Protocols1",
description="My allowed TACACS protocols",
allow_pap_ascii=True,
allow_chap=True,
allow_ms_chap_v1=True)
package main
import (
"github.com/pulumi/pulumi-ise/sdk/go/ise/deviceadmin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceadmin.NewAllowedProtocolsTacacs(ctx, "example", &deviceadmin.AllowedProtocolsTacacsArgs{
Name: pulumi.String("Protocols1"),
Description: pulumi.String("My allowed TACACS protocols"),
AllowPapAscii: pulumi.Bool(true),
AllowChap: pulumi.Bool(true),
AllowMsChapV1: pulumi.Bool(true),
})
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.DeviceAdmin.AllowedProtocolsTacacs("example", new()
{
Name = "Protocols1",
Description = "My allowed TACACS protocols",
AllowPapAscii = true,
AllowChap = true,
AllowMsChapV1 = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ise.deviceadmin.AllowedProtocolsTacacs;
import com.pulumi.ise.deviceadmin.AllowedProtocolsTacacsArgs;
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 AllowedProtocolsTacacs("example", AllowedProtocolsTacacsArgs.builder()
.name("Protocols1")
.description("My allowed TACACS protocols")
.allowPapAscii(true)
.allowChap(true)
.allowMsChapV1(true)
.build());
}
}
resources:
example:
type: ise:deviceadmin:AllowedProtocolsTacacs
properties:
name: Protocols1
description: My allowed TACACS protocols
allowPapAscii: true
allowChap: true
allowMsChapV1: true
Create AllowedProtocolsTacacs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AllowedProtocolsTacacs(name: string, args: AllowedProtocolsTacacsArgs, opts?: CustomResourceOptions);
@overload
def AllowedProtocolsTacacs(resource_name: str,
args: AllowedProtocolsTacacsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AllowedProtocolsTacacs(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_chap: Optional[bool] = None,
allow_ms_chap_v1: Optional[bool] = None,
allow_pap_ascii: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewAllowedProtocolsTacacs(ctx *Context, name string, args AllowedProtocolsTacacsArgs, opts ...ResourceOption) (*AllowedProtocolsTacacs, error)
public AllowedProtocolsTacacs(string name, AllowedProtocolsTacacsArgs args, CustomResourceOptions? opts = null)
public AllowedProtocolsTacacs(String name, AllowedProtocolsTacacsArgs args)
public AllowedProtocolsTacacs(String name, AllowedProtocolsTacacsArgs args, CustomResourceOptions options)
type: ise:deviceadmin:AllowedProtocolsTacacs
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 AllowedProtocolsTacacsArgs
- 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 AllowedProtocolsTacacsArgs
- 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 AllowedProtocolsTacacsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AllowedProtocolsTacacsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AllowedProtocolsTacacsArgs
- 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 allowedProtocolsTacacsResource = new Ise.DeviceAdmin.AllowedProtocolsTacacs("allowedProtocolsTacacsResource", new()
{
AllowChap = false,
AllowMsChapV1 = false,
AllowPapAscii = false,
Description = "string",
Name = "string",
});
example, err := deviceadmin.NewAllowedProtocolsTacacs(ctx, "allowedProtocolsTacacsResource", &deviceadmin.AllowedProtocolsTacacsArgs{
AllowChap: pulumi.Bool(false),
AllowMsChapV1: pulumi.Bool(false),
AllowPapAscii: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var allowedProtocolsTacacsResource = new AllowedProtocolsTacacs("allowedProtocolsTacacsResource", AllowedProtocolsTacacsArgs.builder()
.allowChap(false)
.allowMsChapV1(false)
.allowPapAscii(false)
.description("string")
.name("string")
.build());
allowed_protocols_tacacs_resource = ise.deviceadmin.AllowedProtocolsTacacs("allowedProtocolsTacacsResource",
allow_chap=False,
allow_ms_chap_v1=False,
allow_pap_ascii=False,
description="string",
name="string")
const allowedProtocolsTacacsResource = new ise.deviceadmin.AllowedProtocolsTacacs("allowedProtocolsTacacsResource", {
allowChap: false,
allowMsChapV1: false,
allowPapAscii: false,
description: "string",
name: "string",
});
type: ise:deviceadmin:AllowedProtocolsTacacs
properties:
allowChap: false
allowMsChapV1: false
allowPapAscii: false
description: string
name: string
AllowedProtocolsTacacs 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 AllowedProtocolsTacacs resource accepts the following input properties:
- Allow
Chap bool - Allow CHAP
- Allow
Ms boolChap V1 - Allow MS CHAP v1
- Allow
Pap boolAscii - Allow PAP ASCII
- Description string
- Description
- Name string
- The name of the allowed protocols
- Allow
Chap bool - Allow CHAP
- Allow
Ms boolChap V1 - Allow MS CHAP v1
- Allow
Pap boolAscii - Allow PAP ASCII
- Description string
- Description
- Name string
- The name of the allowed protocols
- allow
Chap Boolean - Allow CHAP
- allow
Ms BooleanChap V1 - Allow MS CHAP v1
- allow
Pap BooleanAscii - Allow PAP ASCII
- description String
- Description
- name String
- The name of the allowed protocols
- allow
Chap boolean - Allow CHAP
- allow
Ms booleanChap V1 - Allow MS CHAP v1
- allow
Pap booleanAscii - Allow PAP ASCII
- description string
- Description
- name string
- The name of the allowed protocols
- allow_
chap bool - Allow CHAP
- allow_
ms_ boolchap_ v1 - Allow MS CHAP v1
- allow_
pap_ boolascii - Allow PAP ASCII
- description str
- Description
- name str
- The name of the allowed protocols
- allow
Chap Boolean - Allow CHAP
- allow
Ms BooleanChap V1 - Allow MS CHAP v1
- allow
Pap BooleanAscii - Allow PAP ASCII
- description String
- Description
- name String
- The name of the allowed protocols
Outputs
All input properties are implicitly available as output properties. Additionally, the AllowedProtocolsTacacs 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 AllowedProtocolsTacacs Resource
Get an existing AllowedProtocolsTacacs 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?: AllowedProtocolsTacacsState, opts?: CustomResourceOptions): AllowedProtocolsTacacs
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_chap: Optional[bool] = None,
allow_ms_chap_v1: Optional[bool] = None,
allow_pap_ascii: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None) -> AllowedProtocolsTacacs
func GetAllowedProtocolsTacacs(ctx *Context, name string, id IDInput, state *AllowedProtocolsTacacsState, opts ...ResourceOption) (*AllowedProtocolsTacacs, error)
public static AllowedProtocolsTacacs Get(string name, Input<string> id, AllowedProtocolsTacacsState? state, CustomResourceOptions? opts = null)
public static AllowedProtocolsTacacs get(String name, Output<String> id, AllowedProtocolsTacacsState 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.
- Allow
Chap bool - Allow CHAP
- Allow
Ms boolChap V1 - Allow MS CHAP v1
- Allow
Pap boolAscii - Allow PAP ASCII
- Description string
- Description
- Name string
- The name of the allowed protocols
- Allow
Chap bool - Allow CHAP
- Allow
Ms boolChap V1 - Allow MS CHAP v1
- Allow
Pap boolAscii - Allow PAP ASCII
- Description string
- Description
- Name string
- The name of the allowed protocols
- allow
Chap Boolean - Allow CHAP
- allow
Ms BooleanChap V1 - Allow MS CHAP v1
- allow
Pap BooleanAscii - Allow PAP ASCII
- description String
- Description
- name String
- The name of the allowed protocols
- allow
Chap boolean - Allow CHAP
- allow
Ms booleanChap V1 - Allow MS CHAP v1
- allow
Pap booleanAscii - Allow PAP ASCII
- description string
- Description
- name string
- The name of the allowed protocols
- allow_
chap bool - Allow CHAP
- allow_
ms_ boolchap_ v1 - Allow MS CHAP v1
- allow_
pap_ boolascii - Allow PAP ASCII
- description str
- Description
- name str
- The name of the allowed protocols
- allow
Chap Boolean - Allow CHAP
- allow
Ms BooleanChap V1 - Allow MS CHAP v1
- allow
Pap BooleanAscii - Allow PAP ASCII
- description String
- Description
- name String
- The name of the allowed protocols
Import
$ pulumi import ise:deviceadmin/allowedProtocolsTacacs:AllowedProtocolsTacacs 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.