azure-native.subscription.SubscriptionTarDirectory
Explore with Pulumi AI
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
Pulumi.
Azure Native. Subscription. Inputs. Target Directory Request Properties - Target Directory request properties.
- Subscription
Id string - Subscription Id.
- Properties
Target
Directory Request Properties Args - Target Directory request properties.
- Subscription
Id string - Subscription Id.
- properties
Target
Directory Request Properties - Target Directory request properties.
- subscription
Id String - Subscription Id.
- properties
Target
Directory Request Properties - Target Directory request properties.
- subscription
Id string - Subscription Id.
- properties
Target
Directory Request Properties Args - Target Directory request properties.
- subscription_
id str - Subscription Id.
- properties Property Map
- Target Directory request properties.
- subscription
Id String - Subscription Id.
Outputs
All input properties are implicitly available as output properties. Additionally, the SubscriptionTarDirectory resource produces the following output properties:
Supporting Types
TargetDirectoryRequestProperties, TargetDirectoryRequestPropertiesArgs
- Destination
Owner stringId - The destination OwnerId, can be object id or email address
- Destination
Tenant stringId - The destination Tenant id where subscription needs to be accepted
- Destination
Owner stringId - The destination OwnerId, can be object id or email address
- Destination
Tenant stringId - The destination Tenant id where subscription needs to be accepted
- destination
Owner StringId - The destination OwnerId, can be object id or email address
- destination
Tenant StringId - The destination Tenant id where subscription needs to be accepted
- destination
Owner stringId - The destination OwnerId, can be object id or email address
- destination
Tenant stringId - The destination Tenant id where subscription needs to be accepted
- destination_
owner_ strid - The destination OwnerId, can be object id or email address
- destination_
tenant_ strid - The destination Tenant id where subscription needs to be accepted
- destination
Owner StringId - The destination OwnerId, can be object id or email address
- destination
Tenant StringId - The destination Tenant id where subscription needs to be accepted
TargetDirectoryResultPropertiesResponse, TargetDirectoryResultPropertiesResponseArgs
- Destination
Owner stringId - Destination Owner Id where Subscription will be accepted.
- Destination
Tenant stringId - Destination Tenant Id where Subscription will be accepted.
- Expires
On string - Subscription Initiate Request Expiry time
- Status string
- Subscription Status.
- Destination
Owner stringId - Destination Owner Id where Subscription will be accepted.
- Destination
Tenant stringId - Destination Tenant Id where Subscription will be accepted.
- Expires
On string - Subscription Initiate Request Expiry time
- Status string
- Subscription Status.
- destination
Owner StringId - Destination Owner Id where Subscription will be accepted.
- destination
Tenant StringId - Destination Tenant Id where Subscription will be accepted.
- expires
On String - Subscription Initiate Request Expiry time
- status String
- Subscription Status.
- destination
Owner stringId - Destination Owner Id where Subscription will be accepted.
- destination
Tenant stringId - Destination Tenant Id where Subscription will be accepted.
- expires
On string - Subscription Initiate Request Expiry time
- status string
- Subscription Status.
- destination_
owner_ strid - Destination Owner Id where Subscription will be accepted.
- destination_
tenant_ strid - Destination Tenant Id where Subscription will be accepted.
- expires_
on str - Subscription Initiate Request Expiry time
- status str
- Subscription Status.
- destination
Owner StringId - Destination Owner Id where Subscription will be accepted.
- destination
Tenant StringId - Destination Tenant Id where Subscription will be accepted.
- expires
On 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