1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. SubnetServiceEndpointStoragePolicy

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

azure.network.SubnetServiceEndpointStoragePolicy

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

    Manages a Subnet Service Endpoint Storage Policy.

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.network.SubnetServiceEndpointStoragePolicy;
    import com.pulumi.azure.network.SubnetServiceEndpointStoragePolicyArgs;
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .accountTier("Standard")
                .accountReplicationType("GRS")
                .build());
    
            var exampleSubnetServiceEndpointStoragePolicy = new SubnetServiceEndpointStoragePolicy("exampleSubnetServiceEndpointStoragePolicy", SubnetServiceEndpointStoragePolicyArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .definition(            
                    SubnetServiceEndpointStoragePolicyDefinitionArgs.builder()
                        .name("name1")
                        .description("definition1")
                        .service("Microsoft.Storage")
                        .serviceResources(                    
                            exampleResourceGroup.id(),
                            exampleAccount.id())
                        .build(),
                    SubnetServiceEndpointStoragePolicyDefinitionArgs.builder()
                        .name("name2")
                        .description("definition2")
                        .service("Global")
                        .serviceResources(                    
                            "/services/Azure",
                            "/services/Azure/Batch",
                            "/services/Azure/DataFactory",
                            "/services/Azure/MachineLearning",
                            "/services/Azure/ManagedInstance",
                            "/services/Azure/WebPI")
                        .build())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      exampleSubnetServiceEndpointStoragePolicy:
        type: azure:network:SubnetServiceEndpointStoragePolicy
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          definition:
            - name: name1
              description: definition1
              service: Microsoft.Storage
              serviceResources:
                - ${exampleResourceGroup.id}
                - ${exampleAccount.id}
            - name: name2
              description: definition2
              service: Global
              serviceResources:
                - /services/Azure
                - /services/Azure/Batch
                - /services/Azure/DataFactory
                - /services/Azure/MachineLearning
                - /services/Azure/ManagedInstance
                - /services/Azure/WebPI
      exampleAccount:
        type: azure:storage:Account
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          accountTier: Standard
          accountReplicationType: GRS
    

    Create SubnetServiceEndpointStoragePolicy Resource

    new SubnetServiceEndpointStoragePolicy(name: string, args: SubnetServiceEndpointStoragePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def SubnetServiceEndpointStoragePolicy(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           definition: Optional[SubnetServiceEndpointStoragePolicyDefinitionArgs] = None,
                                           location: Optional[str] = None,
                                           name: Optional[str] = None,
                                           resource_group_name: Optional[str] = None,
                                           tags: Optional[Mapping[str, str]] = None)
    @overload
    def SubnetServiceEndpointStoragePolicy(resource_name: str,
                                           args: SubnetServiceEndpointStoragePolicyArgs,
                                           opts: Optional[ResourceOptions] = None)
    func NewSubnetServiceEndpointStoragePolicy(ctx *Context, name string, args SubnetServiceEndpointStoragePolicyArgs, opts ...ResourceOption) (*SubnetServiceEndpointStoragePolicy, error)
    public SubnetServiceEndpointStoragePolicy(string name, SubnetServiceEndpointStoragePolicyArgs args, CustomResourceOptions? opts = null)
    public SubnetServiceEndpointStoragePolicy(String name, SubnetServiceEndpointStoragePolicyArgs args)
    public SubnetServiceEndpointStoragePolicy(String name, SubnetServiceEndpointStoragePolicyArgs args, CustomResourceOptions options)
    
    type: azure:network:SubnetServiceEndpointStoragePolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SubnetServiceEndpointStoragePolicyArgs
    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 SubnetServiceEndpointStoragePolicyArgs
    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 SubnetServiceEndpointStoragePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SubnetServiceEndpointStoragePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SubnetServiceEndpointStoragePolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SubnetServiceEndpointStoragePolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SubnetServiceEndpointStoragePolicy resource accepts the following input properties:

    ResourceGroupName string
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Definition SubnetServiceEndpointStoragePolicyDefinition
    A definition block as defined below
    Location string
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Name string
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    ResourceGroupName string
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Definition SubnetServiceEndpointStoragePolicyDefinitionArgs
    A definition block as defined below
    Location string
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Name string
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    resourceGroupName String
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    definition SubnetServiceEndpointStoragePolicyDefinition
    A definition block as defined below
    location String
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name String
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    resourceGroupName string
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    definition SubnetServiceEndpointStoragePolicyDefinition
    A definition block as defined below
    location string
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name string
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    resource_group_name str
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    definition SubnetServiceEndpointStoragePolicyDefinitionArgs
    A definition block as defined below
    location str
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name str
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    resourceGroupName String
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    definition Property Map
    A definition block as defined below
    location String
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name String
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SubnetServiceEndpointStoragePolicy Resource

    Get an existing SubnetServiceEndpointStoragePolicy 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?: SubnetServiceEndpointStoragePolicyState, opts?: CustomResourceOptions): SubnetServiceEndpointStoragePolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            definition: Optional[SubnetServiceEndpointStoragePolicyDefinitionArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> SubnetServiceEndpointStoragePolicy
    func GetSubnetServiceEndpointStoragePolicy(ctx *Context, name string, id IDInput, state *SubnetServiceEndpointStoragePolicyState, opts ...ResourceOption) (*SubnetServiceEndpointStoragePolicy, error)
    public static SubnetServiceEndpointStoragePolicy Get(string name, Input<string> id, SubnetServiceEndpointStoragePolicyState? state, CustomResourceOptions? opts = null)
    public static SubnetServiceEndpointStoragePolicy get(String name, Output<String> id, SubnetServiceEndpointStoragePolicyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Definition SubnetServiceEndpointStoragePolicyDefinition
    A definition block as defined below
    Location string
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Name string
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    ResourceGroupName string
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    Definition SubnetServiceEndpointStoragePolicyDefinitionArgs
    A definition block as defined below
    Location string
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Name string
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    ResourceGroupName string
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    definition SubnetServiceEndpointStoragePolicyDefinition
    A definition block as defined below
    location String
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name String
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    resourceGroupName String
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    definition SubnetServiceEndpointStoragePolicyDefinition
    A definition block as defined below
    location string
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name string
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    resourceGroupName string
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    definition SubnetServiceEndpointStoragePolicyDefinitionArgs
    A definition block as defined below
    location str
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name str
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    resource_group_name str
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
    definition Property Map
    A definition block as defined below
    location String
    The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    name String
    The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    resourceGroupName String
    The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.

    Supporting Types

    SubnetServiceEndpointStoragePolicyDefinition, SubnetServiceEndpointStoragePolicyDefinitionArgs

    Name string
    The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
    ServiceResources List<string>

    Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

    NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

    Description string
    The description of this Subnet Service Endpoint Storage Policy Definition.
    Service string
    The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
    Name string
    The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
    ServiceResources []string

    Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

    NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

    Description string
    The description of this Subnet Service Endpoint Storage Policy Definition.
    Service string
    The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
    name String
    The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
    serviceResources List<String>

    Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

    NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

    description String
    The description of this Subnet Service Endpoint Storage Policy Definition.
    service String
    The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
    name string
    The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
    serviceResources string[]

    Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

    NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

    description string
    The description of this Subnet Service Endpoint Storage Policy Definition.
    service string
    The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
    name str
    The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
    service_resources Sequence[str]

    Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

    NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

    description str
    The description of this Subnet Service Endpoint Storage Policy Definition.
    service str
    The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
    name String
    The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
    serviceResources List<String>

    Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

    NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

    description String
    The description of this Subnet Service Endpoint Storage Policy Definition.
    service String
    The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.

    Import

    Subnet Service Endpoint Policies can be imported using the resource id, e.g.

    $ pulumi import azure:network/subnetServiceEndpointStoragePolicy:SubnetServiceEndpointStoragePolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/serviceEndpointPolicies/policy1
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi