nexus.BlobstoreGroup
Explore with Pulumi AI
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:
- Fill
Policy string - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- Members List<string>
- List of the names of blob stores that are members of this group
- Name string
- Blobstore name
- Soft
Quota BlobstoreGroup Soft Quota - Soft quota of the blobstore
- Fill
Policy string - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- Members []string
- List of the names of blob stores that are members of this group
- Name string
- Blobstore name
- Soft
Quota BlobstoreGroup Soft Quota Args - Soft quota of the blobstore
- fill
Policy String - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members List<String>
- List of the names of blob stores that are members of this group
- name String
- Blobstore name
- soft
Quota BlobstoreGroup Soft Quota - Soft quota of the blobstore
- fill
Policy string - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members string[]
- List of the names of blob stores that are members of this group
- name string
- Blobstore name
- soft
Quota BlobstoreGroup Soft Quota - Soft quota of the blobstore
- fill_
policy str - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members Sequence[str]
- List of the names of blob stores that are members of this group
- name str
- Blobstore name
- soft_
quota BlobstoreGroup Soft Quota Args - Soft quota of the blobstore
- fill
Policy String - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members List<String>
- List of the names of blob stores that are members of this group
- name String
- Blobstore name
- soft
Quota 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:
- 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 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.
- Available
Space doubleIn Bytes - Available space in Bytes
- Blob
Count double - Count of blobs
- Fill
Policy string - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- Members List<string>
- List of the names of blob stores that are members of this group
- Name string
- Blobstore name
- Soft
Quota BlobstoreGroup 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
- Fill
Policy string - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- Members []string
- List of the names of blob stores that are members of this group
- Name string
- Blobstore name
- Soft
Quota BlobstoreGroup 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
- fill
Policy String - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members List<String>
- List of the names of blob stores that are members of this group
- name String
- Blobstore name
- soft
Quota BlobstoreGroup 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
- fill
Policy string - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members string[]
- List of the names of blob stores that are members of this group
- name string
- Blobstore name
- soft
Quota BlobstoreGroup 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
- fill_
policy str - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members Sequence[str]
- List of the names of blob stores that are members of this group
- name str
- Blobstore name
- soft_
quota BlobstoreGroup 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
- fill
Policy String - The policy how to fill the members. Possible values:
roundRobin
orwriteToFirst
- members List<String>
- List of the names of blob stores that are members of this group
- name String
- Blobstore name
- soft
Quota Property Map - Soft quota of the blobstore
- total
Size NumberIn Bytes - The total size of the blobstore in Bytes
Supporting Types
BlobstoreGroupSoftQuota, BlobstoreGroupSoftQuotaArgs
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.