Server Trust Group Args
data class ServerTrustGroupArgs(val groupMembers: Output<List<ServerInfoArgs>>? = null, val locationName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serverTrustGroupName: Output<String>? = null, val trustScopes: Output<List<String>>? = null) : ConvertibleToJava<ServerTrustGroupArgs>
A server trust group. Uses Azure REST API version 2021-11-01. In version 1.x of the Azure Native provider, it used API version 2020-11-01-preview. Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01, 2023-08-01-preview, 2024-05-01-preview.
Example Usage
Create server trust group
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverTrustGroup = new AzureNative.Sql.ServerTrustGroup("serverTrustGroup", new()
{
GroupMembers = new[]
{
new AzureNative.Sql.Inputs.ServerInfoArgs
{
ServerId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-1",
},
new AzureNative.Sql.Inputs.ServerInfoArgs
{
ServerId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-2",
},
},
LocationName = "Japan East",
ResourceGroupName = "Default",
ServerTrustGroupName = "server-trust-group-test",
TrustScopes = new[]
{
"GlobalTransactions",
"ServiceBroker",
},
});
});
Content copied to clipboard
package main
import (
sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewServerTrustGroup(ctx, "serverTrustGroup", &sql.ServerTrustGroupArgs{
GroupMembers: sql.ServerInfoArray{
&sql.ServerInfoArgs{
ServerId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-1"),
},
&sql.ServerInfoArgs{
ServerId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-2"),
},
},
LocationName: pulumi.String("Japan East"),
ResourceGroupName: pulumi.String("Default"),
ServerTrustGroupName: pulumi.String("server-trust-group-test"),
TrustScopes: pulumi.StringArray{
pulumi.String("GlobalTransactions"),
pulumi.String("ServiceBroker"),
},
})
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.sql.ServerTrustGroup;
import com.pulumi.azurenative.sql.ServerTrustGroupArgs;
import com.pulumi.azurenative.sql.inputs.ServerInfoArgs;
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 serverTrustGroup = new ServerTrustGroup("serverTrustGroup", ServerTrustGroupArgs.builder()
.groupMembers(
ServerInfoArgs.builder()
.serverId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-1")
.build(),
ServerInfoArgs.builder()
.serverId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-2")
.build())
.locationName("Japan East")
.resourceGroupName("Default")
.serverTrustGroupName("server-trust-group-test")
.trustScopes(
"GlobalTransactions",
"ServiceBroker")
.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:sql:ServerTrustGroup server-trust-group-test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}
Content copied to clipboard
Properties
Link copied to clipboard
Group members information for the server trust group.
Link copied to clipboard
The name of the region where the resource is located.
Link copied to clipboard
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
Link copied to clipboard
The name of the server trust group.
Link copied to clipboard
Trust scope of the server trust group.