We recommend using Azure Native.
Manages a Data Share Blob Storage Dataset.
Create DatasetBlobStorage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatasetBlobStorage(name: string, args: DatasetBlobStorageArgs, opts?: CustomResourceOptions);@overload
def DatasetBlobStorage(resource_name: str,
args: DatasetBlobStorageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatasetBlobStorage(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_name: Optional[str] = None,
data_share_id: Optional[str] = None,
storage_account: Optional[DatasetBlobStorageStorageAccountArgs] = None,
file_path: Optional[str] = None,
folder_path: Optional[str] = None,
name: Optional[str] = None)func NewDatasetBlobStorage(ctx *Context, name string, args DatasetBlobStorageArgs, opts ...ResourceOption) (*DatasetBlobStorage, error)public DatasetBlobStorage(string name, DatasetBlobStorageArgs args, CustomResourceOptions? opts = null)
public DatasetBlobStorage(String name, DatasetBlobStorageArgs args)
public DatasetBlobStorage(String name, DatasetBlobStorageArgs args, CustomResourceOptions options)
type: azure:datashare:DatasetBlobStorage
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 DatasetBlobStorageArgs
- 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 DatasetBlobStorageArgs
- 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 DatasetBlobStorageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatasetBlobStorageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatasetBlobStorageArgs
- 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 datasetBlobStorageResource = new Azure.DataShare.DatasetBlobStorage("datasetBlobStorageResource", new()
{
ContainerName = "string",
DataShareId = "string",
StorageAccount = new Azure.DataShare.Inputs.DatasetBlobStorageStorageAccountArgs
{
Name = "string",
ResourceGroupName = "string",
SubscriptionId = "string",
},
FilePath = "string",
FolderPath = "string",
Name = "string",
});
example, err := datashare.NewDatasetBlobStorage(ctx, "datasetBlobStorageResource", &datashare.DatasetBlobStorageArgs{
ContainerName: pulumi.String("string"),
DataShareId: pulumi.String("string"),
StorageAccount: &datashare.DatasetBlobStorageStorageAccountArgs{
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
},
FilePath: pulumi.String("string"),
FolderPath: pulumi.String("string"),
Name: pulumi.String("string"),
})
var datasetBlobStorageResource = new DatasetBlobStorage("datasetBlobStorageResource", DatasetBlobStorageArgs.builder()
.containerName("string")
.dataShareId("string")
.storageAccount(DatasetBlobStorageStorageAccountArgs.builder()
.name("string")
.resourceGroupName("string")
.subscriptionId("string")
.build())
.filePath("string")
.folderPath("string")
.name("string")
.build());
dataset_blob_storage_resource = azure.datashare.DatasetBlobStorage("datasetBlobStorageResource",
container_name="string",
data_share_id="string",
storage_account={
"name": "string",
"resource_group_name": "string",
"subscription_id": "string",
},
file_path="string",
folder_path="string",
name="string")
const datasetBlobStorageResource = new azure.datashare.DatasetBlobStorage("datasetBlobStorageResource", {
containerName: "string",
dataShareId: "string",
storageAccount: {
name: "string",
resourceGroupName: "string",
subscriptionId: "string",
},
filePath: "string",
folderPath: "string",
name: "string",
});
type: azure:datashare:DatasetBlobStorage
properties:
containerName: string
dataShareId: string
filePath: string
folderPath: string
name: string
storageAccount:
name: string
resourceGroupName: string
subscriptionId: string
DatasetBlobStorage 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 DatasetBlobStorage resource accepts the following input properties:
- Container
Name string - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- string
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Storage
Account DatasetBlob Storage Storage Account - A
storage_accountblock as defined below. Changing this forces a new resource to be created. - File
Path string - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Folder
Path string - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Name string
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Container
Name string - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- string
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Storage
Account DatasetBlob Storage Storage Account Args - A
storage_accountblock as defined below. Changing this forces a new resource to be created. - File
Path string - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Folder
Path string - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Name string
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- container
Name String - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- String
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage
Account DatasetBlob Storage Storage Account - A
storage_accountblock as defined below. Changing this forces a new resource to be created. - file
Path String - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder
Path String - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name String
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- container
Name string - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- string
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage
Account DatasetBlob Storage Storage Account - A
storage_accountblock as defined below. Changing this forces a new resource to be created. - file
Path string - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder
Path string - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name string
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- container_
name str - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- str
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage_
account DatasetBlob Storage Storage Account Args - A
storage_accountblock as defined below. Changing this forces a new resource to be created. - file_
path str - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder_
path str - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name str
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- container
Name String - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- String
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage
Account Property Map - A
storage_accountblock as defined below. Changing this forces a new resource to be created. - file
Path String - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder
Path String - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name String
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatasetBlobStorage resource produces the following output properties:
- Display
Name string - The name of the Data Share Dataset.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - The name of the Data Share Dataset.
- Id string
- The provider-assigned unique ID for this managed resource.
- display
Name String - The name of the Data Share Dataset.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name string - The name of the Data Share Dataset.
- id string
- The provider-assigned unique ID for this managed resource.
- display_
name str - The name of the Data Share Dataset.
- id str
- The provider-assigned unique ID for this managed resource.
- display
Name String - The name of the Data Share Dataset.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DatasetBlobStorage Resource
Get an existing DatasetBlobStorage 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?: DatasetBlobStorageState, opts?: CustomResourceOptions): DatasetBlobStorage@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
container_name: Optional[str] = None,
data_share_id: Optional[str] = None,
display_name: Optional[str] = None,
file_path: Optional[str] = None,
folder_path: Optional[str] = None,
name: Optional[str] = None,
storage_account: Optional[DatasetBlobStorageStorageAccountArgs] = None) -> DatasetBlobStoragefunc GetDatasetBlobStorage(ctx *Context, name string, id IDInput, state *DatasetBlobStorageState, opts ...ResourceOption) (*DatasetBlobStorage, error)public static DatasetBlobStorage Get(string name, Input<string> id, DatasetBlobStorageState? state, CustomResourceOptions? opts = null)public static DatasetBlobStorage get(String name, Output<String> id, DatasetBlobStorageState state, CustomResourceOptions options)resources: _: type: azure:datashare:DatasetBlobStorage 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.
- Container
Name string - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- string
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Display
Name string - The name of the Data Share Dataset.
- File
Path string - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Folder
Path string - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Name string
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Storage
Account DatasetBlob Storage Storage Account - A
storage_accountblock as defined below. Changing this forces a new resource to be created.
- Container
Name string - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- string
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Display
Name string - The name of the Data Share Dataset.
- File
Path string - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Folder
Path string - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Name string
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Storage
Account DatasetBlob Storage Storage Account Args - A
storage_accountblock as defined below. Changing this forces a new resource to be created.
- container
Name String - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- String
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- display
Name String - The name of the Data Share Dataset.
- file
Path String - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder
Path String - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name String
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage
Account DatasetBlob Storage Storage Account - A
storage_accountblock as defined below. Changing this forces a new resource to be created.
- container
Name string - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- string
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- display
Name string - The name of the Data Share Dataset.
- file
Path string - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder
Path string - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name string
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage
Account DatasetBlob Storage Storage Account - A
storage_accountblock as defined below. Changing this forces a new resource to be created.
- container_
name str - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- str
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- display_
name str - The name of the Data Share Dataset.
- file_
path str - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder_
path str - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name str
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage_
account DatasetBlob Storage Storage Account Args - A
storage_accountblock as defined below. Changing this forces a new resource to be created.
- container
Name String - The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- String
- The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
- display
Name String - The name of the Data Share Dataset.
- file
Path String - The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- folder
Path String - The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name String
- The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
- storage
Account Property Map - A
storage_accountblock as defined below. Changing this forces a new resource to be created.
Supporting Types
DatasetBlobStorageStorageAccount, DatasetBlobStorageStorageAccountArgs
- Name string
- The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Resource
Group stringName - The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Subscription
Id string - The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Name string
- The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Resource
Group stringName - The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- Subscription
Id string - The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name String
- The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- resource
Group StringName - The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- subscription
Id String - The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name string
- The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- resource
Group stringName - The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- subscription
Id string - The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name str
- The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- resource_
group_ strname - The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- subscription_
id str - The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- name String
- The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- resource
Group StringName - The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
- subscription
Id String - The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
Import
Data Share Blob Storage Datasets can be imported using the resource id, e.g.
$ pulumi import azure:datashare/datasetBlobStorage:DatasetBlobStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataShare/accounts/account1/shares/share1/dataSets/dataSet1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
