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

nexus.BlobstoreFile

Explore with Pulumi AI

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

    Use this resource to create a Nexus file blobstore.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const file = new nexus.BlobstoreFile("file", {
        path: "/nexus-data/blobstore-file",
        softQuota: {
            limit: 1024000000,
            type: "spaceRemainingQuota",
        },
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    file = nexus.BlobstoreFile("file",
        path="/nexus-data/blobstore-file",
        soft_quota={
            "limit": 1024000000,
            "type": "spaceRemainingQuota",
        })
    
    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.NewBlobstoreFile(ctx, "file", &nexus.BlobstoreFileArgs{
    			Path: pulumi.String("/nexus-data/blobstore-file"),
    			SoftQuota: &nexus.BlobstoreFileSoftQuotaArgs{
    				Limit: pulumi.Float64(1024000000),
    				Type:  pulumi.String("spaceRemainingQuota"),
    			},
    		})
    		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 file = new Nexus.BlobstoreFile("file", new()
        {
            Path = "/nexus-data/blobstore-file",
            SoftQuota = new Nexus.Inputs.BlobstoreFileSoftQuotaArgs
            {
                Limit = 1024000000,
                Type = "spaceRemainingQuota",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.BlobstoreFile;
    import com.pulumi.nexus.BlobstoreFileArgs;
    import com.pulumi.nexus.inputs.BlobstoreFileSoftQuotaArgs;
    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 file = new BlobstoreFile("file", BlobstoreFileArgs.builder()
                .path("/nexus-data/blobstore-file")
                .softQuota(BlobstoreFileSoftQuotaArgs.builder()
                    .limit(1024000000)
                    .type("spaceRemainingQuota")
                    .build())
                .build());
    
        }
    }
    
    resources:
      file:
        type: nexus:BlobstoreFile
        properties:
          path: /nexus-data/blobstore-file
          softQuota:
            limit: 1.024e+09
            type: spaceRemainingQuota
    

    Create BlobstoreFile Resource

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

    Constructor syntax

    new BlobstoreFile(name: string, args?: BlobstoreFileArgs, opts?: CustomResourceOptions);
    @overload
    def BlobstoreFile(resource_name: str,
                      args: Optional[BlobstoreFileArgs] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def BlobstoreFile(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      name: Optional[str] = None,
                      path: Optional[str] = None,
                      soft_quota: Optional[BlobstoreFileSoftQuotaArgs] = None)
    func NewBlobstoreFile(ctx *Context, name string, args *BlobstoreFileArgs, opts ...ResourceOption) (*BlobstoreFile, error)
    public BlobstoreFile(string name, BlobstoreFileArgs? args = null, CustomResourceOptions? opts = null)
    public BlobstoreFile(String name, BlobstoreFileArgs args)
    public BlobstoreFile(String name, BlobstoreFileArgs args, CustomResourceOptions options)
    
    type: nexus:BlobstoreFile
    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 BlobstoreFileArgs
    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 BlobstoreFileArgs
    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 BlobstoreFileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlobstoreFileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlobstoreFileArgs
    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 blobstoreFileResource = new Nexus.BlobstoreFile("blobstoreFileResource", new()
    {
        Name = "string",
        Path = "string",
        SoftQuota = new Nexus.Inputs.BlobstoreFileSoftQuotaArgs
        {
            Limit = 0,
            Type = "string",
        },
    });
    
    example, err := nexus.NewBlobstoreFile(ctx, "blobstoreFileResource", &nexus.BlobstoreFileArgs{
    	Name: pulumi.String("string"),
    	Path: pulumi.String("string"),
    	SoftQuota: &nexus.BlobstoreFileSoftQuotaArgs{
    		Limit: pulumi.Float64(0),
    		Type:  pulumi.String("string"),
    	},
    })
    
    var blobstoreFileResource = new BlobstoreFile("blobstoreFileResource", BlobstoreFileArgs.builder()
        .name("string")
        .path("string")
        .softQuota(BlobstoreFileSoftQuotaArgs.builder()
            .limit(0)
            .type("string")
            .build())
        .build());
    
    blobstore_file_resource = nexus.BlobstoreFile("blobstoreFileResource",
        name="string",
        path="string",
        soft_quota={
            "limit": 0,
            "type": "string",
        })
    
    const blobstoreFileResource = new nexus.BlobstoreFile("blobstoreFileResource", {
        name: "string",
        path: "string",
        softQuota: {
            limit: 0,
            type: "string",
        },
    });
    
    type: nexus:BlobstoreFile
    properties:
        name: string
        path: string
        softQuota:
            limit: 0
            type: string
    

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

    Name string
    Blobstore name
    Path string
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    SoftQuota BlobstoreFileSoftQuota
    Soft quota of the blobstore
    Name string
    Blobstore name
    Path string
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    SoftQuota BlobstoreFileSoftQuotaArgs
    Soft quota of the blobstore
    name String
    Blobstore name
    path String
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    softQuota BlobstoreFileSoftQuota
    Soft quota of the blobstore
    name string
    Blobstore name
    path string
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    softQuota BlobstoreFileSoftQuota
    Soft quota of the blobstore
    name str
    Blobstore name
    path str
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    soft_quota BlobstoreFileSoftQuotaArgs
    Soft quota of the blobstore
    name String
    Blobstore name
    path String
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    softQuota Property Map
    Soft quota of the blobstore

    Outputs

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

    Get an existing BlobstoreFile 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?: BlobstoreFileState, opts?: CustomResourceOptions): BlobstoreFile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            available_space_in_bytes: Optional[float] = None,
            blob_count: Optional[float] = None,
            name: Optional[str] = None,
            path: Optional[str] = None,
            soft_quota: Optional[BlobstoreFileSoftQuotaArgs] = None,
            total_size_in_bytes: Optional[float] = None) -> BlobstoreFile
    func GetBlobstoreFile(ctx *Context, name string, id IDInput, state *BlobstoreFileState, opts ...ResourceOption) (*BlobstoreFile, error)
    public static BlobstoreFile Get(string name, Input<string> id, BlobstoreFileState? state, CustomResourceOptions? opts = null)
    public static BlobstoreFile get(String name, Output<String> id, BlobstoreFileState state, CustomResourceOptions options)
    resources:  _:    type: nexus:BlobstoreFile    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
    Name string
    Blobstore name
    Path string
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    SoftQuota BlobstoreFileSoftQuota
    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
    Name string
    Blobstore name
    Path string
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    SoftQuota BlobstoreFileSoftQuotaArgs
    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
    name String
    Blobstore name
    path String
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    softQuota BlobstoreFileSoftQuota
    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
    name string
    Blobstore name
    path string
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    softQuota BlobstoreFileSoftQuota
    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
    name str
    Blobstore name
    path str
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    soft_quota BlobstoreFileSoftQuotaArgs
    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
    name String
    Blobstore name
    path String
    The path to the blobstore contents. This can be an absolute path to anywhere on the system nxrm has access to or it can be a path relative to the sonatype-work directory
    softQuota Property Map
    Soft quota of the blobstore
    totalSizeInBytes Number
    The total size of the blobstore in Bytes

    Supporting Types

    BlobstoreFileSoftQuota, BlobstoreFileSoftQuotaArgs

    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/blobstoreFile:BlobstoreFile file blobstore-file
    

    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