nexus.BlobstoreAzure
Explore with Pulumi AI
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:
- Bucket
Configuration BlobstoreAzure Bucket Configuration - The Azure specific configuration details for the Azure object that'll contain the blob store
- Name string
- Blobstore name
- Soft
Quota BlobstoreAzure Soft Quota - Soft quota of the blobstore
- Bucket
Configuration BlobstoreAzure Bucket Configuration Args - The Azure specific configuration details for the Azure object that'll contain the blob store
- Name string
- Blobstore name
- Soft
Quota BlobstoreAzure Soft Quota Args - Soft quota of the blobstore
- bucket
Configuration BlobstoreAzure Bucket Configuration - The Azure specific configuration details for the Azure object that'll contain the blob store
- name String
- Blobstore name
- soft
Quota BlobstoreAzure Soft Quota - Soft quota of the blobstore
- bucket
Configuration BlobstoreAzure Bucket Configuration - The Azure specific configuration details for the Azure object that'll contain the blob store
- name string
- Blobstore name
- soft
Quota BlobstoreAzure Soft Quota - Soft quota of the blobstore
- bucket_
configuration BlobstoreAzure Bucket Configuration Args - The Azure specific configuration details for the Azure object that'll contain the blob store
- name str
- Blobstore name
- soft_
quota BlobstoreAzure Soft Quota Args - Soft quota of the blobstore
- bucket
Configuration Property Map - The Azure specific configuration details for the Azure object that'll contain the blob store
- 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 BlobstoreAzure resource produces the following output properties:
- 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
- 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
- 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
- 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
- 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
- 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 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.
- Blob
Count double - Count of blobs
- Bucket
Configuration BlobstoreAzure Bucket Configuration - The Azure specific configuration details for the Azure object that'll contain the blob store
- Name string
- Blobstore name
- Soft
Quota BlobstoreAzure Soft Quota - Soft quota of the blobstore
- Total
Size doubleIn Bytes - The total size of the blobstore in Bytes
- Blob
Count float64 - Count of blobs
- Bucket
Configuration BlobstoreAzure Bucket Configuration Args - The Azure specific configuration details for the Azure object that'll contain the blob store
- Name string
- Blobstore name
- Soft
Quota BlobstoreAzure Soft Quota Args - Soft quota of the blobstore
- Total
Size float64In Bytes - The total size of the blobstore in Bytes
- blob
Count Double - Count of blobs
- bucket
Configuration BlobstoreAzure Bucket Configuration - The Azure specific configuration details for the Azure object that'll contain the blob store
- name String
- Blobstore name
- soft
Quota BlobstoreAzure Soft Quota - Soft quota of the blobstore
- total
Size DoubleIn Bytes - The total size of the blobstore in Bytes
- blob
Count number - Count of blobs
- bucket
Configuration BlobstoreAzure Bucket Configuration - The Azure specific configuration details for the Azure object that'll contain the blob store
- name string
- Blobstore name
- soft
Quota BlobstoreAzure Soft Quota - Soft quota of the blobstore
- total
Size numberIn Bytes - The total size of the blobstore in Bytes
- blob_
count float - Count of blobs
- bucket_
configuration BlobstoreAzure Bucket Configuration Args - The Azure specific configuration details for the Azure object that'll contain the blob store
- name str
- Blobstore name
- soft_
quota BlobstoreAzure Soft Quota Args - Soft quota of the blobstore
- total_
size_ floatin_ bytes - The total size of the blobstore in Bytes
- blob
Count Number - Count of blobs
- bucket
Configuration Property Map - The Azure specific configuration details for the Azure object that'll contain the blob store
- 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
BlobstoreAzureBucketConfiguration, BlobstoreAzureBucketConfigurationArgs
- Account
Name string - Account name found under Access keys for the storage account
- Authentication
Blobstore
Azure Bucket Configuration Authentication - The Azure specific authentication details
- Container
Name string - The name of an existing container to be used for storage
- Account
Name string - Account name found under Access keys for the storage account
- Authentication
Blobstore
Azure Bucket Configuration Authentication - The Azure specific authentication details
- Container
Name string - The name of an existing container to be used for storage
- account
Name String - Account name found under Access keys for the storage account
- authentication
Blobstore
Azure Bucket Configuration Authentication - The Azure specific authentication details
- container
Name String - The name of an existing container to be used for storage
- account
Name string - Account name found under Access keys for the storage account
- authentication
Blobstore
Azure Bucket Configuration Authentication - The Azure specific authentication details
- container
Name 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
Blobstore
Azure Bucket Configuration Authentication - The Azure specific authentication details
- container_
name str - The name of an existing container to be used for storage
- account
Name String - Account name found under Access keys for the storage account
- authentication Property Map
- The Azure specific authentication details
- container
Name String - The name of an existing container to be used for storage
BlobstoreAzureBucketConfigurationAuthentication, BlobstoreAzureBucketConfigurationAuthenticationArgs
- Authentication
Method string - The type of Azure authentication to use. Possible values:
ACCOUNTKEY
andMANAGEDIDENTITY
- Account
Key string - The account key. Required if
authentication_method
isACCOUNTKEY
- Authentication
Method string - The type of Azure authentication to use. Possible values:
ACCOUNTKEY
andMANAGEDIDENTITY
- Account
Key string - The account key. Required if
authentication_method
isACCOUNTKEY
- authentication
Method String - The type of Azure authentication to use. Possible values:
ACCOUNTKEY
andMANAGEDIDENTITY
- account
Key String - The account key. Required if
authentication_method
isACCOUNTKEY
- authentication
Method string - The type of Azure authentication to use. Possible values:
ACCOUNTKEY
andMANAGEDIDENTITY
- account
Key string - The account key. Required if
authentication_method
isACCOUNTKEY
- authentication_
method str - The type of Azure authentication to use. Possible values:
ACCOUNTKEY
andMANAGEDIDENTITY
- account_
key str - The account key. Required if
authentication_method
isACCOUNTKEY
- authentication
Method String - The type of Azure authentication to use. Possible values:
ACCOUNTKEY
andMANAGEDIDENTITY
- account
Key String - The account key. Required if
authentication_method
isACCOUNTKEY
BlobstoreAzureSoftQuota, BlobstoreAzureSoftQuotaArgs
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.