Package com.pulumi.azurenative.sql
Class ServerTrustGroup
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.sql.ServerTrustGroup
-
public class ServerTrustGroup extends com.pulumi.resources.CustomResource
A server trust group. Azure REST API version: 2021-11-01. Prior API version in Azure Native 1.x: 2020-11-01-preview. Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview. ## Example Usage ### Create server trust group ```java 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 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( Map.of("serverId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-1"), Map.of("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( "GlobalTransactions", "ServiceBroker") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:sql:ServerTrustGroup server-trust-group-test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName} ```
-
-
Constructor Summary
Constructors Constructor Description ServerTrustGroup(java.lang.String name)
ServerTrustGroup(java.lang.String name, ServerTrustGroupArgs args)
ServerTrustGroup(java.lang.String name, ServerTrustGroupArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerTrustGroup
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.List<ServerInfoResponse>>
groupMembers()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.util.List<java.lang.String>>
trustScopes()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
ServerTrustGroup
public ServerTrustGroup(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ServerTrustGroup
public ServerTrustGroup(java.lang.String name, ServerTrustGroupArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ServerTrustGroup
public ServerTrustGroup(java.lang.String name, ServerTrustGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
groupMembers
public com.pulumi.core.Output<java.util.List<ServerInfoResponse>> groupMembers()
- Returns:
- Group members information for the server trust group.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Resource name.
-
trustScopes
public com.pulumi.core.Output<java.util.List<java.lang.String>> trustScopes()
- Returns:
- Trust scope of the server trust group.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- Resource type.
-
get
public static ServerTrustGroup get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-