1. Packages
  2. F5 BIG-IP
  3. API Docs
  4. Partition
f5 BIG-IP v3.17.0 published on Thursday, Mar 28, 2024 by Pulumi

f5bigip.Partition

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.0 published on Thursday, Mar 28, 2024 by Pulumi

    f5bigip.Partition Manages F5 BIG-IP partitions

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const test_partition = new f5bigip.Partition("test-partition", {
        description: "created by terraform",
        name: "test-partition",
        routeDomainId: 2,
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    test_partition = f5bigip.Partition("test-partition",
        description="created by terraform",
        name="test-partition",
        route_domain_id=2)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := f5bigip.NewPartition(ctx, "test-partition", &f5bigip.PartitionArgs{
    			Description:   pulumi.String("created by terraform"),
    			Name:          pulumi.String("test-partition"),
    			RouteDomainId: pulumi.Int(2),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using F5BigIP = Pulumi.F5BigIP;
    
    return await Deployment.RunAsync(() => 
    {
        var test_partition = new F5BigIP.Partition("test-partition", new()
        {
            Description = "created by terraform",
            Name = "test-partition",
            RouteDomainId = 2,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.f5bigip.Partition;
    import com.pulumi.f5bigip.PartitionArgs;
    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 test_partition = new Partition("test-partition", PartitionArgs.builder()        
                .description("created by terraform")
                .name("test-partition")
                .routeDomainId(2)
                .build());
    
        }
    }
    
    resources:
      test-partition:
        type: f5bigip:Partition
        properties:
          description: created by terraform
          name: test-partition
          routeDomainId: 2
    

    Create Partition Resource

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

    Constructor syntax

    new Partition(name: string, args: PartitionArgs, opts?: CustomResourceOptions);
    @overload
    def Partition(resource_name: str,
                  args: PartitionArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Partition(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  name: Optional[str] = None,
                  description: Optional[str] = None,
                  route_domain_id: Optional[int] = None)
    func NewPartition(ctx *Context, name string, args PartitionArgs, opts ...ResourceOption) (*Partition, error)
    public Partition(string name, PartitionArgs args, CustomResourceOptions? opts = null)
    public Partition(String name, PartitionArgs args)
    public Partition(String name, PartitionArgs args, CustomResourceOptions options)
    
    type: f5bigip:Partition
    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 PartitionArgs
    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 PartitionArgs
    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 PartitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PartitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PartitionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var partitionResource = new F5BigIP.Partition("partitionResource", new()
    {
        Name = "string",
        Description = "string",
        RouteDomainId = 0,
    });
    
    example, err := f5bigip.NewPartition(ctx, "partitionResource", &f5bigip.PartitionArgs{
    	Name:          pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	RouteDomainId: pulumi.Int(0),
    })
    
    var partitionResource = new Partition("partitionResource", PartitionArgs.builder()        
        .name("string")
        .description("string")
        .routeDomainId(0)
        .build());
    
    partition_resource = f5bigip.Partition("partitionResource",
        name="string",
        description="string",
        route_domain_id=0)
    
    const partitionResource = new f5bigip.Partition("partitionResource", {
        name: "string",
        description: "string",
        routeDomainId: 0,
    });
    
    type: f5bigip:Partition
    properties:
        description: string
        name: string
        routeDomainId: 0
    

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

    Name string
    Name of the partition.
    Description string
    Description of the partition.
    RouteDomainId int
    Route domain id of the partition.
    Name string
    Name of the partition.
    Description string
    Description of the partition.
    RouteDomainId int
    Route domain id of the partition.
    name String
    Name of the partition.
    description String
    Description of the partition.
    routeDomainId Integer
    Route domain id of the partition.
    name string
    Name of the partition.
    description string
    Description of the partition.
    routeDomainId number
    Route domain id of the partition.
    name str
    Name of the partition.
    description str
    Description of the partition.
    route_domain_id int
    Route domain id of the partition.
    name String
    Name of the partition.
    description String
    Description of the partition.
    routeDomainId Number
    Route domain id of the partition.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Partition 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 Partition Resource

    Get an existing Partition 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?: PartitionState, opts?: CustomResourceOptions): Partition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            route_domain_id: Optional[int] = None) -> Partition
    func GetPartition(ctx *Context, name string, id IDInput, state *PartitionState, opts ...ResourceOption) (*Partition, error)
    public static Partition Get(string name, Input<string> id, PartitionState? state, CustomResourceOptions? opts = null)
    public static Partition get(String name, Output<String> id, PartitionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Description string
    Description of the partition.
    Name string
    Name of the partition.
    RouteDomainId int
    Route domain id of the partition.
    Description string
    Description of the partition.
    Name string
    Name of the partition.
    RouteDomainId int
    Route domain id of the partition.
    description String
    Description of the partition.
    name String
    Name of the partition.
    routeDomainId Integer
    Route domain id of the partition.
    description string
    Description of the partition.
    name string
    Name of the partition.
    routeDomainId number
    Route domain id of the partition.
    description str
    Description of the partition.
    name str
    Name of the partition.
    route_domain_id int
    Route domain id of the partition.
    description String
    Description of the partition.
    name String
    Name of the partition.
    routeDomainId Number
    Route domain id of the partition.

    Import

    ing

    An existing cipher group can be imported into this resource by supplying the cipher rule full path name ex : /partition/name

    An example is below:

    $ terraform import bigip_partition.test_partition test_partition
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    f5 BIG-IP pulumi/pulumi-f5bigip
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the bigip Terraform Provider.
    f5bigip logo
    f5 BIG-IP v3.17.0 published on Thursday, Mar 28, 2024 by Pulumi