1. Packages
  2. Prismacloud Provider
  3. API Docs
  4. TrustedAlertIp
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

prismacloud.TrustedAlertIp

Explore with Pulumi AI

Manage an trusted alert ip.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";

const example = new prismacloud.TrustedAlertIp("example", {cidrs: [{
    cidr: "1.1.1.1/32",
    description: "ip address description",
}]});
Copy
import pulumi
import pulumi_prismacloud as prismacloud

example = prismacloud.TrustedAlertIp("example", cidrs=[{
    "cidr": "1.1.1.1/32",
    "description": "ip address description",
}])
Copy
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.NewTrustedAlertIp(ctx, "example", &prismacloud.TrustedAlertIpArgs{
			Cidrs: prismacloud.TrustedAlertIpCidrArray{
				&prismacloud.TrustedAlertIpCidrArgs{
					Cidr:        pulumi.String("1.1.1.1/32"),
					Description: pulumi.String("ip address description"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;

return await Deployment.RunAsync(() => 
{
    var example = new Prismacloud.TrustedAlertIp("example", new()
    {
        Cidrs = new[]
        {
            new Prismacloud.Inputs.TrustedAlertIpCidrArgs
            {
                Cidr = "1.1.1.1/32",
                Description = "ip address description",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.TrustedAlertIp;
import com.pulumi.prismacloud.TrustedAlertIpArgs;
import com.pulumi.prismacloud.inputs.TrustedAlertIpCidrArgs;
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 TrustedAlertIp("example", TrustedAlertIpArgs.builder()
            .cidrs(TrustedAlertIpCidrArgs.builder()
                .cidr("1.1.1.1/32")
                .description("ip address description")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: prismacloud:TrustedAlertIp
    properties:
      cidrs:
        - cidr: 1.1.1.1/32
          description: ip address description
Copy

Create TrustedAlertIp Resource

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

Constructor syntax

new TrustedAlertIp(name: string, args?: TrustedAlertIpArgs, opts?: CustomResourceOptions);
@overload
def TrustedAlertIp(resource_name: str,
                   args: Optional[TrustedAlertIpArgs] = None,
                   opts: Optional[ResourceOptions] = None)

@overload
def TrustedAlertIp(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cidrs: Optional[Sequence[TrustedAlertIpCidrArgs]] = None,
                   name: Optional[str] = None,
                   trusted_alert_ip_id: Optional[str] = None)
func NewTrustedAlertIp(ctx *Context, name string, args *TrustedAlertIpArgs, opts ...ResourceOption) (*TrustedAlertIp, error)
public TrustedAlertIp(string name, TrustedAlertIpArgs? args = null, CustomResourceOptions? opts = null)
public TrustedAlertIp(String name, TrustedAlertIpArgs args)
public TrustedAlertIp(String name, TrustedAlertIpArgs args, CustomResourceOptions options)
type: prismacloud:TrustedAlertIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args TrustedAlertIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args TrustedAlertIpArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args TrustedAlertIpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args TrustedAlertIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TrustedAlertIpArgs
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 trustedAlertIpResource = new Prismacloud.TrustedAlertIp("trustedAlertIpResource", new()
{
    Cidrs = new[]
    {
        new Prismacloud.Inputs.TrustedAlertIpCidrArgs
        {
            Cidr = "string",
            CreatedOn = 0,
            Description = "string",
            Uuid = "string",
        },
    },
    Name = "string",
    TrustedAlertIpId = "string",
});
Copy
example, err := prismacloud.NewTrustedAlertIp(ctx, "trustedAlertIpResource", &prismacloud.TrustedAlertIpArgs{
Cidrs: .TrustedAlertIpCidrArray{
&.TrustedAlertIpCidrArgs{
Cidr: pulumi.String("string"),
CreatedOn: pulumi.Float64(0),
Description: pulumi.String("string"),
Uuid: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
TrustedAlertIpId: pulumi.String("string"),
})
Copy
var trustedAlertIpResource = new TrustedAlertIp("trustedAlertIpResource", TrustedAlertIpArgs.builder()
    .cidrs(TrustedAlertIpCidrArgs.builder()
        .cidr("string")
        .createdOn(0)
        .description("string")
        .uuid("string")
        .build())
    .name("string")
    .trustedAlertIpId("string")
    .build());
Copy
trusted_alert_ip_resource = prismacloud.TrustedAlertIp("trustedAlertIpResource",
    cidrs=[{
        "cidr": "string",
        "created_on": 0,
        "description": "string",
        "uuid": "string",
    }],
    name="string",
    trusted_alert_ip_id="string")
Copy
const trustedAlertIpResource = new prismacloud.TrustedAlertIp("trustedAlertIpResource", {
    cidrs: [{
        cidr: "string",
        createdOn: 0,
        description: "string",
        uuid: "string",
    }],
    name: "string",
    trustedAlertIpId: "string",
});
Copy
type: prismacloud:TrustedAlertIp
properties:
    cidrs:
        - cidr: string
          createdOn: 0
          description: string
          uuid: string
    name: string
    trustedAlertIpId: string
Copy

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

Cidrs List<TrustedAlertIpCidr>
CIDRs, as defined below.
Name string
Name of the trusted alert ip.
TrustedAlertIpId string
Cidrs []TrustedAlertIpCidrArgs
CIDRs, as defined below.
Name string
Name of the trusted alert ip.
TrustedAlertIpId string
cidrs List<TrustedAlertIpCidr>
CIDRs, as defined below.
name String
Name of the trusted alert ip.
trustedAlertIpId String
cidrs TrustedAlertIpCidr[]
CIDRs, as defined below.
name string
Name of the trusted alert ip.
trustedAlertIpId string
cidrs Sequence[TrustedAlertIpCidrArgs]
CIDRs, as defined below.
name str
Name of the trusted alert ip.
trusted_alert_ip_id str
cidrs List<Property Map>
CIDRs, as defined below.
name String
Name of the trusted alert ip.
trustedAlertIpId String

Outputs

All input properties are implicitly available as output properties. Additionally, the TrustedAlertIp resource produces the following output properties:

CidrCount double
CIDR count.
Id string
The provider-assigned unique ID for this managed resource.
Uuid string
UUID for cidr.
CidrCount float64
CIDR count.
Id string
The provider-assigned unique ID for this managed resource.
Uuid string
UUID for cidr.
cidrCount Double
CIDR count.
id String
The provider-assigned unique ID for this managed resource.
uuid String
UUID for cidr.
cidrCount number
CIDR count.
id string
The provider-assigned unique ID for this managed resource.
uuid string
UUID for cidr.
cidr_count float
CIDR count.
id str
The provider-assigned unique ID for this managed resource.
uuid str
UUID for cidr.
cidrCount Number
CIDR count.
id String
The provider-assigned unique ID for this managed resource.
uuid String
UUID for cidr.

Look up Existing TrustedAlertIp Resource

Get an existing TrustedAlertIp 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?: TrustedAlertIpState, opts?: CustomResourceOptions): TrustedAlertIp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cidr_count: Optional[float] = None,
        cidrs: Optional[Sequence[TrustedAlertIpCidrArgs]] = None,
        name: Optional[str] = None,
        trusted_alert_ip_id: Optional[str] = None,
        uuid: Optional[str] = None) -> TrustedAlertIp
func GetTrustedAlertIp(ctx *Context, name string, id IDInput, state *TrustedAlertIpState, opts ...ResourceOption) (*TrustedAlertIp, error)
public static TrustedAlertIp Get(string name, Input<string> id, TrustedAlertIpState? state, CustomResourceOptions? opts = null)
public static TrustedAlertIp get(String name, Output<String> id, TrustedAlertIpState state, CustomResourceOptions options)
resources:  _:    type: prismacloud:TrustedAlertIp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CidrCount double
CIDR count.
Cidrs List<TrustedAlertIpCidr>
CIDRs, as defined below.
Name string
Name of the trusted alert ip.
TrustedAlertIpId string
Uuid string
UUID for cidr.
CidrCount float64
CIDR count.
Cidrs []TrustedAlertIpCidrArgs
CIDRs, as defined below.
Name string
Name of the trusted alert ip.
TrustedAlertIpId string
Uuid string
UUID for cidr.
cidrCount Double
CIDR count.
cidrs List<TrustedAlertIpCidr>
CIDRs, as defined below.
name String
Name of the trusted alert ip.
trustedAlertIpId String
uuid String
UUID for cidr.
cidrCount number
CIDR count.
cidrs TrustedAlertIpCidr[]
CIDRs, as defined below.
name string
Name of the trusted alert ip.
trustedAlertIpId string
uuid string
UUID for cidr.
cidr_count float
CIDR count.
cidrs Sequence[TrustedAlertIpCidrArgs]
CIDRs, as defined below.
name str
Name of the trusted alert ip.
trusted_alert_ip_id str
uuid str
UUID for cidr.
cidrCount Number
CIDR count.
cidrs List<Property Map>
CIDRs, as defined below.
name String
Name of the trusted alert ip.
trustedAlertIpId String
uuid String
UUID for cidr.

Supporting Types

TrustedAlertIpCidr
, TrustedAlertIpCidrArgs

Cidr string
(string) Ip address.
CreatedOn double
(int) Created on.
Description string
Description.
Uuid string
UUID for cidr.
Cidr string
(string) Ip address.
CreatedOn float64
(int) Created on.
Description string
Description.
Uuid string
UUID for cidr.
cidr String
(string) Ip address.
createdOn Double
(int) Created on.
description String
Description.
uuid String
UUID for cidr.
cidr string
(string) Ip address.
createdOn number
(int) Created on.
description string
Description.
uuid string
UUID for cidr.
cidr str
(string) Ip address.
created_on float
(int) Created on.
description str
Description.
uuid str
UUID for cidr.
cidr String
(string) Ip address.
createdOn Number
(int) Created on.
description String
Description.
uuid String
UUID for cidr.

Import

Resources can be imported using the uuid:

$ pulumi import prismacloud:index/trustedAlertIp:TrustedAlertIp example 11111111-2222-3333-4444-555555555555
Copy

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.