User Args
data class UserArgs(val appType: Output<Either<String, AppType>>? = null, val confirmation: Output<Either<String, Confirmation>>? = null, val email: Output<String>? = null, val firstName: Output<String>? = null, val identities: Output<List<UserIdentityContractArgs>>? = null, val lastName: Output<String>? = null, val note: Output<String>? = null, val notify: Output<Boolean>? = null, val password: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val state: Output<Either<String, UserState>>? = null, val userId: Output<String>? = null) : ConvertibleToJava<UserArgs>
User details. API Version: 2020-12-01.
Example Usage
ApiManagementCreateUser
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var user = new AzureNative.ApiManagement.User("user", new()
{
Confirmation = "signup",
Email = "foobar@outlook.com",
FirstName = "foo",
LastName = "bar",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
UserId = "5931a75ae4bbd512288c680b",
});
});
Content copied to clipboard
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewUser(ctx, "user", &apimanagement.UserArgs{
Confirmation: pulumi.String("signup"),
Email: pulumi.String("foobar@outlook.com"),
FirstName: pulumi.String("foo"),
LastName: pulumi.String("bar"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
UserId: pulumi.String("5931a75ae4bbd512288c680b"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.User;
import com.pulumi.azurenative.apimanagement.UserArgs;
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 user = new User("user", UserArgs.builder()
.confirmation("signup")
.email("foobar@outlook.com")
.firstName("foo")
.lastName("bar")
.resourceGroupName("rg1")
.serviceName("apimService1")
.userId("5931a75ae4bbd512288c680b")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:User 5931a75ae4bbd512288c680b /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/5931a75ae4bbd512288c680b
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(appType: Output<Either<String, AppType>>? = null, confirmation: Output<Either<String, Confirmation>>? = null, email: Output<String>? = null, firstName: Output<String>? = null, identities: Output<List<UserIdentityContractArgs>>? = null, lastName: Output<String>? = null, note: Output<String>? = null, notify: Output<Boolean>? = null, password: Output<String>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, state: Output<Either<String, UserState>>? = null, userId: Output<String>? = null)