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

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

    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",
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    default = nexus.get_blobstore_file(name="default")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: nexus:getBlobstoreFile
          arguments:
            name: default
    

    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>
    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]
    func LookupBlobstoreFile(ctx *Context, args *LookupBlobstoreFileArgs, opts ...InvokeOption) (*LookupBlobstoreFileResult, error)
    func LookupBlobstoreFileOutput(ctx *Context, args *LookupBlobstoreFileOutputArgs, opts ...InvokeOption) LookupBlobstoreFileResultOutput

    > 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)
    }
    public static CompletableFuture<GetBlobstoreFileResult> getBlobstoreFile(GetBlobstoreFileArgs args, InvokeOptions options)
    public static Output<GetBlobstoreFileResult> getBlobstoreFile(GetBlobstoreFileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: nexus:index/getBlobstoreFile:getBlobstoreFile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Blobstore name
    Name string
    Blobstore name
    name String
    Blobstore name
    name string
    Blobstore name
    name str
    Blobstore name
    name 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 double
    Type string
    Limit float64
    Type string
    limit Double
    type String
    limit number
    type string
    limit float
    type str
    limit Number
    type String

    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