nexus.BlobstoreFile
Explore with Pulumi AI
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
- Soft
Quota BlobstoreFile Soft Quota - 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
- Soft
Quota BlobstoreFile Soft Quota Args - 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
- soft
Quota BlobstoreFile Soft Quota - 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
- soft
Quota BlobstoreFile Soft Quota - 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 BlobstoreFile Soft Quota Args - 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
- soft
Quota 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:
- Available
Space doubleIn Bytes - Available space in Bytes
- Blob
Count double - Count of blobs
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Size doubleIn Bytes - The total size of the blobstore in Bytes
- Available
Space float64In Bytes - Available space in Bytes
- Blob
Count float64 - Count of blobs
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Size float64In Bytes - The total size of the blobstore in Bytes
- available
Space DoubleIn Bytes - Available space in Bytes
- blob
Count Double - Count of blobs
- id String
- The provider-assigned unique ID for this managed resource.
- total
Size DoubleIn Bytes - The total size of the blobstore in Bytes
- available
Space numberIn Bytes - Available space in Bytes
- blob
Count number - Count of blobs
- id string
- The provider-assigned unique ID for this managed resource.
- total
Size numberIn Bytes - The total size of the blobstore in Bytes
- available_
space_ floatin_ bytes - Available space in Bytes
- blob_
count float - Count of blobs
- id str
- The provider-assigned unique ID for this managed resource.
- total_
size_ floatin_ bytes - The total size of the blobstore in Bytes
- available
Space NumberIn Bytes - Available space in Bytes
- blob
Count Number - Count of blobs
- id String
- The provider-assigned unique ID for this managed resource.
- total
Size NumberIn Bytes - 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.
- Available
Space doubleIn Bytes - Available space in Bytes
- Blob
Count 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
- Soft
Quota BlobstoreFile Soft Quota - Soft quota of the blobstore
- Total
Size doubleIn Bytes - The total size of the blobstore in Bytes
- Available
Space float64In Bytes - Available space in Bytes
- Blob
Count 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
- Soft
Quota BlobstoreFile Soft Quota Args - Soft quota of the blobstore
- Total
Size float64In Bytes - The total size of the blobstore in Bytes
- available
Space DoubleIn Bytes - Available space in Bytes
- blob
Count 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
- soft
Quota BlobstoreFile Soft Quota - Soft quota of the blobstore
- total
Size DoubleIn Bytes - The total size of the blobstore in Bytes
- available
Space numberIn Bytes - Available space in Bytes
- blob
Count 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
- soft
Quota BlobstoreFile Soft Quota - Soft quota of the blobstore
- total
Size numberIn Bytes - The total size of the blobstore in Bytes
- available_
space_ floatin_ bytes - 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 BlobstoreFile Soft Quota Args - Soft quota of the blobstore
- total_
size_ floatin_ bytes - The total size of the blobstore in Bytes
- available
Space NumberIn Bytes - Available space in Bytes
- blob
Count 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
- soft
Quota Property Map - Soft quota of the blobstore
- total
Size NumberIn Bytes - The total size of the blobstore in Bytes
Supporting Types
BlobstoreFileSoftQuota, BlobstoreFileSoftQuotaArgs
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.