1. Packages
  2. Nexus Provider
  3. API Docs
  4. BlobstoreGroup
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

nexus.BlobstoreGroup

Explore with Pulumi AI

nexus logo
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

    PRO Feature

    Use this resource to create a Nexus group blobstore.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const example = new nexus.BlobstoreGroup("example", {
        fillPolicy: "roundRobin",
        members: [
            nexus_blobstore_file.one.name,
            nexus_blobstore_file.two.name,
        ],
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    example = nexus.BlobstoreGroup("example",
        fill_policy="roundRobin",
        members=[
            nexus_blobstore_file["one"]["name"],
            nexus_blobstore_file["two"]["name"],
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/nexus/v2/nexus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nexus.NewBlobstoreGroup(ctx, "example", &nexus.BlobstoreGroupArgs{
    			FillPolicy: pulumi.String("roundRobin"),
    			Members: pulumi.StringArray{
    				nexus_blobstore_file.One.Name,
    				nexus_blobstore_file.Two.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nexus = Pulumi.Nexus;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Nexus.BlobstoreGroup("example", new()
        {
            FillPolicy = "roundRobin",
            Members = new[]
            {
                nexus_blobstore_file.One.Name,
                nexus_blobstore_file.Two.Name,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.BlobstoreGroup;
    import com.pulumi.nexus.BlobstoreGroupArgs;
    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 BlobstoreGroup("example", BlobstoreGroupArgs.builder()
                .fillPolicy("roundRobin")
                .members(            
                    nexus_blobstore_file.one().name(),
                    nexus_blobstore_file.two().name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: nexus:BlobstoreGroup
        properties:
          fillPolicy: roundRobin
          members:
            - ${nexus_blobstore_file.one.name}
            - ${nexus_blobstore_file.two.name}
    

    Create BlobstoreGroup Resource

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

    Constructor syntax

    new BlobstoreGroup(name: string, args: BlobstoreGroupArgs, opts?: CustomResourceOptions);
    @overload
    def BlobstoreGroup(resource_name: str,
                       args: BlobstoreGroupArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def BlobstoreGroup(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       fill_policy: Optional[str] = None,
                       members: Optional[Sequence[str]] = None,
                       name: Optional[str] = None,
                       soft_quota: Optional[BlobstoreGroupSoftQuotaArgs] = None)
    func NewBlobstoreGroup(ctx *Context, name string, args BlobstoreGroupArgs, opts ...ResourceOption) (*BlobstoreGroup, error)
    public BlobstoreGroup(string name, BlobstoreGroupArgs args, CustomResourceOptions? opts = null)
    public BlobstoreGroup(String name, BlobstoreGroupArgs args)
    public BlobstoreGroup(String name, BlobstoreGroupArgs args, CustomResourceOptions options)
    
    type: nexus:BlobstoreGroup
    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 BlobstoreGroupArgs
    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 BlobstoreGroupArgs
    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 BlobstoreGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlobstoreGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlobstoreGroupArgs
    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 blobstoreGroupResource = new Nexus.BlobstoreGroup("blobstoreGroupResource", new()
    {
        FillPolicy = "string",
        Members = new[]
        {
            "string",
        },
        Name = "string",
        SoftQuota = new Nexus.Inputs.BlobstoreGroupSoftQuotaArgs
        {
            Limit = 0,
            Type = "string",
        },
    });
    
    example, err := nexus.NewBlobstoreGroup(ctx, "blobstoreGroupResource", &nexus.BlobstoreGroupArgs{
    	FillPolicy: pulumi.String("string"),
    	Members: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	SoftQuota: &nexus.BlobstoreGroupSoftQuotaArgs{
    		Limit: pulumi.Float64(0),
    		Type:  pulumi.String("string"),
    	},
    })
    
    var blobstoreGroupResource = new BlobstoreGroup("blobstoreGroupResource", BlobstoreGroupArgs.builder()
        .fillPolicy("string")
        .members("string")
        .name("string")
        .softQuota(BlobstoreGroupSoftQuotaArgs.builder()
            .limit(0)
            .type("string")
            .build())
        .build());
    
    blobstore_group_resource = nexus.BlobstoreGroup("blobstoreGroupResource",
        fill_policy="string",
        members=["string"],
        name="string",
        soft_quota={
            "limit": 0,
            "type": "string",
        })
    
    const blobstoreGroupResource = new nexus.BlobstoreGroup("blobstoreGroupResource", {
        fillPolicy: "string",
        members: ["string"],
        name: "string",
        softQuota: {
            limit: 0,
            type: "string",
        },
    });
    
    type: nexus:BlobstoreGroup
    properties:
        fillPolicy: string
        members:
            - string
        name: string
        softQuota:
            limit: 0
            type: string
    

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

    FillPolicy string
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    Members List<string>
    List of the names of blob stores that are members of this group
    Name string
    Blobstore name
    SoftQuota BlobstoreGroupSoftQuota
    Soft quota of the blobstore
    FillPolicy string
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    Members []string
    List of the names of blob stores that are members of this group
    Name string
    Blobstore name
    SoftQuota BlobstoreGroupSoftQuotaArgs
    Soft quota of the blobstore
    fillPolicy String
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members List<String>
    List of the names of blob stores that are members of this group
    name String
    Blobstore name
    softQuota BlobstoreGroupSoftQuota
    Soft quota of the blobstore
    fillPolicy string
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members string[]
    List of the names of blob stores that are members of this group
    name string
    Blobstore name
    softQuota BlobstoreGroupSoftQuota
    Soft quota of the blobstore
    fill_policy str
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members Sequence[str]
    List of the names of blob stores that are members of this group
    name str
    Blobstore name
    soft_quota BlobstoreGroupSoftQuotaArgs
    Soft quota of the blobstore
    fillPolicy String
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members List<String>
    List of the names of blob stores that are members of this group
    name String
    Blobstore name
    softQuota Property Map
    Soft quota of the blobstore

    Outputs

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

    AvailableSpaceInBytes double
    Available space in Bytes
    BlobCount double
    Count of blobs
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalSizeInBytes double
    The total size of the blobstore in Bytes
    AvailableSpaceInBytes float64
    Available space in Bytes
    BlobCount float64
    Count of blobs
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalSizeInBytes float64
    The total size of the blobstore in Bytes
    availableSpaceInBytes Double
    Available space in Bytes
    blobCount Double
    Count of blobs
    id String
    The provider-assigned unique ID for this managed resource.
    totalSizeInBytes Double
    The total size of the blobstore in Bytes
    availableSpaceInBytes number
    Available space in Bytes
    blobCount number
    Count of blobs
    id string
    The provider-assigned unique ID for this managed resource.
    totalSizeInBytes number
    The total size of the blobstore in Bytes
    available_space_in_bytes float
    Available space in Bytes
    blob_count float
    Count of blobs
    id str
    The provider-assigned unique ID for this managed resource.
    total_size_in_bytes float
    The total size of the blobstore in Bytes
    availableSpaceInBytes Number
    Available space in Bytes
    blobCount Number
    Count of blobs
    id String
    The provider-assigned unique ID for this managed resource.
    totalSizeInBytes Number
    The total size of the blobstore in Bytes

    Look up Existing BlobstoreGroup Resource

    Get an existing BlobstoreGroup 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?: BlobstoreGroupState, opts?: CustomResourceOptions): BlobstoreGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            available_space_in_bytes: Optional[float] = None,
            blob_count: Optional[float] = None,
            fill_policy: Optional[str] = None,
            members: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            soft_quota: Optional[BlobstoreGroupSoftQuotaArgs] = None,
            total_size_in_bytes: Optional[float] = None) -> BlobstoreGroup
    func GetBlobstoreGroup(ctx *Context, name string, id IDInput, state *BlobstoreGroupState, opts ...ResourceOption) (*BlobstoreGroup, error)
    public static BlobstoreGroup Get(string name, Input<string> id, BlobstoreGroupState? state, CustomResourceOptions? opts = null)
    public static BlobstoreGroup get(String name, Output<String> id, BlobstoreGroupState state, CustomResourceOptions options)
    resources:  _:    type: nexus:BlobstoreGroup    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.
    The following state arguments are supported:
    AvailableSpaceInBytes double
    Available space in Bytes
    BlobCount double
    Count of blobs
    FillPolicy string
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    Members List<string>
    List of the names of blob stores that are members of this group
    Name string
    Blobstore name
    SoftQuota BlobstoreGroupSoftQuota
    Soft quota of the blobstore
    TotalSizeInBytes double
    The total size of the blobstore in Bytes
    AvailableSpaceInBytes float64
    Available space in Bytes
    BlobCount float64
    Count of blobs
    FillPolicy string
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    Members []string
    List of the names of blob stores that are members of this group
    Name string
    Blobstore name
    SoftQuota BlobstoreGroupSoftQuotaArgs
    Soft quota of the blobstore
    TotalSizeInBytes float64
    The total size of the blobstore in Bytes
    availableSpaceInBytes Double
    Available space in Bytes
    blobCount Double
    Count of blobs
    fillPolicy String
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members List<String>
    List of the names of blob stores that are members of this group
    name String
    Blobstore name
    softQuota BlobstoreGroupSoftQuota
    Soft quota of the blobstore
    totalSizeInBytes Double
    The total size of the blobstore in Bytes
    availableSpaceInBytes number
    Available space in Bytes
    blobCount number
    Count of blobs
    fillPolicy string
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members string[]
    List of the names of blob stores that are members of this group
    name string
    Blobstore name
    softQuota BlobstoreGroupSoftQuota
    Soft quota of the blobstore
    totalSizeInBytes number
    The total size of the blobstore in Bytes
    available_space_in_bytes float
    Available space in Bytes
    blob_count float
    Count of blobs
    fill_policy str
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members Sequence[str]
    List of the names of blob stores that are members of this group
    name str
    Blobstore name
    soft_quota BlobstoreGroupSoftQuotaArgs
    Soft quota of the blobstore
    total_size_in_bytes float
    The total size of the blobstore in Bytes
    availableSpaceInBytes Number
    Available space in Bytes
    blobCount Number
    Count of blobs
    fillPolicy String
    The policy how to fill the members. Possible values: roundRobin or writeToFirst
    members List<String>
    List of the names of blob stores that are members of this group
    name String
    Blobstore name
    softQuota Property Map
    Soft quota of the blobstore
    totalSizeInBytes Number
    The total size of the blobstore in Bytes

    Supporting Types

    BlobstoreGroupSoftQuota, BlobstoreGroupSoftQuotaArgs

    Limit double
    The limit in Bytes. Minimum value is 1000000
    Type string
    The type to use such as spaceRemainingQuota, or spaceUsedQuota
    Limit float64
    The limit in Bytes. Minimum value is 1000000
    Type string
    The type to use such as spaceRemainingQuota, or spaceUsedQuota
    limit Double
    The limit in Bytes. Minimum value is 1000000
    type String
    The type to use such as spaceRemainingQuota, or spaceUsedQuota
    limit number
    The limit in Bytes. Minimum value is 1000000
    type string
    The type to use such as spaceRemainingQuota, or spaceUsedQuota
    limit float
    The limit in Bytes. Minimum value is 1000000
    type str
    The type to use such as spaceRemainingQuota, or spaceUsedQuota
    limit Number
    The limit in Bytes. Minimum value is 1000000
    type String
    The type to use such as spaceRemainingQuota, or spaceUsedQuota

    Import

    import using the name of blobstore

    $ pulumi import nexus:index/blobstoreGroup:BlobstoreGroup example group-example
    

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

    Package Details

    Repository
    nexus datadrivers/terraform-provider-nexus
    License
    Notes
    This Pulumi package is based on the nexus Terraform Provider.
    nexus logo
    nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers