azure-native.cloudngfw.PrefixListLocalRulestack
Explore with Pulumi AI
LocalRulestack prefixList Azure REST API version: 2023-09-01.
Other available API versions: 2022-08-29, 2022-08-29-preview, 2023-09-01-preview, 2023-10-10-preview, 2024-01-19-preview, 2024-02-07-preview.
Example Usage
PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var prefixListLocalRulestack = new AzureNative.Cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestack", new()
{
AuditComment = "comment",
Description = "string",
LocalRulestackName = "lrs1",
Name = "armid1",
PrefixList = new[]
{
"1.0.0.0/24",
},
ResourceGroupName = "rgopenapi",
});
});
package main
import (
cloudngfw "github.com/pulumi/pulumi-azure-native-sdk/cloudngfw/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudngfw.NewPrefixListLocalRulestack(ctx, "prefixListLocalRulestack", &cloudngfw.PrefixListLocalRulestackArgs{
AuditComment: pulumi.String("comment"),
Description: pulumi.String("string"),
LocalRulestackName: pulumi.String("lrs1"),
Name: pulumi.String("armid1"),
PrefixList: pulumi.StringArray{
pulumi.String("1.0.0.0/24"),
},
ResourceGroupName: pulumi.String("rgopenapi"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cloudngfw.PrefixListLocalRulestack;
import com.pulumi.azurenative.cloudngfw.PrefixListLocalRulestackArgs;
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 prefixListLocalRulestack = new PrefixListLocalRulestack("prefixListLocalRulestack", PrefixListLocalRulestackArgs.builder()
.auditComment("comment")
.description("string")
.localRulestackName("lrs1")
.name("armid1")
.prefixList("1.0.0.0/24")
.resourceGroupName("rgopenapi")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
prefix_list_local_rulestack = azure_native.cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestack",
audit_comment="comment",
description="string",
local_rulestack_name="lrs1",
name="armid1",
prefix_list=["1.0.0.0/24"],
resource_group_name="rgopenapi")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const prefixListLocalRulestack = new azure_native.cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestack", {
auditComment: "comment",
description: "string",
localRulestackName: "lrs1",
name: "armid1",
prefixList: ["1.0.0.0/24"],
resourceGroupName: "rgopenapi",
});
resources:
prefixListLocalRulestack:
type: azure-native:cloudngfw:PrefixListLocalRulestack
properties:
auditComment: comment
description: string
localRulestackName: lrs1
name: armid1
prefixList:
- 1.0.0.0/24
resourceGroupName: rgopenapi
PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var prefixListLocalRulestack = new AzureNative.Cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestack", new()
{
LocalRulestackName = "lrs1",
Name = "armid1",
PrefixList = new[]
{
"1.0.0.0/24",
},
ResourceGroupName = "rgopenapi",
});
});
package main
import (
cloudngfw "github.com/pulumi/pulumi-azure-native-sdk/cloudngfw/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudngfw.NewPrefixListLocalRulestack(ctx, "prefixListLocalRulestack", &cloudngfw.PrefixListLocalRulestackArgs{
LocalRulestackName: pulumi.String("lrs1"),
Name: pulumi.String("armid1"),
PrefixList: pulumi.StringArray{
pulumi.String("1.0.0.0/24"),
},
ResourceGroupName: pulumi.String("rgopenapi"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cloudngfw.PrefixListLocalRulestack;
import com.pulumi.azurenative.cloudngfw.PrefixListLocalRulestackArgs;
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 prefixListLocalRulestack = new PrefixListLocalRulestack("prefixListLocalRulestack", PrefixListLocalRulestackArgs.builder()
.localRulestackName("lrs1")
.name("armid1")
.prefixList("1.0.0.0/24")
.resourceGroupName("rgopenapi")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
prefix_list_local_rulestack = azure_native.cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestack",
local_rulestack_name="lrs1",
name="armid1",
prefix_list=["1.0.0.0/24"],
resource_group_name="rgopenapi")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const prefixListLocalRulestack = new azure_native.cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestack", {
localRulestackName: "lrs1",
name: "armid1",
prefixList: ["1.0.0.0/24"],
resourceGroupName: "rgopenapi",
});
resources:
prefixListLocalRulestack:
type: azure-native:cloudngfw:PrefixListLocalRulestack
properties:
localRulestackName: lrs1
name: armid1
prefixList:
- 1.0.0.0/24
resourceGroupName: rgopenapi
Create PrefixListLocalRulestack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrefixListLocalRulestack(name: string, args: PrefixListLocalRulestackArgs, opts?: CustomResourceOptions);
@overload
def PrefixListLocalRulestack(resource_name: str,
args: PrefixListLocalRulestackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrefixListLocalRulestack(resource_name: str,
opts: Optional[ResourceOptions] = None,
local_rulestack_name: Optional[str] = None,
prefix_list: Optional[Sequence[str]] = None,
resource_group_name: Optional[str] = None,
audit_comment: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewPrefixListLocalRulestack(ctx *Context, name string, args PrefixListLocalRulestackArgs, opts ...ResourceOption) (*PrefixListLocalRulestack, error)
public PrefixListLocalRulestack(string name, PrefixListLocalRulestackArgs args, CustomResourceOptions? opts = null)
public PrefixListLocalRulestack(String name, PrefixListLocalRulestackArgs args)
public PrefixListLocalRulestack(String name, PrefixListLocalRulestackArgs args, CustomResourceOptions options)
type: azure-native:cloudngfw:PrefixListLocalRulestack
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 PrefixListLocalRulestackArgs
- 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 PrefixListLocalRulestackArgs
- 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 PrefixListLocalRulestackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrefixListLocalRulestackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrefixListLocalRulestackArgs
- 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 prefixListLocalRulestackResource = new AzureNative.Cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestackResource", new()
{
LocalRulestackName = "string",
PrefixList = new[]
{
"string",
},
ResourceGroupName = "string",
AuditComment = "string",
Description = "string",
Name = "string",
});
example, err := cloudngfw.NewPrefixListLocalRulestack(ctx, "prefixListLocalRulestackResource", &cloudngfw.PrefixListLocalRulestackArgs{
LocalRulestackName: pulumi.String("string"),
PrefixList: pulumi.StringArray{
pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
AuditComment: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var prefixListLocalRulestackResource = new PrefixListLocalRulestack("prefixListLocalRulestackResource", PrefixListLocalRulestackArgs.builder()
.localRulestackName("string")
.prefixList("string")
.resourceGroupName("string")
.auditComment("string")
.description("string")
.name("string")
.build());
prefix_list_local_rulestack_resource = azure_native.cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestackResource",
local_rulestack_name="string",
prefix_list=["string"],
resource_group_name="string",
audit_comment="string",
description="string",
name="string")
const prefixListLocalRulestackResource = new azure_native.cloudngfw.PrefixListLocalRulestack("prefixListLocalRulestackResource", {
localRulestackName: "string",
prefixList: ["string"],
resourceGroupName: "string",
auditComment: "string",
description: "string",
name: "string",
});
type: azure-native:cloudngfw:PrefixListLocalRulestack
properties:
auditComment: string
description: string
localRulestackName: string
name: string
prefixList:
- string
resourceGroupName: string
PrefixListLocalRulestack 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 PrefixListLocalRulestack resource accepts the following input properties:
- Local
Rulestack stringName - LocalRulestack resource name
- Prefix
List List<string> - prefix list
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Audit
Comment string - comment for this object
- Description string
- prefix description
- Name string
- Local Rule priority
- Local
Rulestack stringName - LocalRulestack resource name
- Prefix
List []string - prefix list
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Audit
Comment string - comment for this object
- Description string
- prefix description
- Name string
- Local Rule priority
- local
Rulestack StringName - LocalRulestack resource name
- prefix
List List<String> - prefix list
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- audit
Comment String - comment for this object
- description String
- prefix description
- name String
- Local Rule priority
- local
Rulestack stringName - LocalRulestack resource name
- prefix
List string[] - prefix list
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- audit
Comment string - comment for this object
- description string
- prefix description
- name string
- Local Rule priority
- local_
rulestack_ strname - LocalRulestack resource name
- prefix_
list Sequence[str] - prefix list
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- audit_
comment str - comment for this object
- description str
- prefix description
- name str
- Local Rule priority
- local
Rulestack StringName - LocalRulestack resource name
- prefix
List List<String> - prefix list
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- audit
Comment String - comment for this object
- description String
- prefix description
- name String
- Local Rule priority
Outputs
All input properties are implicitly available as output properties. Additionally, the PrefixListLocalRulestack resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - Provisioning state of the resource.
- System
Data Pulumi.Azure Native. Cloudngfw. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Etag string
- etag info
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - Provisioning state of the resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Etag string
- etag info
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - Provisioning state of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag String
- etag info
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - Provisioning state of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag string
- etag info
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - Provisioning state of the resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag str
- etag info
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - Provisioning state of the resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag String
- etag info
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cloudngfw:PrefixListLocalRulestack armid1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0