1. Packages
  2. Azure Native
  3. API Docs
  4. subscription
  5. SubscriptionTarDirectory
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.subscription.SubscriptionTarDirectory

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Subscription Response for Changed Target Directory. Azure REST API version: 2024-08-01-preview.

    Example Usage

    putTargetDirectory

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var subscriptionTarDirectory = new AzureNative.Subscription.SubscriptionTarDirectory("subscriptionTarDirectory", new()
        {
            Properties = new AzureNative.Subscription.Inputs.TargetDirectoryRequestPropertiesArgs
            {
                DestinationOwnerId = "abhaypratap@live.com",
                DestinationTenantId = "111a82eb-4c7b-48bb-962b-49363c510130",
            },
        });
    
    });
    
    package main
    
    import (
    	subscription "github.com/pulumi/pulumi-azure-native-sdk/subscription/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := subscription.NewSubscriptionTarDirectory(ctx, "subscriptionTarDirectory", &subscription.SubscriptionTarDirectoryArgs{
    			Properties: &subscription.TargetDirectoryRequestPropertiesArgs{
    				DestinationOwnerId:  pulumi.String("abhaypratap@live.com"),
    				DestinationTenantId: pulumi.String("111a82eb-4c7b-48bb-962b-49363c510130"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.subscription.SubscriptionTarDirectory;
    import com.pulumi.azurenative.subscription.SubscriptionTarDirectoryArgs;
    import com.pulumi.azurenative.subscription.inputs.TargetDirectoryRequestPropertiesArgs;
    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 subscriptionTarDirectory = new SubscriptionTarDirectory("subscriptionTarDirectory", SubscriptionTarDirectoryArgs.builder()
                .properties(TargetDirectoryRequestPropertiesArgs.builder()
                    .destinationOwnerId("abhaypratap@live.com")
                    .destinationTenantId("111a82eb-4c7b-48bb-962b-49363c510130")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    subscription_tar_directory = azure_native.subscription.SubscriptionTarDirectory("subscriptionTarDirectory", properties={
        "destination_owner_id": "abhaypratap@live.com",
        "destination_tenant_id": "111a82eb-4c7b-48bb-962b-49363c510130",
    })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const subscriptionTarDirectory = new azure_native.subscription.SubscriptionTarDirectory("subscriptionTarDirectory", {properties: {
        destinationOwnerId: "abhaypratap@live.com",
        destinationTenantId: "111a82eb-4c7b-48bb-962b-49363c510130",
    }});
    
    resources:
      subscriptionTarDirectory:
        type: azure-native:subscription:SubscriptionTarDirectory
        properties:
          properties:
            destinationOwnerId: abhaypratap@live.com
            destinationTenantId: 111a82eb-4c7b-48bb-962b-49363c510130
    

    Create SubscriptionTarDirectory Resource

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

    Constructor syntax

    new SubscriptionTarDirectory(name: string, args?: SubscriptionTarDirectoryArgs, opts?: CustomResourceOptions);
    @overload
    def SubscriptionTarDirectory(resource_name: str,
                                 args: Optional[SubscriptionTarDirectoryArgs] = None,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SubscriptionTarDirectory(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 properties: Optional[TargetDirectoryRequestPropertiesArgs] = None,
                                 subscription_id: Optional[str] = None)
    func NewSubscriptionTarDirectory(ctx *Context, name string, args *SubscriptionTarDirectoryArgs, opts ...ResourceOption) (*SubscriptionTarDirectory, error)
    public SubscriptionTarDirectory(string name, SubscriptionTarDirectoryArgs? args = null, CustomResourceOptions? opts = null)
    public SubscriptionTarDirectory(String name, SubscriptionTarDirectoryArgs args)
    public SubscriptionTarDirectory(String name, SubscriptionTarDirectoryArgs args, CustomResourceOptions options)
    
    type: azure-native:subscription:SubscriptionTarDirectory
    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 SubscriptionTarDirectoryArgs
    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 SubscriptionTarDirectoryArgs
    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 SubscriptionTarDirectoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SubscriptionTarDirectoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SubscriptionTarDirectoryArgs
    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 subscriptionTarDirectoryResource = new AzureNative.Subscription.SubscriptionTarDirectory("subscriptionTarDirectoryResource", new()
    {
        Properties = new AzureNative.Subscription.Inputs.TargetDirectoryRequestPropertiesArgs
        {
            DestinationOwnerId = "string",
            DestinationTenantId = "string",
        },
        SubscriptionId = "string",
    });
    
    example, err := subscription.NewSubscriptionTarDirectory(ctx, "subscriptionTarDirectoryResource", &subscription.SubscriptionTarDirectoryArgs{
    	Properties: &subscription.TargetDirectoryRequestPropertiesArgs{
    		DestinationOwnerId:  pulumi.String("string"),
    		DestinationTenantId: pulumi.String("string"),
    	},
    	SubscriptionId: pulumi.String("string"),
    })
    
    var subscriptionTarDirectoryResource = new SubscriptionTarDirectory("subscriptionTarDirectoryResource", SubscriptionTarDirectoryArgs.builder()
        .properties(TargetDirectoryRequestPropertiesArgs.builder()
            .destinationOwnerId("string")
            .destinationTenantId("string")
            .build())
        .subscriptionId("string")
        .build());
    
    subscription_tar_directory_resource = azure_native.subscription.SubscriptionTarDirectory("subscriptionTarDirectoryResource",
        properties={
            "destination_owner_id": "string",
            "destination_tenant_id": "string",
        },
        subscription_id="string")
    
    const subscriptionTarDirectoryResource = new azure_native.subscription.SubscriptionTarDirectory("subscriptionTarDirectoryResource", {
        properties: {
            destinationOwnerId: "string",
            destinationTenantId: "string",
        },
        subscriptionId: "string",
    });
    
    type: azure-native:subscription:SubscriptionTarDirectory
    properties:
        properties:
            destinationOwnerId: string
            destinationTenantId: string
        subscriptionId: string
    

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

    Properties TargetDirectoryRequestPropertiesArgs
    Target Directory request properties.
    SubscriptionId string
    Subscription Id.
    properties TargetDirectoryRequestProperties
    Target Directory request properties.
    subscriptionId String
    Subscription Id.
    properties TargetDirectoryRequestProperties
    Target Directory request properties.
    subscriptionId string
    Subscription Id.
    properties TargetDirectoryRequestPropertiesArgs
    Target Directory request properties.
    subscription_id str
    Subscription Id.
    properties Property Map
    Target Directory request properties.
    subscriptionId String
    Subscription Id.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Subscription Name.
    Type string
    Resource type, Microsoft.Subscription/changeTenantRequest.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Subscription Name.
    Type string
    Resource type, Microsoft.Subscription/changeTenantRequest.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Subscription Name.
    type String
    Resource type, Microsoft.Subscription/changeTenantRequest.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Subscription Name.
    type string
    Resource type, Microsoft.Subscription/changeTenantRequest.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Subscription Name.
    type str
    Resource type, Microsoft.Subscription/changeTenantRequest.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Subscription Name.
    type String
    Resource type, Microsoft.Subscription/changeTenantRequest.

    Supporting Types

    TargetDirectoryRequestProperties, TargetDirectoryRequestPropertiesArgs

    DestinationOwnerId string
    The destination OwnerId, can be object id or email address
    DestinationTenantId string
    The destination Tenant id where subscription needs to be accepted
    DestinationOwnerId string
    The destination OwnerId, can be object id or email address
    DestinationTenantId string
    The destination Tenant id where subscription needs to be accepted
    destinationOwnerId String
    The destination OwnerId, can be object id or email address
    destinationTenantId String
    The destination Tenant id where subscription needs to be accepted
    destinationOwnerId string
    The destination OwnerId, can be object id or email address
    destinationTenantId string
    The destination Tenant id where subscription needs to be accepted
    destination_owner_id str
    The destination OwnerId, can be object id or email address
    destination_tenant_id str
    The destination Tenant id where subscription needs to be accepted
    destinationOwnerId String
    The destination OwnerId, can be object id or email address
    destinationTenantId String
    The destination Tenant id where subscription needs to be accepted

    TargetDirectoryResultPropertiesResponse, TargetDirectoryResultPropertiesResponseArgs

    DestinationOwnerId string
    Destination Owner Id where Subscription will be accepted.
    DestinationTenantId string
    Destination Tenant Id where Subscription will be accepted.
    ExpiresOn string
    Subscription Initiate Request Expiry time
    Status string
    Subscription Status.
    DestinationOwnerId string
    Destination Owner Id where Subscription will be accepted.
    DestinationTenantId string
    Destination Tenant Id where Subscription will be accepted.
    ExpiresOn string
    Subscription Initiate Request Expiry time
    Status string
    Subscription Status.
    destinationOwnerId String
    Destination Owner Id where Subscription will be accepted.
    destinationTenantId String
    Destination Tenant Id where Subscription will be accepted.
    expiresOn String
    Subscription Initiate Request Expiry time
    status String
    Subscription Status.
    destinationOwnerId string
    Destination Owner Id where Subscription will be accepted.
    destinationTenantId string
    Destination Tenant Id where Subscription will be accepted.
    expiresOn string
    Subscription Initiate Request Expiry time
    status string
    Subscription Status.
    destination_owner_id str
    Destination Owner Id where Subscription will be accepted.
    destination_tenant_id str
    Destination Tenant Id where Subscription will be accepted.
    expires_on str
    Subscription Initiate Request Expiry time
    status str
    Subscription Status.
    destinationOwnerId String
    Destination Owner Id where Subscription will be accepted.
    destinationTenantId String
    Destination Tenant Id where Subscription will be accepted.
    expiresOn String
    Subscription Initiate Request Expiry time
    status String
    Subscription Status.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:subscription:SubscriptionTarDirectory default /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/changeTenantRequest/default 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi