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",
}]});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.TrustedAlertIp("example", cidrs=[{
"cidr": "1.1.1.1/32",
"description": "ip address description",
}])
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
})
}
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",
},
},
});
});
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());
}
}
resources:
example:
type: prismacloud:TrustedAlertIp
properties:
cidrs:
- cidr: 1.1.1.1/32
description: ip address description
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
example, err := prismacloud.NewTrustedAlertIp(ctx, "trustedAlertIpResource", &prismacloud.TrustedAlertIpArgs{
Cidrs: prismacloud.TrustedAlertIpCidrArray{
&prismacloud.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"),
})
var trustedAlertIpResource = new TrustedAlertIp("trustedAlertIpResource", TrustedAlertIpArgs.builder()
.cidrs(TrustedAlertIpCidrArgs.builder()
.cidr("string")
.createdOn(0)
.description("string")
.uuid("string")
.build())
.name("string")
.trustedAlertIpId("string")
.build());
trusted_alert_ip_resource = prismacloud.TrustedAlertIp("trustedAlertIpResource",
cidrs=[{
"cidr": "string",
"created_on": 0,
"description": "string",
"uuid": "string",
}],
name="string",
trusted_alert_ip_id="string")
const trustedAlertIpResource = new prismacloud.TrustedAlertIp("trustedAlertIpResource", {
cidrs: [{
cidr: "string",
createdOn: 0,
description: "string",
uuid: "string",
}],
name: "string",
trustedAlertIpId: "string",
});
type: prismacloud:TrustedAlertIp
properties:
cidrs:
- cidr: string
createdOn: 0
description: string
uuid: string
name: string
trustedAlertIpId: string
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<Trusted
Alert Ip Cidr> - CIDRs, as defined below.
- Name string
- Name of the trusted alert ip.
- Trusted
Alert stringIp Id
- Cidrs
[]Trusted
Alert Ip Cidr Args - CIDRs, as defined below.
- Name string
- Name of the trusted alert ip.
- Trusted
Alert stringIp Id
- cidrs
List<Trusted
Alert Ip Cidr> - CIDRs, as defined below.
- name String
- Name of the trusted alert ip.
- trusted
Alert StringIp Id
- cidrs
Trusted
Alert Ip Cidr[] - CIDRs, as defined below.
- name string
- Name of the trusted alert ip.
- trusted
Alert stringIp Id
- cidrs
Sequence[Trusted
Alert Ip Cidr Args] - CIDRs, as defined below.
- name str
- Name of the trusted alert ip.
- trusted_
alert_ strip_ id
- cidrs List<Property Map>
- CIDRs, as defined below.
- name String
- Name of the trusted alert ip.
- trusted
Alert StringIp Id
Outputs
All input properties are implicitly available as output properties. Additionally, the TrustedAlertIp resource produces the following output properties:
- cidr_
count float - CIDR count.
- id str
- The provider-assigned unique ID for this managed resource.
- uuid str
- 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
- 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.
- Cidr
Count double - CIDR count.
- Cidrs
List<Trusted
Alert Ip Cidr> - CIDRs, as defined below.
- Name string
- Name of the trusted alert ip.
- Trusted
Alert stringIp Id - Uuid string
- UUID for cidr.
- Cidr
Count float64 - CIDR count.
- Cidrs
[]Trusted
Alert Ip Cidr Args - CIDRs, as defined below.
- Name string
- Name of the trusted alert ip.
- Trusted
Alert stringIp Id - Uuid string
- UUID for cidr.
- cidr
Count Double - CIDR count.
- cidrs
List<Trusted
Alert Ip Cidr> - CIDRs, as defined below.
- name String
- Name of the trusted alert ip.
- trusted
Alert StringIp Id - uuid String
- UUID for cidr.
- cidr
Count number - CIDR count.
- cidrs
Trusted
Alert Ip Cidr[] - CIDRs, as defined below.
- name string
- Name of the trusted alert ip.
- trusted
Alert stringIp Id - uuid string
- UUID for cidr.
- cidr_
count float - CIDR count.
- cidrs
Sequence[Trusted
Alert Ip Cidr Args] - CIDRs, as defined below.
- name str
- Name of the trusted alert ip.
- trusted_
alert_ strip_ id - uuid str
- UUID for cidr.
- cidr
Count Number - CIDR count.
- cidrs List<Property Map>
- CIDRs, as defined below.
- name String
- Name of the trusted alert ip.
- trusted
Alert StringIp Id - uuid String
- UUID for cidr.
Supporting Types
TrustedAlertIpCidr, TrustedAlertIpCidrArgs
- Cidr string
- (string) Ip address.
- Created
On double - (int) Created on.
- Description string
- Description.
- Uuid string
- UUID for cidr.
- Cidr string
- (string) Ip address.
- Created
On float64 - (int) Created on.
- Description string
- Description.
- Uuid string
- UUID for cidr.
- cidr String
- (string) Ip address.
- created
On Double - (int) Created on.
- description String
- Description.
- uuid String
- UUID for cidr.
- cidr string
- (string) Ip address.
- created
On 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.
- created
On 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
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.