prismacloud.TrustedLoginIp
Explore with Pulumi AI
Manage a Login IP Allow List.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = new prismacloud.TrustedLoginIp("example", {
cidrs: ["1.1.1.0/24"],
description: "Made by Pulumi",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.TrustedLoginIp("example",
cidrs=["1.1.1.0/24"],
description="Made by Pulumi")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.NewTrustedLoginIp(ctx, "example", &prismacloud.TrustedLoginIpArgs{
Cidrs: pulumi.StringArray{
pulumi.String("1.1.1.0/24"),
},
Description: pulumi.String("Made by Pulumi"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = new Prismacloud.TrustedLoginIp("example", new()
{
Cidrs = new[]
{
"1.1.1.0/24",
},
Description = "Made by Pulumi",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.TrustedLoginIp;
import com.pulumi.prismacloud.TrustedLoginIpArgs;
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 TrustedLoginIp("example", TrustedLoginIpArgs.builder()
.cidrs("1.1.1.0/24")
.description("Made by Pulumi")
.build());
}
}
resources:
example:
type: prismacloud:TrustedLoginIp
properties:
cidrs:
- 1.1.1.0/24
description: Made by Pulumi
Create TrustedLoginIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrustedLoginIp(name: string, args: TrustedLoginIpArgs, opts?: CustomResourceOptions);
@overload
def TrustedLoginIp(resource_name: str,
args: TrustedLoginIpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrustedLoginIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidrs: Optional[Sequence[str]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
prismacloud_trusted_login_ip_id: Optional[str] = None)
func NewTrustedLoginIp(ctx *Context, name string, args TrustedLoginIpArgs, opts ...ResourceOption) (*TrustedLoginIp, error)
public TrustedLoginIp(string name, TrustedLoginIpArgs args, CustomResourceOptions? opts = null)
public TrustedLoginIp(String name, TrustedLoginIpArgs args)
public TrustedLoginIp(String name, TrustedLoginIpArgs args, CustomResourceOptions options)
type: prismacloud:TrustedLoginIp
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 TrustedLoginIpArgs
- 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 TrustedLoginIpArgs
- 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 TrustedLoginIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrustedLoginIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrustedLoginIpArgs
- 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 trustedLoginIpResource = new Prismacloud.TrustedLoginIp("trustedLoginIpResource", new()
{
Cidrs = new[]
{
"string",
},
Description = "string",
Name = "string",
PrismacloudTrustedLoginIpId = "string",
});
example, err := prismacloud.NewTrustedLoginIp(ctx, "trustedLoginIpResource", &prismacloud.TrustedLoginIpArgs{
Cidrs: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
PrismacloudTrustedLoginIpId: pulumi.String("string"),
})
var trustedLoginIpResource = new TrustedLoginIp("trustedLoginIpResource", TrustedLoginIpArgs.builder()
.cidrs("string")
.description("string")
.name("string")
.prismacloudTrustedLoginIpId("string")
.build());
trusted_login_ip_resource = prismacloud.TrustedLoginIp("trustedLoginIpResource",
cidrs=["string"],
description="string",
name="string",
prismacloud_trusted_login_ip_id="string")
const trustedLoginIpResource = new prismacloud.TrustedLoginIp("trustedLoginIpResource", {
cidrs: ["string"],
description: "string",
name: "string",
prismacloudTrustedLoginIpId: "string",
});
type: prismacloud:TrustedLoginIp
properties:
cidrs:
- string
description: string
name: string
prismacloudTrustedLoginIpId: string
TrustedLoginIp 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 TrustedLoginIp resource accepts the following input properties:
- Cidrs List<string>
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- Description string
- Description.
- Name string
- Unique name for CIDR (IP addresses) allow list.
- Prismacloud
Trusted stringLogin Ip Id
- Cidrs []string
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- Description string
- Description.
- Name string
- Unique name for CIDR (IP addresses) allow list.
- Prismacloud
Trusted stringLogin Ip Id
- cidrs List<String>
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description String
- Description.
- name String
- Unique name for CIDR (IP addresses) allow list.
- prismacloud
Trusted StringLogin Ip Id
- cidrs string[]
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description string
- Description.
- name string
- Unique name for CIDR (IP addresses) allow list.
- prismacloud
Trusted stringLogin Ip Id
- cidrs Sequence[str]
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description str
- Description.
- name str
- Unique name for CIDR (IP addresses) allow list.
- prismacloud_
trusted_ strlogin_ ip_ id
- cidrs List<String>
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description String
- Description.
- name String
- Unique name for CIDR (IP addresses) allow list.
- prismacloud
Trusted StringLogin Ip Id
Outputs
All input properties are implicitly available as output properties. Additionally, the TrustedLoginIp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified doubleTs - (int) Timestamp for last modification of CIDR block list.
- Trusted
Login stringIp Id - Login IP allow list ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified float64Ts - (int) Timestamp for last modification of CIDR block list.
- Trusted
Login stringIp Id - Login IP allow list ID
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified DoubleTs - (int) Timestamp for last modification of CIDR block list.
- trusted
Login StringIp Id - Login IP allow list ID
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified numberTs - (int) Timestamp for last modification of CIDR block list.
- trusted
Login stringIp Id - Login IP allow list ID
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ floatts - (int) Timestamp for last modification of CIDR block list.
- trusted_
login_ strip_ id - Login IP allow list ID
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified NumberTs - (int) Timestamp for last modification of CIDR block list.
- trusted
Login StringIp Id - Login IP allow list ID
Look up Existing TrustedLoginIp Resource
Get an existing TrustedLoginIp 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?: TrustedLoginIpState, opts?: CustomResourceOptions): TrustedLoginIp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidrs: Optional[Sequence[str]] = None,
description: Optional[str] = None,
last_modified_ts: Optional[float] = None,
name: Optional[str] = None,
prismacloud_trusted_login_ip_id: Optional[str] = None,
trusted_login_ip_id: Optional[str] = None) -> TrustedLoginIp
func GetTrustedLoginIp(ctx *Context, name string, id IDInput, state *TrustedLoginIpState, opts ...ResourceOption) (*TrustedLoginIp, error)
public static TrustedLoginIp Get(string name, Input<string> id, TrustedLoginIpState? state, CustomResourceOptions? opts = null)
public static TrustedLoginIp get(String name, Output<String> id, TrustedLoginIpState state, CustomResourceOptions options)
resources: _: type: prismacloud:TrustedLoginIp get: id: ${id}
- 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.
- Cidrs List<string>
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- Description string
- Description.
- Last
Modified doubleTs - (int) Timestamp for last modification of CIDR block list.
- Name string
- Unique name for CIDR (IP addresses) allow list.
- Prismacloud
Trusted stringLogin Ip Id - Trusted
Login stringIp Id - Login IP allow list ID
- Cidrs []string
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- Description string
- Description.
- Last
Modified float64Ts - (int) Timestamp for last modification of CIDR block list.
- Name string
- Unique name for CIDR (IP addresses) allow list.
- Prismacloud
Trusted stringLogin Ip Id - Trusted
Login stringIp Id - Login IP allow list ID
- cidrs List<String>
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description String
- Description.
- last
Modified DoubleTs - (int) Timestamp for last modification of CIDR block list.
- name String
- Unique name for CIDR (IP addresses) allow list.
- prismacloud
Trusted StringLogin Ip Id - trusted
Login StringIp Id - Login IP allow list ID
- cidrs string[]
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description string
- Description.
- last
Modified numberTs - (int) Timestamp for last modification of CIDR block list.
- name string
- Unique name for CIDR (IP addresses) allow list.
- prismacloud
Trusted stringLogin Ip Id - trusted
Login stringIp Id - Login IP allow list ID
- cidrs Sequence[str]
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description str
- Description.
- last_
modified_ floatts - (int) Timestamp for last modification of CIDR block list.
- name str
- Unique name for CIDR (IP addresses) allow list.
- prismacloud_
trusted_ strlogin_ ip_ id - trusted_
login_ strip_ id - Login IP allow list ID
- cidrs List<String>
- List of CIDRs to Allow List for login access. You can include from 1 to 10 CIDRs.
- description String
- Description.
- last
Modified NumberTs - (int) Timestamp for last modification of CIDR block list.
- name String
- Unique name for CIDR (IP addresses) allow list.
- prismacloud
Trusted StringLogin Ip Id - trusted
Login StringIp Id - Login IP allow list ID
Import
Resources can be imported using the trusted_login_ip ID:
$ pulumi import prismacloud:index/trustedLoginIp:TrustedLoginIp example 11111111-2222-3333-4444-555555555555
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.