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

nexus.BlobstoreAzure

Explore with Pulumi AI

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

    PRO Feature

    Use this resource to create a Nexus Azure blobstore.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const example = new nexus.BlobstoreAzure("example", {
        bucketConfiguration: {
            accountName: "example-account-name",
            authentication: {
                accountKey: "example-account-key",
                authenticationMethod: "ACCOUNTKEY",
            },
            containerName: "example-container-name",
        },
        softQuota: {
            limit: 1024,
            type: "spaceRemainingQuota",
        },
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    example = nexus.BlobstoreAzure("example",
        bucket_configuration={
            "account_name": "example-account-name",
            "authentication": {
                "account_key": "example-account-key",
                "authentication_method": "ACCOUNTKEY",
            },
            "container_name": "example-container-name",
        },
        soft_quota={
            "limit": 1024,
            "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.NewBlobstoreAzure(ctx, "example", &nexus.BlobstoreAzureArgs{
    			BucketConfiguration: &nexus.BlobstoreAzureBucketConfigurationArgs{
    				AccountName: pulumi.String("example-account-name"),
    				Authentication: &nexus.BlobstoreAzureBucketConfigurationAuthenticationArgs{
    					AccountKey:           pulumi.String("example-account-key"),
    					AuthenticationMethod: pulumi.String("ACCOUNTKEY"),
    				},
    				ContainerName: pulumi.String("example-container-name"),
    			},
    			SoftQuota: &nexus.BlobstoreAzureSoftQuotaArgs{
    				Limit: pulumi.Float64(1024),
    				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 example = new Nexus.BlobstoreAzure("example", new()
        {
            BucketConfiguration = new Nexus.Inputs.BlobstoreAzureBucketConfigurationArgs
            {
                AccountName = "example-account-name",
                Authentication = new Nexus.Inputs.BlobstoreAzureBucketConfigurationAuthenticationArgs
                {
                    AccountKey = "example-account-key",
                    AuthenticationMethod = "ACCOUNTKEY",
                },
                ContainerName = "example-container-name",
            },
            SoftQuota = new Nexus.Inputs.BlobstoreAzureSoftQuotaArgs
            {
                Limit = 1024,
                Type = "spaceRemainingQuota",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.BlobstoreAzure;
    import com.pulumi.nexus.BlobstoreAzureArgs;
    import com.pulumi.nexus.inputs.BlobstoreAzureBucketConfigurationArgs;
    import com.pulumi.nexus.inputs.BlobstoreAzureBucketConfigurationAuthenticationArgs;
    import com.pulumi.nexus.inputs.BlobstoreAzureSoftQuotaArgs;
    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 BlobstoreAzure("example", BlobstoreAzureArgs.builder()
                .bucketConfiguration(BlobstoreAzureBucketConfigurationArgs.builder()
                    .accountName("example-account-name")
                    .authentication(BlobstoreAzureBucketConfigurationAuthenticationArgs.builder()
                        .accountKey("example-account-key")
                        .authenticationMethod("ACCOUNTKEY")
                        .build())
                    .containerName("example-container-name")
                    .build())
                .softQuota(BlobstoreAzureSoftQuotaArgs.builder()
                    .limit(1024)
                    .type("spaceRemainingQuota")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: nexus:BlobstoreAzure
        properties:
          bucketConfiguration:
            accountName: example-account-name
            authentication:
              accountKey: example-account-key
              authenticationMethod: ACCOUNTKEY
            containerName: example-container-name
          softQuota:
            limit: 1024
            type: spaceRemainingQuota
    

    Create BlobstoreAzure Resource

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

    Constructor syntax

    new BlobstoreAzure(name: string, args: BlobstoreAzureArgs, opts?: CustomResourceOptions);
    @overload
    def BlobstoreAzure(resource_name: str,
                       args: BlobstoreAzureArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def BlobstoreAzure(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       bucket_configuration: Optional[BlobstoreAzureBucketConfigurationArgs] = None,
                       name: Optional[str] = None,
                       soft_quota: Optional[BlobstoreAzureSoftQuotaArgs] = None)
    func NewBlobstoreAzure(ctx *Context, name string, args BlobstoreAzureArgs, opts ...ResourceOption) (*BlobstoreAzure, error)
    public BlobstoreAzure(string name, BlobstoreAzureArgs args, CustomResourceOptions? opts = null)
    public BlobstoreAzure(String name, BlobstoreAzureArgs args)
    public BlobstoreAzure(String name, BlobstoreAzureArgs args, CustomResourceOptions options)
    
    type: nexus:BlobstoreAzure
    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 BlobstoreAzureArgs
    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 BlobstoreAzureArgs
    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 BlobstoreAzureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlobstoreAzureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlobstoreAzureArgs
    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 blobstoreAzureResource = new Nexus.BlobstoreAzure("blobstoreAzureResource", new()
    {
        BucketConfiguration = new Nexus.Inputs.BlobstoreAzureBucketConfigurationArgs
        {
            AccountName = "string",
            Authentication = new Nexus.Inputs.BlobstoreAzureBucketConfigurationAuthenticationArgs
            {
                AuthenticationMethod = "string",
                AccountKey = "string",
            },
            ContainerName = "string",
        },
        Name = "string",
        SoftQuota = new Nexus.Inputs.BlobstoreAzureSoftQuotaArgs
        {
            Limit = 0,
            Type = "string",
        },
    });
    
    example, err := nexus.NewBlobstoreAzure(ctx, "blobstoreAzureResource", &nexus.BlobstoreAzureArgs{
    	BucketConfiguration: &nexus.BlobstoreAzureBucketConfigurationArgs{
    		AccountName: pulumi.String("string"),
    		Authentication: &nexus.BlobstoreAzureBucketConfigurationAuthenticationArgs{
    			AuthenticationMethod: pulumi.String("string"),
    			AccountKey:           pulumi.String("string"),
    		},
    		ContainerName: pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	SoftQuota: &nexus.BlobstoreAzureSoftQuotaArgs{
    		Limit: pulumi.Float64(0),
    		Type:  pulumi.String("string"),
    	},
    })
    
    var blobstoreAzureResource = new BlobstoreAzure("blobstoreAzureResource", BlobstoreAzureArgs.builder()
        .bucketConfiguration(BlobstoreAzureBucketConfigurationArgs.builder()
            .accountName("string")
            .authentication(BlobstoreAzureBucketConfigurationAuthenticationArgs.builder()
                .authenticationMethod("string")
                .accountKey("string")
                .build())
            .containerName("string")
            .build())
        .name("string")
        .softQuota(BlobstoreAzureSoftQuotaArgs.builder()
            .limit(0)
            .type("string")
            .build())
        .build());
    
    blobstore_azure_resource = nexus.BlobstoreAzure("blobstoreAzureResource",
        bucket_configuration={
            "account_name": "string",
            "authentication": {
                "authentication_method": "string",
                "account_key": "string",
            },
            "container_name": "string",
        },
        name="string",
        soft_quota={
            "limit": 0,
            "type": "string",
        })
    
    const blobstoreAzureResource = new nexus.BlobstoreAzure("blobstoreAzureResource", {
        bucketConfiguration: {
            accountName: "string",
            authentication: {
                authenticationMethod: "string",
                accountKey: "string",
            },
            containerName: "string",
        },
        name: "string",
        softQuota: {
            limit: 0,
            type: "string",
        },
    });
    
    type: nexus:BlobstoreAzure
    properties:
        bucketConfiguration:
            accountName: string
            authentication:
                accountKey: string
                authenticationMethod: string
            containerName: string
        name: string
        softQuota:
            limit: 0
            type: string
    

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

    BucketConfiguration BlobstoreAzureBucketConfiguration
    The Azure specific configuration details for the Azure object that'll contain the blob store
    Name string
    Blobstore name
    SoftQuota BlobstoreAzureSoftQuota
    Soft quota of the blobstore
    BucketConfiguration BlobstoreAzureBucketConfigurationArgs
    The Azure specific configuration details for the Azure object that'll contain the blob store
    Name string
    Blobstore name
    SoftQuota BlobstoreAzureSoftQuotaArgs
    Soft quota of the blobstore
    bucketConfiguration BlobstoreAzureBucketConfiguration
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name String
    Blobstore name
    softQuota BlobstoreAzureSoftQuota
    Soft quota of the blobstore
    bucketConfiguration BlobstoreAzureBucketConfiguration
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name string
    Blobstore name
    softQuota BlobstoreAzureSoftQuota
    Soft quota of the blobstore
    bucket_configuration BlobstoreAzureBucketConfigurationArgs
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name str
    Blobstore name
    soft_quota BlobstoreAzureSoftQuotaArgs
    Soft quota of the blobstore
    bucketConfiguration Property Map
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name String
    Blobstore name
    softQuota Property Map
    Soft quota of the blobstore

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BlobstoreAzure resource produces the following output properties:

    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
    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
    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
    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
    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
    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 BlobstoreAzure Resource

    Get an existing BlobstoreAzure 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?: BlobstoreAzureState, opts?: CustomResourceOptions): BlobstoreAzure
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            blob_count: Optional[float] = None,
            bucket_configuration: Optional[BlobstoreAzureBucketConfigurationArgs] = None,
            name: Optional[str] = None,
            soft_quota: Optional[BlobstoreAzureSoftQuotaArgs] = None,
            total_size_in_bytes: Optional[float] = None) -> BlobstoreAzure
    func GetBlobstoreAzure(ctx *Context, name string, id IDInput, state *BlobstoreAzureState, opts ...ResourceOption) (*BlobstoreAzure, error)
    public static BlobstoreAzure Get(string name, Input<string> id, BlobstoreAzureState? state, CustomResourceOptions? opts = null)
    public static BlobstoreAzure get(String name, Output<String> id, BlobstoreAzureState state, CustomResourceOptions options)
    resources:  _:    type: nexus:BlobstoreAzure    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:
    BlobCount double
    Count of blobs
    BucketConfiguration BlobstoreAzureBucketConfiguration
    The Azure specific configuration details for the Azure object that'll contain the blob store
    Name string
    Blobstore name
    SoftQuota BlobstoreAzureSoftQuota
    Soft quota of the blobstore
    TotalSizeInBytes double
    The total size of the blobstore in Bytes
    BlobCount float64
    Count of blobs
    BucketConfiguration BlobstoreAzureBucketConfigurationArgs
    The Azure specific configuration details for the Azure object that'll contain the blob store
    Name string
    Blobstore name
    SoftQuota BlobstoreAzureSoftQuotaArgs
    Soft quota of the blobstore
    TotalSizeInBytes float64
    The total size of the blobstore in Bytes
    blobCount Double
    Count of blobs
    bucketConfiguration BlobstoreAzureBucketConfiguration
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name String
    Blobstore name
    softQuota BlobstoreAzureSoftQuota
    Soft quota of the blobstore
    totalSizeInBytes Double
    The total size of the blobstore in Bytes
    blobCount number
    Count of blobs
    bucketConfiguration BlobstoreAzureBucketConfiguration
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name string
    Blobstore name
    softQuota BlobstoreAzureSoftQuota
    Soft quota of the blobstore
    totalSizeInBytes number
    The total size of the blobstore in Bytes
    blob_count float
    Count of blobs
    bucket_configuration BlobstoreAzureBucketConfigurationArgs
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name str
    Blobstore name
    soft_quota BlobstoreAzureSoftQuotaArgs
    Soft quota of the blobstore
    total_size_in_bytes float
    The total size of the blobstore in Bytes
    blobCount Number
    Count of blobs
    bucketConfiguration Property Map
    The Azure specific configuration details for the Azure object that'll contain the blob store
    name String
    Blobstore name
    softQuota Property Map
    Soft quota of the blobstore
    totalSizeInBytes Number
    The total size of the blobstore in Bytes

    Supporting Types

    BlobstoreAzureBucketConfiguration, BlobstoreAzureBucketConfigurationArgs

    AccountName string
    Account name found under Access keys for the storage account
    Authentication BlobstoreAzureBucketConfigurationAuthentication
    The Azure specific authentication details
    ContainerName string
    The name of an existing container to be used for storage
    AccountName string
    Account name found under Access keys for the storage account
    Authentication BlobstoreAzureBucketConfigurationAuthentication
    The Azure specific authentication details
    ContainerName string
    The name of an existing container to be used for storage
    accountName String
    Account name found under Access keys for the storage account
    authentication BlobstoreAzureBucketConfigurationAuthentication
    The Azure specific authentication details
    containerName String
    The name of an existing container to be used for storage
    accountName string
    Account name found under Access keys for the storage account
    authentication BlobstoreAzureBucketConfigurationAuthentication
    The Azure specific authentication details
    containerName string
    The name of an existing container to be used for storage
    account_name str
    Account name found under Access keys for the storage account
    authentication BlobstoreAzureBucketConfigurationAuthentication
    The Azure specific authentication details
    container_name str
    The name of an existing container to be used for storage
    accountName String
    Account name found under Access keys for the storage account
    authentication Property Map
    The Azure specific authentication details
    containerName String
    The name of an existing container to be used for storage

    BlobstoreAzureBucketConfigurationAuthentication, BlobstoreAzureBucketConfigurationAuthenticationArgs

    AuthenticationMethod string
    The type of Azure authentication to use. Possible values: ACCOUNTKEY and MANAGEDIDENTITY
    AccountKey string
    The account key. Required if authentication_method is ACCOUNTKEY
    AuthenticationMethod string
    The type of Azure authentication to use. Possible values: ACCOUNTKEY and MANAGEDIDENTITY
    AccountKey string
    The account key. Required if authentication_method is ACCOUNTKEY
    authenticationMethod String
    The type of Azure authentication to use. Possible values: ACCOUNTKEY and MANAGEDIDENTITY
    accountKey String
    The account key. Required if authentication_method is ACCOUNTKEY
    authenticationMethod string
    The type of Azure authentication to use. Possible values: ACCOUNTKEY and MANAGEDIDENTITY
    accountKey string
    The account key. Required if authentication_method is ACCOUNTKEY
    authentication_method str
    The type of Azure authentication to use. Possible values: ACCOUNTKEY and MANAGEDIDENTITY
    account_key str
    The account key. Required if authentication_method is ACCOUNTKEY
    authenticationMethod String
    The type of Azure authentication to use. Possible values: ACCOUNTKEY and MANAGEDIDENTITY
    accountKey String
    The account key. Required if authentication_method is ACCOUNTKEY

    BlobstoreAzureSoftQuota, BlobstoreAzureSoftQuotaArgs

    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/blobstoreAzure:BlobstoreAzure example 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.
    nexus logo
    nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers