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

nexus.getBlobstoreFile

Explore with Pulumi AI

Use this data source to get details of an existing Nexus File blobstore.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";

const _default = nexus.getBlobstoreFile({
    name: "default",
});
Copy
import pulumi
import pulumi_nexus as nexus

default = nexus.get_blobstore_file(name="default")
Copy
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.LookupBlobstoreFile(ctx, &nexus.LookupBlobstoreFileArgs{
			Name: "default",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nexus = Pulumi.Nexus;

return await Deployment.RunAsync(() => 
{
    var @default = Nexus.GetBlobstoreFile.Invoke(new()
    {
        Name = "default",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nexus.NexusFunctions;
import com.pulumi.nexus.inputs.GetBlobstoreFileArgs;
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) {
        final var default = NexusFunctions.getBlobstoreFile(GetBlobstoreFileArgs.builder()
            .name("default")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      function: nexus:getBlobstoreFile
      arguments:
        name: default
Copy

Using getBlobstoreFile

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getBlobstoreFile(args: GetBlobstoreFileArgs, opts?: InvokeOptions): Promise<GetBlobstoreFileResult>
function getBlobstoreFileOutput(args: GetBlobstoreFileOutputArgs, opts?: InvokeOptions): Output<GetBlobstoreFileResult>
Copy
def get_blobstore_file(name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetBlobstoreFileResult
def get_blobstore_file_output(name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetBlobstoreFileResult]
Copy
func LookupBlobstoreFile(ctx *Context, args *LookupBlobstoreFileArgs, opts ...InvokeOption) (*LookupBlobstoreFileResult, error)
func LookupBlobstoreFileOutput(ctx *Context, args *LookupBlobstoreFileOutputArgs, opts ...InvokeOption) LookupBlobstoreFileResultOutput
Copy

> Note: This function is named LookupBlobstoreFile in the Go SDK.

public static class GetBlobstoreFile 
{
    public static Task<GetBlobstoreFileResult> InvokeAsync(GetBlobstoreFileArgs args, InvokeOptions? opts = null)
    public static Output<GetBlobstoreFileResult> Invoke(GetBlobstoreFileInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBlobstoreFileResult> getBlobstoreFile(GetBlobstoreFileArgs args, InvokeOptions options)
public static Output<GetBlobstoreFileResult> getBlobstoreFile(GetBlobstoreFileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nexus:index/getBlobstoreFile:getBlobstoreFile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Blobstore name
Name This property is required. string
Blobstore name
name This property is required. String
Blobstore name
name This property is required. string
Blobstore name
name This property is required. str
Blobstore name
name This property is required. String
Blobstore name

getBlobstoreFile Result

The following output properties are available:

AvailableSpaceInBytes double
Available space in Bytes
BlobCount double
Count of blobs
Id string
Used to identify data source at nexus
Name string
Blobstore name
Path string
The path to the blobstore contents
SoftQuotas List<GetBlobstoreFileSoftQuota>
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
Id string
Used to identify data source at nexus
Name string
Blobstore name
Path string
The path to the blobstore contents
SoftQuotas []GetBlobstoreFileSoftQuota
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
id String
Used to identify data source at nexus
name String
Blobstore name
path String
The path to the blobstore contents
softQuotas List<GetBlobstoreFileSoftQuota>
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
id string
Used to identify data source at nexus
name string
Blobstore name
path string
The path to the blobstore contents
softQuotas GetBlobstoreFileSoftQuota[]
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
id str
Used to identify data source at nexus
name str
Blobstore name
path str
The path to the blobstore contents
soft_quotas Sequence[GetBlobstoreFileSoftQuota]
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
id String
Used to identify data source at nexus
name String
Blobstore name
path String
The path to the blobstore contents
softQuotas List<Property Map>
Soft quota of the blobstore
totalSizeInBytes Number
The total size of the blobstore in Bytes

Supporting Types

GetBlobstoreFileSoftQuota

Limit This property is required. double
Type This property is required. string
Limit This property is required. float64
Type This property is required. string
limit This property is required. Double
type This property is required. String
limit This property is required. number
type This property is required. string
limit This property is required. float
type This property is required. str
limit This property is required. Number
type This property is required. String

Package Details

Repository
nexus datadrivers/terraform-provider-nexus
License
Notes
This Pulumi package is based on the nexus Terraform Provider.