azure-native.sql.ServerTrustGroup
Explore with Pulumi AI
A server trust group.
Uses Azure REST API version 2023-08-01. In version 2.x of the Azure Native provider, it used API version 2021-11-01.
Other available API versions: 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]
. See the version guide for details.
Create ServerTrustGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerTrustGroup(name: string, args: ServerTrustGroupArgs, opts?: CustomResourceOptions);
@overload
def ServerTrustGroup(resource_name: str,
args: ServerTrustGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerTrustGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_members: Optional[Sequence[ServerInfoArgs]] = None,
location_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
trust_scopes: Optional[Sequence[Union[str, TrustScope]]] = None,
server_trust_group_name: Optional[str] = None)
func NewServerTrustGroup(ctx *Context, name string, args ServerTrustGroupArgs, opts ...ResourceOption) (*ServerTrustGroup, error)
public ServerTrustGroup(string name, ServerTrustGroupArgs args, CustomResourceOptions? opts = null)
public ServerTrustGroup(String name, ServerTrustGroupArgs args)
public ServerTrustGroup(String name, ServerTrustGroupArgs args, CustomResourceOptions options)
type: azure-native:sql:ServerTrustGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ServerTrustGroupArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ServerTrustGroupArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ServerTrustGroupArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ServerTrustGroupArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ServerTrustGroupArgs - 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 serverTrustGroupResource = new AzureNative.Sql.ServerTrustGroup("serverTrustGroupResource", new()
{
GroupMembers = new[]
{
new AzureNative.Sql.Inputs.ServerInfoArgs
{
ServerId = "string",
},
},
LocationName = "string",
ResourceGroupName = "string",
TrustScopes = new[]
{
"string",
},
ServerTrustGroupName = "string",
});
example, err := sql.NewServerTrustGroup(ctx, "serverTrustGroupResource", &sql.ServerTrustGroupArgs{
GroupMembers: sql.ServerInfoArray{
&sql.ServerInfoArgs{
ServerId: pulumi.String("string"),
},
},
LocationName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
TrustScopes: pulumi.StringArray{
pulumi.String("string"),
},
ServerTrustGroupName: pulumi.String("string"),
})
var serverTrustGroupResource = new ServerTrustGroup("serverTrustGroupResource", ServerTrustGroupArgs.builder()
.groupMembers(ServerInfoArgs.builder()
.serverId("string")
.build())
.locationName("string")
.resourceGroupName("string")
.trustScopes("string")
.serverTrustGroupName("string")
.build());
server_trust_group_resource = azure_native.sql.ServerTrustGroup("serverTrustGroupResource",
group_members=[{
"server_id": "string",
}],
location_name="string",
resource_group_name="string",
trust_scopes=["string"],
server_trust_group_name="string")
const serverTrustGroupResource = new azure_native.sql.ServerTrustGroup("serverTrustGroupResource", {
groupMembers: [{
serverId: "string",
}],
locationName: "string",
resourceGroupName: "string",
trustScopes: ["string"],
serverTrustGroupName: "string",
});
type: azure-native:sql:ServerTrustGroup
properties:
groupMembers:
- serverId: string
locationName: string
resourceGroupName: string
serverTrustGroupName: string
trustScopes:
- string
ServerTrustGroup 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 ServerTrustGroup resource accepts the following input properties:
- Group
Members This property is required. List<Pulumi.Azure Native. Sql. Inputs. Server Info> - Group members information for the server trust group.
- Location
Name This property is required. Changes to this property will trigger replacement.
- The name of the region where the resource is located.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Trust
Scopes This property is required. List<Union<string, Pulumi.Azure Native. Sql. Trust Scope>> - Trust scope of the server trust group.
- Server
Trust Group Name Changes to this property will trigger replacement.
- The name of the server trust group.
- Group
Members This property is required. []ServerInfo Args - Group members information for the server trust group.
- Location
Name This property is required. Changes to this property will trigger replacement.
- The name of the region where the resource is located.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Trust
Scopes This property is required. []string - Trust scope of the server trust group.
- Server
Trust Group Name Changes to this property will trigger replacement.
- The name of the server trust group.
- group
Members This property is required. List<ServerInfo> - Group members information for the server trust group.
- location
Name This property is required. Changes to this property will trigger replacement.
- The name of the region where the resource is located.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- trust
Scopes This property is required. List<Either<String,TrustScope>> - Trust scope of the server trust group.
- server
Trust Group Name Changes to this property will trigger replacement.
- The name of the server trust group.
- group
Members This property is required. ServerInfo[] - Group members information for the server trust group.
- location
Name This property is required. Changes to this property will trigger replacement.
- The name of the region where the resource is located.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- trust
Scopes This property is required. (string | TrustScope)[] - Trust scope of the server trust group.
- server
Trust Group Name Changes to this property will trigger replacement.
- The name of the server trust group.
- group_
members This property is required. Sequence[ServerInfo Args] - Group members information for the server trust group.
- location_
name This property is required. Changes to this property will trigger replacement.
- The name of the region where the resource is located.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- trust_
scopes This property is required. Sequence[Union[str, TrustScope]] - Trust scope of the server trust group.
- server_
trust_ group_ name Changes to this property will trigger replacement.
- The name of the server trust group.
- group
Members This property is required. List<Property Map> - Group members information for the server trust group.
- location
Name This property is required. Changes to this property will trigger replacement.
- The name of the region where the resource is located.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- trust
Scopes This property is required. List<String | "GlobalTransactions" | "Service Broker"> - Trust scope of the server trust group.
- server
Trust Group Name Changes to this property will trigger replacement.
- The name of the server trust group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerTrustGroup resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- type string
- Resource type.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- type str
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
Supporting Types
ServerInfo, ServerInfoArgs
- Server
Id This property is required. string - Server Id.
- Server
Id This property is required. string - Server Id.
- server
Id This property is required. String - Server Id.
- server
Id This property is required. string - Server Id.
- server_
id This property is required. str - Server Id.
- server
Id This property is required. String - Server Id.
ServerInfoResponse, ServerInfoResponseArgs
- Server
Id This property is required. string - Server Id.
- Server
Id This property is required. string - Server Id.
- server
Id This property is required. String - Server Id.
- server
Id This property is required. string - Server Id.
- server_
id This property is required. str - Server Id.
- server
Id This property is required. String - Server Id.
TrustScope, TrustScopeArgs
- Global
Transactions - GlobalTransactions
- Service
Broker - ServiceBroker
- Trust
Scope Global Transactions - GlobalTransactions
- Trust
Scope Service Broker - ServiceBroker
- Global
Transactions - GlobalTransactions
- Service
Broker - ServiceBroker
- Global
Transactions - GlobalTransactions
- Service
Broker - ServiceBroker
- GLOBAL_TRANSACTIONS
- GlobalTransactions
- SERVICE_BROKER
- ServiceBroker
- "Global
Transactions" - GlobalTransactions
- "Service
Broker" - ServiceBroker
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0