prismacloud.TrustedLoginIpStatus
Explore with Pulumi AI
Manage a Trusted Login IP Status.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = new prismacloud.TrustedLoginIpStatus("example", {enabled: true});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.TrustedLoginIpStatus("example", enabled=True)
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.NewTrustedLoginIpStatus(ctx, "example", &prismacloud.TrustedLoginIpStatusArgs{
Enabled: pulumi.Bool(true),
})
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.TrustedLoginIpStatus("example", new()
{
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.TrustedLoginIpStatus;
import com.pulumi.prismacloud.TrustedLoginIpStatusArgs;
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 TrustedLoginIpStatus("example", TrustedLoginIpStatusArgs.builder()
.enabled(true)
.build());
}
}
resources:
example:
type: prismacloud:TrustedLoginIpStatus
properties:
enabled: true
Create TrustedLoginIpStatus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrustedLoginIpStatus(name: string, args: TrustedLoginIpStatusArgs, opts?: CustomResourceOptions);
@overload
def TrustedLoginIpStatus(resource_name: str,
args: TrustedLoginIpStatusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrustedLoginIpStatus(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
trusted_login_ip_status_id: Optional[str] = None)
func NewTrustedLoginIpStatus(ctx *Context, name string, args TrustedLoginIpStatusArgs, opts ...ResourceOption) (*TrustedLoginIpStatus, error)
public TrustedLoginIpStatus(string name, TrustedLoginIpStatusArgs args, CustomResourceOptions? opts = null)
public TrustedLoginIpStatus(String name, TrustedLoginIpStatusArgs args)
public TrustedLoginIpStatus(String name, TrustedLoginIpStatusArgs args, CustomResourceOptions options)
type: prismacloud:TrustedLoginIpStatus
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 TrustedLoginIpStatusArgs
- 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 TrustedLoginIpStatusArgs
- 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 TrustedLoginIpStatusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrustedLoginIpStatusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrustedLoginIpStatusArgs
- 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 trustedLoginIpStatusResource = new Prismacloud.TrustedLoginIpStatus("trustedLoginIpStatusResource", new()
{
Enabled = false,
TrustedLoginIpStatusId = "string",
});
example, err := prismacloud.NewTrustedLoginIpStatus(ctx, "trustedLoginIpStatusResource", &prismacloud.TrustedLoginIpStatusArgs{
Enabled: pulumi.Bool(false),
TrustedLoginIpStatusId: pulumi.String("string"),
})
var trustedLoginIpStatusResource = new TrustedLoginIpStatus("trustedLoginIpStatusResource", TrustedLoginIpStatusArgs.builder()
.enabled(false)
.trustedLoginIpStatusId("string")
.build());
trusted_login_ip_status_resource = prismacloud.TrustedLoginIpStatus("trustedLoginIpStatusResource",
enabled=False,
trusted_login_ip_status_id="string")
const trustedLoginIpStatusResource = new prismacloud.TrustedLoginIpStatus("trustedLoginIpStatusResource", {
enabled: false,
trustedLoginIpStatusId: "string",
});
type: prismacloud:TrustedLoginIpStatus
properties:
enabled: false
trustedLoginIpStatusId: string
TrustedLoginIpStatus 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 TrustedLoginIpStatus resource accepts the following input properties:
- Enabled bool
- Enable or disable the login IP allow list.
- Trusted
Login stringIp Status Id
- Enabled bool
- Enable or disable the login IP allow list.
- Trusted
Login stringIp Status Id
- enabled Boolean
- Enable or disable the login IP allow list.
- trusted
Login StringIp Status Id
- enabled boolean
- Enable or disable the login IP allow list.
- trusted
Login stringIp Status Id
- enabled bool
- Enable or disable the login IP allow list.
- trusted_
login_ strip_ status_ id
- enabled Boolean
- Enable or disable the login IP allow list.
- trusted
Login StringIp Status Id
Outputs
All input properties are implicitly available as output properties. Additionally, the TrustedLoginIpStatus 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 TrustedLoginIpStatus Resource
Get an existing TrustedLoginIpStatus 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?: TrustedLoginIpStatusState, opts?: CustomResourceOptions): TrustedLoginIpStatus
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
trusted_login_ip_status_id: Optional[str] = None) -> TrustedLoginIpStatus
func GetTrustedLoginIpStatus(ctx *Context, name string, id IDInput, state *TrustedLoginIpStatusState, opts ...ResourceOption) (*TrustedLoginIpStatus, error)
public static TrustedLoginIpStatus Get(string name, Input<string> id, TrustedLoginIpStatusState? state, CustomResourceOptions? opts = null)
public static TrustedLoginIpStatus get(String name, Output<String> id, TrustedLoginIpStatusState state, CustomResourceOptions options)
resources: _: type: prismacloud:TrustedLoginIpStatus 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.
- Enabled bool
- Enable or disable the login IP allow list.
- Trusted
Login stringIp Status Id
- Enabled bool
- Enable or disable the login IP allow list.
- Trusted
Login stringIp Status Id
- enabled Boolean
- Enable or disable the login IP allow list.
- trusted
Login StringIp Status Id
- enabled boolean
- Enable or disable the login IP allow list.
- trusted
Login stringIp Status Id
- enabled bool
- Enable or disable the login IP allow list.
- trusted_
login_ strip_ status_ id
- enabled Boolean
- Enable or disable the login IP allow list.
- trusted
Login StringIp Status Id
Import
Resources can be imported using the trusted_login_ip_status ID:
$ pulumi import prismacloud:index/trustedLoginIpStatus:TrustedLoginIpStatus example login_ip_status
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.