diff --git a/provider/cmd/pulumi-resource-mssql/schema.json b/provider/cmd/pulumi-resource-mssql/schema.json index cec7971..be2971f 100644 --- a/provider/cmd/pulumi-resource-mssql/schema.json +++ b/provider/cmd/pulumi-resource-mssql/schema.json @@ -29,7 +29,7 @@ "go": { "generateExtraInputTypes": true, "generateResourceContainerTypes": true, - "importBasePath": "github.com/pulumi/pulumi-mssql/sdk/go/mssql" + "importBasePath": "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" }, "java": { "basePackage": "com.pulumiverse", @@ -539,7 +539,7 @@ }, "resources": { "mssql:index/azureadServicePrincipal:AzureadServicePrincipal": { - "description": "Managed database-level user mapped to Azure AD identity (service principal or managed identity).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleServicePrincipal = azuread.getServicePrincipal({\n displayName: \"test-application\",\n});\nconst exampleAzureadServicePrincipal = new mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n clientId: exampleServicePrincipal.then(exampleServicePrincipal =\u003e exampleServicePrincipal.applicationId),\n});\nexport const userId = exampleAzureadServicePrincipal.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_service_principal = azuread.get_service_principal(display_name=\"test-application\")\nexample_azuread_service_principal = mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\",\n name=\"example\",\n database_id=example_database.id,\n client_id=example_service_principal.application_id)\npulumi.export(\"userId\", example_azuread_service_principal.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleServicePrincipal = AzureAD.GetServicePrincipal.Invoke(new()\n {\n DisplayName = \"test-application\",\n });\n\n var exampleAzureadServicePrincipal = new Mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n ClientId = exampleServicePrincipal.Apply(getServicePrincipalResult =\u003e getServicePrincipalResult.ApplicationId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadServicePrincipal.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"test-application\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadServicePrincipal, err := mssql.NewAzureadServicePrincipal(ctx, \"exampleAzureadServicePrincipal\", \u0026mssql.AzureadServicePrincipalArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tClientId: *pulumi.String(exampleServicePrincipal.ApplicationId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadServicePrincipal.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalArgs;\nimport com.pulumi.mssql.AzureadServicePrincipal;\nimport com.pulumi.mssql.AzureadServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleServicePrincipal = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .displayName(\"test-application\")\n .build());\n\n var exampleAzureadServicePrincipal = new AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", AzureadServicePrincipalArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .clientId(exampleServicePrincipal.applyValue(getServicePrincipalResult -\u003e getServicePrincipalResult.applicationId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadServicePrincipal.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadServicePrincipal:\n type: mssql:AzureadServicePrincipal\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n clientId: ${exampleServicePrincipal.applicationId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleServicePrincipal:\n fn::invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n displayName: test-application\noutputs:\n userId: ${exampleAzureadServicePrincipal.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadServicePrincipal:AzureadServicePrincipal example '7/5'\n```\n\n ", + "description": "Managed database-level user mapped to Azure AD identity (service principal or managed identity).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleServicePrincipal = azuread.getServicePrincipal({\n displayName: \"test-application\",\n});\nconst exampleAzureadServicePrincipal = new mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n clientId: exampleServicePrincipal.then(exampleServicePrincipal =\u003e exampleServicePrincipal.applicationId),\n});\nexport const userId = exampleAzureadServicePrincipal.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_service_principal = azuread.get_service_principal(display_name=\"test-application\")\nexample_azuread_service_principal = mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\",\n name=\"example\",\n database_id=example_database.id,\n client_id=example_service_principal.application_id)\npulumi.export(\"userId\", example_azuread_service_principal.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleServicePrincipal = AzureAD.GetServicePrincipal.Invoke(new()\n {\n DisplayName = \"test-application\",\n });\n\n var exampleAzureadServicePrincipal = new Mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n ClientId = exampleServicePrincipal.Apply(getServicePrincipalResult =\u003e getServicePrincipalResult.ApplicationId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadServicePrincipal.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"test-application\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadServicePrincipal, err := mssql.NewAzureadServicePrincipal(ctx, \"exampleAzureadServicePrincipal\", \u0026mssql.AzureadServicePrincipalArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tClientId: *pulumi.String(exampleServicePrincipal.ApplicationId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadServicePrincipal.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalArgs;\nimport com.pulumi.mssql.AzureadServicePrincipal;\nimport com.pulumi.mssql.AzureadServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleServicePrincipal = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .displayName(\"test-application\")\n .build());\n\n var exampleAzureadServicePrincipal = new AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", AzureadServicePrincipalArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .clientId(exampleServicePrincipal.applyValue(getServicePrincipalResult -\u003e getServicePrincipalResult.applicationId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadServicePrincipal.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadServicePrincipal:\n type: mssql:AzureadServicePrincipal\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n clientId: ${exampleServicePrincipal.applicationId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleServicePrincipal:\n fn::invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n displayName: test-application\noutputs:\n userId: ${exampleAzureadServicePrincipal.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadServicePrincipal:AzureadServicePrincipal example '7/5'\n```\n\n ", "properties": { "clientId": { "type": "string", @@ -598,7 +598,7 @@ } }, "mssql:index/azureadUser:AzureadUser": { - "description": "Managed database-level user mapped to Azure AD identity (user or group).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"user@example.com\",\n});\nconst exampleAzureadUser = new mssql.AzureadUser(\"exampleAzureadUser\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n userObjectId: exampleUser.then(exampleUser =\u003e exampleUser.objectId),\n});\nexport const userId = exampleAzureadUser.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_user = azuread.get_user(user_principal_name=\"user@example.com\")\nexample_azuread_user = mssql.AzureadUser(\"exampleAzureadUser\",\n name=\"example\",\n database_id=example_database.id,\n user_object_id=example_user.object_id)\npulumi.export(\"userId\", example_azuread_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleUser = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"user@example.com\",\n });\n\n var exampleAzureadUser = new Mssql.AzureadUser(\"exampleAzureadUser\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n UserObjectId = exampleUser.Apply(getUserResult =\u003e getUserResult.ObjectId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"user@example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadUser, err := mssql.NewAzureadUser(ctx, \"exampleAzureadUser\", \u0026mssql.AzureadUserArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tUserObjectId: *pulumi.String(exampleUser.ObjectId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport com.pulumi.mssql.AzureadUser;\nimport com.pulumi.mssql.AzureadUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleUser = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"user@example.com\")\n .build());\n\n var exampleAzureadUser = new AzureadUser(\"exampleAzureadUser\", AzureadUserArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .userObjectId(exampleUser.applyValue(getUserResult -\u003e getUserResult.objectId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadUser:\n type: mssql:AzureadUser\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n userObjectId: ${exampleUser.objectId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleUser:\n fn::invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: user@example.com\noutputs:\n userId: ${exampleAzureadUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadUser:AzureadUser example '7/5'\n```\n\n ", + "description": "Managed database-level user mapped to Azure AD identity (user or group).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"user@example.com\",\n});\nconst exampleAzureadUser = new mssql.AzureadUser(\"exampleAzureadUser\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n userObjectId: exampleUser.then(exampleUser =\u003e exampleUser.objectId),\n});\nexport const userId = exampleAzureadUser.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_user = azuread.get_user(user_principal_name=\"user@example.com\")\nexample_azuread_user = mssql.AzureadUser(\"exampleAzureadUser\",\n name=\"example\",\n database_id=example_database.id,\n user_object_id=example_user.object_id)\npulumi.export(\"userId\", example_azuread_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleUser = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"user@example.com\",\n });\n\n var exampleAzureadUser = new Mssql.AzureadUser(\"exampleAzureadUser\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n UserObjectId = exampleUser.Apply(getUserResult =\u003e getUserResult.ObjectId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"user@example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadUser, err := mssql.NewAzureadUser(ctx, \"exampleAzureadUser\", \u0026mssql.AzureadUserArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tUserObjectId: *pulumi.String(exampleUser.ObjectId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport com.pulumi.mssql.AzureadUser;\nimport com.pulumi.mssql.AzureadUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleUser = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"user@example.com\")\n .build());\n\n var exampleAzureadUser = new AzureadUser(\"exampleAzureadUser\", AzureadUserArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .userObjectId(exampleUser.applyValue(getUserResult -\u003e getUserResult.objectId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadUser:\n type: mssql:AzureadUser\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n userObjectId: ${exampleUser.objectId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleUser:\n fn::invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: user@example.com\noutputs:\n userId: ${exampleAzureadUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadUser:AzureadUser example '7/5'\n```\n\n ", "properties": { "databaseId": { "type": "string", @@ -657,7 +657,7 @@ } }, "mssql:index/database:Database": { - "description": "Manages single database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst example = new mssql.Database(\"example\", {\n collation: \"SQL_Latin1_General_CP1_CS_AS\",\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nexample = mssql.Database(\"example\",\n collation=\"SQL_Latin1_General_CP1_CS_AS\",\n name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Mssql.Database(\"example\", new()\n {\n Collation = \"SQL_Latin1_General_CP1_CS_AS\",\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mssql.NewDatabase(ctx, \"example\", \u0026mssql.DatabaseArgs{\n\t\t\tCollation: pulumi.String(\"SQL_Latin1_General_CP1_CS_AS\"),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.Database;\nimport com.pulumi.mssql.DatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Database(\"example\", DatabaseArgs.builder() \n .collation(\"SQL_Latin1_General_CP1_CS_AS\")\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: mssql:Database\n properties:\n collation: SQL_Latin1_General_CP1_CS_AS\n name: example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using database ID - can be retrieved using `SELECT DB_ID('\u003cdb_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/database:Database example 12\n```\n\n ", + "description": "Manages single database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst example = new mssql.Database(\"example\", {\n collation: \"SQL_Latin1_General_CP1_CS_AS\",\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nexample = mssql.Database(\"example\",\n collation=\"SQL_Latin1_General_CP1_CS_AS\",\n name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Mssql.Database(\"example\", new()\n {\n Collation = \"SQL_Latin1_General_CP1_CS_AS\",\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mssql.NewDatabase(ctx, \"example\", \u0026mssql.DatabaseArgs{\n\t\t\tCollation: pulumi.String(\"SQL_Latin1_General_CP1_CS_AS\"),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.Database;\nimport com.pulumi.mssql.DatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Database(\"example\", DatabaseArgs.builder() \n .collation(\"SQL_Latin1_General_CP1_CS_AS\")\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: mssql:Database\n properties:\n collation: SQL_Latin1_General_CP1_CS_AS\n name: example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using database ID - can be retrieved using `SELECT DB_ID('\u003cdb_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/database:Database example 12\n```\n\n ", "properties": { "collation": { "type": "string", @@ -701,7 +701,7 @@ } }, "mssql:index/databasePermission:DatabasePermission": { - "description": "Grants database-level permission.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst deleteToExample = new mssql.DatabasePermission(\"deleteToExample\", {\n principalId: exampleSqlUser.then(exampleSqlUser =\u003e exampleSqlUser.id),\n permission: \"DELETE\",\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\ndelete_to_example = mssql.DatabasePermission(\"deleteToExample\",\n principal_id=example_sql_user.id,\n permission=\"DELETE\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var deleteToExample = new Mssql.DatabasePermission(\"deleteToExample\", new()\n {\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n Permission = \"DELETE\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabasePermission(ctx, \"deleteToExample\", \u0026mssql.DatabasePermissionArgs{\n\t\t\tPrincipalId: *pulumi.String(exampleSqlUser.Id),\n\t\t\tPermission: pulumi.String(\"DELETE\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabasePermission;\nimport com.pulumi.mssql.DatabasePermissionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var deleteToExample = new DatabasePermission(\"deleteToExample\", DatabasePermissionArgs.builder() \n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .permission(\"DELETE\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n deleteToExample:\n type: mssql:DatabasePermission\n properties:\n principalId: ${exampleSqlUser.id}\n permission: DELETE\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cprincipal_id\u003e/\u003cpermission\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003cprincipal_name\u003e'), '/DELETE')`\n\n```sh\n $ pulumi import mssql:index/databasePermission:DatabasePermission example '7/5/DELETE'\n```\n\n ", + "description": "Grants database-level permission.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst deleteToExample = new mssql.DatabasePermission(\"deleteToExample\", {\n principalId: exampleSqlUser.then(exampleSqlUser =\u003e exampleSqlUser.id),\n permission: \"DELETE\",\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\ndelete_to_example = mssql.DatabasePermission(\"deleteToExample\",\n principal_id=example_sql_user.id,\n permission=\"DELETE\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var deleteToExample = new Mssql.DatabasePermission(\"deleteToExample\", new()\n {\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n Permission = \"DELETE\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabasePermission(ctx, \"deleteToExample\", \u0026mssql.DatabasePermissionArgs{\n\t\t\tPrincipalId: *pulumi.String(exampleSqlUser.Id),\n\t\t\tPermission: pulumi.String(\"DELETE\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabasePermission;\nimport com.pulumi.mssql.DatabasePermissionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var deleteToExample = new DatabasePermission(\"deleteToExample\", DatabasePermissionArgs.builder() \n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .permission(\"DELETE\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n deleteToExample:\n type: mssql:DatabasePermission\n properties:\n principalId: ${exampleSqlUser.id}\n permission: DELETE\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cprincipal_id\u003e/\u003cpermission\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003cprincipal_name\u003e'), '/DELETE')`\n\n```sh\n $ pulumi import mssql:index/databasePermission:DatabasePermission example '7/5/DELETE'\n```\n\n ", "properties": { "permission": { "type": "string", @@ -759,7 +759,7 @@ } }, "mssql:index/databaseRole:DatabaseRole": { - "description": "Manages database-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/databaseRole:DatabaseRole example '7/5'\n```\n\n ", + "description": "Manages database-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/databaseRole:DatabaseRole example '7/5'\n```\n\n ", "properties": { "databaseId": { "type": "string", @@ -816,7 +816,7 @@ } }, "mssql:index/databaseRoleMember:DatabaseRoleMember": { - "description": "Manages database role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst member = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"member_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\nconst exampleDatabaseRoleMember = new mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", {\n roleId: exampleDatabaseRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nmember = mssql.get_sql_user(name=\"member_user\",\n database_id=example_database.id)\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\nexample_database_role_member = mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\",\n role_id=example_database_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var member = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"member_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n var exampleDatabaseRoleMember = new Mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", new()\n {\n RoleId = exampleDatabaseRole.Id,\n MemberId = member.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmember, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"member_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDatabaseRole, err := mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRoleMember(ctx, \"exampleDatabaseRoleMember\", \u0026mssql.DatabaseRoleMemberArgs{\n\t\t\tRoleId: exampleDatabaseRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport com.pulumi.mssql.DatabaseRoleMember;\nimport com.pulumi.mssql.DatabaseRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var member = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"member_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n var exampleDatabaseRoleMember = new DatabaseRoleMember(\"exampleDatabaseRoleMember\", DatabaseRoleMemberArgs.builder() \n .roleId(exampleDatabaseRole.id())\n .memberId(member.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\n exampleDatabaseRoleMember:\n type: mssql:DatabaseRoleMember\n properties:\n roleId: ${exampleDatabaseRole.id}\n memberId: ${member.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n member:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: member_user\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'), '/', DATABASE_PRINCIPAL_ID('\u003cmember_name'))`\n\n```sh\n $ pulumi import mssql:index/databaseRoleMember:DatabaseRoleMember example '7/5/9'\n```\n\n ", + "description": "Manages database role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst member = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"member_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\nconst exampleDatabaseRoleMember = new mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", {\n roleId: exampleDatabaseRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nmember = mssql.get_sql_user(name=\"member_user\",\n database_id=example_database.id)\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\nexample_database_role_member = mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\",\n role_id=example_database_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var member = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"member_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n var exampleDatabaseRoleMember = new Mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", new()\n {\n RoleId = exampleDatabaseRole.Id,\n MemberId = member.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmember, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"member_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDatabaseRole, err := mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRoleMember(ctx, \"exampleDatabaseRoleMember\", \u0026mssql.DatabaseRoleMemberArgs{\n\t\t\tRoleId: exampleDatabaseRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport com.pulumi.mssql.DatabaseRoleMember;\nimport com.pulumi.mssql.DatabaseRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var member = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"member_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n var exampleDatabaseRoleMember = new DatabaseRoleMember(\"exampleDatabaseRoleMember\", DatabaseRoleMemberArgs.builder() \n .roleId(exampleDatabaseRole.id())\n .memberId(member.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\n exampleDatabaseRoleMember:\n type: mssql:DatabaseRoleMember\n properties:\n roleId: ${exampleDatabaseRole.id}\n memberId: ${member.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n member:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: member_user\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'), '/', DATABASE_PRINCIPAL_ID('\u003cmember_name'))`\n\n```sh\n $ pulumi import mssql:index/databaseRoleMember:DatabaseRoleMember example '7/5/9'\n```\n\n ", "properties": { "memberId": { "type": "string", @@ -861,7 +861,7 @@ } }, "mssql:index/schema:Schema": { - "description": "Manages single DB schema.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleSchema = new mssql.Schema(\"exampleSchema\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_schema = mssql.Schema(\"exampleSchema\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleSchema = new Mssql.Schema(\"exampleSchema\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewSchema(ctx, \"exampleSchema\", \u0026mssql.SchemaArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.Schema;\nimport com.pulumi.mssql.SchemaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleSchema = new Schema(\"exampleSchema\", SchemaArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSchema:\n type: mssql:Schema\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cschema_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', SCHEMA_ID('\u003cschema_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/schema:Schema example '7/5'\n```\n\n ", + "description": "Manages single DB schema.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleSchema = new mssql.Schema(\"exampleSchema\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_schema = mssql.Schema(\"exampleSchema\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleSchema = new Mssql.Schema(\"exampleSchema\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewSchema(ctx, \"exampleSchema\", \u0026mssql.SchemaArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.Schema;\nimport com.pulumi.mssql.SchemaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleSchema = new Schema(\"exampleSchema\", SchemaArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSchema:\n type: mssql:Schema\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cschema_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', SCHEMA_ID('\u003cschema_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/schema:Schema example '7/5'\n```\n\n ", "properties": { "databaseId": { "type": "string", @@ -918,7 +918,7 @@ } }, "mssql:index/schemaPermission:SchemaPermission": { - "description": "Grants database-level permission.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleSchema = exampleDatabase.then(exampleDatabase =\u003e mssql.getSchema({\n name: \"example_schema\",\n databaseId: exampleDatabase.id,\n}));\nconst deleteToExample = new mssql.SchemaPermission(\"deleteToExample\", {\n schemaId: exampleSchema.then(exampleSchema =\u003e exampleSchema.id),\n principalId: exampleSqlUser.then(exampleSqlUser =\u003e exampleSqlUser.id),\n permission: \"DELETE\",\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nexample_schema = mssql.get_schema(name=\"example_schema\",\n database_id=example_database.id)\ndelete_to_example = mssql.SchemaPermission(\"deleteToExample\",\n schema_id=example_schema.id,\n principal_id=example_sql_user.id,\n permission=\"DELETE\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleSchema = Mssql.GetSchema.Invoke(new()\n {\n Name = \"example_schema\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var deleteToExample = new Mssql.SchemaPermission(\"deleteToExample\", new()\n {\n SchemaId = exampleSchema.Apply(getSchemaResult =\u003e getSchemaResult.Id),\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n Permission = \"DELETE\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSchema, err := mssql.LookupSchema(ctx, \u0026mssql.LookupSchemaArgs{\n\t\t\tName: pulumi.StringRef(\"example_schema\"),\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewSchemaPermission(ctx, \"deleteToExample\", \u0026mssql.SchemaPermissionArgs{\n\t\t\tSchemaId: *pulumi.String(exampleSchema.Id),\n\t\t\tPrincipalId: *pulumi.String(exampleSqlUser.Id),\n\t\t\tPermission: pulumi.String(\"DELETE\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.inputs.GetSchemaArgs;\nimport com.pulumi.mssql.SchemaPermission;\nimport com.pulumi.mssql.SchemaPermissionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleSchema = MssqlFunctions.getSchema(GetSchemaArgs.builder()\n .name(\"example_schema\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var deleteToExample = new SchemaPermission(\"deleteToExample\", SchemaPermissionArgs.builder() \n .schemaId(exampleSchema.applyValue(getSchemaResult -\u003e getSchemaResult.id()))\n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .permission(\"DELETE\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n deleteToExample:\n type: mssql:SchemaPermission\n properties:\n schemaId: ${exampleSchema.id}\n principalId: ${exampleSqlUser.id}\n permission: DELETE\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n exampleSchema:\n fn::invoke:\n Function: mssql:getSchema\n Arguments:\n name: example_schema\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cschema_id\u003e/\u003cprincipal_id\u003e/\u003cpermission\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', SCHEMA_ID('\u003cschema_name\u003e'), '/', DATABASE_PRINCIPAL_ID('\u003cprincipal_name\u003e'), '/DELETE')`\n\n```sh\n $ pulumi import mssql:index/schemaPermission:SchemaPermission example '7/5/8/DELETE'\n```\n\n ", + "description": "Grants database-level permission.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleSchema = exampleDatabase.then(exampleDatabase =\u003e mssql.getSchema({\n name: \"example_schema\",\n databaseId: exampleDatabase.id,\n}));\nconst deleteToExample = new mssql.SchemaPermission(\"deleteToExample\", {\n schemaId: exampleSchema.then(exampleSchema =\u003e exampleSchema.id),\n principalId: exampleSqlUser.then(exampleSqlUser =\u003e exampleSqlUser.id),\n permission: \"DELETE\",\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nexample_schema = mssql.get_schema(name=\"example_schema\",\n database_id=example_database.id)\ndelete_to_example = mssql.SchemaPermission(\"deleteToExample\",\n schema_id=example_schema.id,\n principal_id=example_sql_user.id,\n permission=\"DELETE\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleSchema = Mssql.GetSchema.Invoke(new()\n {\n Name = \"example_schema\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var deleteToExample = new Mssql.SchemaPermission(\"deleteToExample\", new()\n {\n SchemaId = exampleSchema.Apply(getSchemaResult =\u003e getSchemaResult.Id),\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n Permission = \"DELETE\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSchema, err := mssql.LookupSchema(ctx, \u0026mssql.LookupSchemaArgs{\n\t\t\tName: pulumi.StringRef(\"example_schema\"),\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewSchemaPermission(ctx, \"deleteToExample\", \u0026mssql.SchemaPermissionArgs{\n\t\t\tSchemaId: *pulumi.String(exampleSchema.Id),\n\t\t\tPrincipalId: *pulumi.String(exampleSqlUser.Id),\n\t\t\tPermission: pulumi.String(\"DELETE\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.inputs.GetSchemaArgs;\nimport com.pulumi.mssql.SchemaPermission;\nimport com.pulumi.mssql.SchemaPermissionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleSchema = MssqlFunctions.getSchema(GetSchemaArgs.builder()\n .name(\"example_schema\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var deleteToExample = new SchemaPermission(\"deleteToExample\", SchemaPermissionArgs.builder() \n .schemaId(exampleSchema.applyValue(getSchemaResult -\u003e getSchemaResult.id()))\n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .permission(\"DELETE\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n deleteToExample:\n type: mssql:SchemaPermission\n properties:\n schemaId: ${exampleSchema.id}\n principalId: ${exampleSqlUser.id}\n permission: DELETE\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n exampleSchema:\n fn::invoke:\n Function: mssql:getSchema\n Arguments:\n name: example_schema\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cschema_id\u003e/\u003cprincipal_id\u003e/\u003cpermission\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', SCHEMA_ID('\u003cschema_name\u003e'), '/', DATABASE_PRINCIPAL_ID('\u003cprincipal_name\u003e'), '/DELETE')`\n\n```sh\n $ pulumi import mssql:index/schemaPermission:SchemaPermission example '7/5/8/DELETE'\n```\n\n ", "properties": { "permission": { "type": "string", @@ -990,7 +990,7 @@ } }, "mssql:index/script:Script": { - "description": "Allows execution of arbitrary SQL scripts to check state and apply desired state. \n\n\u003e **Note** This resource is meant to be an escape hatch for all cases not supported by the provider's resources. Whenever possible, use dedicated resources, which offer better plan, validation and error reporting.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst test = mssql.getDatabase({\n name: \"test\",\n});\nconst cdc = new mssql.Script(\"cdc\", {\n databaseId: test.then(test =\u003e test.id),\n readScript: test.then(test =\u003e `SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=${test.id}`),\n deleteScript: test.then(test =\u003e `ALTER DATABASE [${test.name}] SET CHANGE_TRACKING = OFF`),\n updateScript: Promise.all([test, test]).then(([test, test1]) =\u003e `IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=${test.id}) = 0\n ALTER DATABASE [${test1.name}] SET CHANGE_TRACKING = ON\n`),\n state: {\n is_enabled: \"1\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\ntest = mssql.get_database(name=\"test\")\ncdc = mssql.Script(\"cdc\",\n database_id=test.id,\n read_script=f\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id={test.id}\",\n delete_script=f\"ALTER DATABASE [{test.name}] SET CHANGE_TRACKING = OFF\",\n update_script=f\"\"\"IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id={test.id}) = 0\n ALTER DATABASE [{test.name}] SET CHANGE_TRACKING = ON\n\"\"\",\n state={\n \"is_enabled\": \"1\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"test\",\n });\n\n var cdc = new Mssql.Script(\"cdc\", new()\n {\n DatabaseId = test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n ReadScript = $\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id={test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id)}\",\n DeleteScript = $\"ALTER DATABASE [{test.Apply(getDatabaseResult =\u003e getDatabaseResult.Name)}] SET CHANGE_TRACKING = OFF\",\n UpdateScript = Output.Tuple(test, test).Apply(values =\u003e\n {\n var test = values.Item1;\n var test1 = values.Item2;\n return @$\"IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id={test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id)}) = 0\n ALTER DATABASE [{test1.Name}] SET CHANGE_TRACKING = ON\n\";\n }),\n State = \n {\n { \"is_enabled\", \"1\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"test\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewScript(ctx, \"cdc\", \u0026mssql.ScriptArgs{\n\t\t\tDatabaseId: *pulumi.String(test.Id),\n\t\t\tReadScript: pulumi.String(fmt.Sprintf(\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=%v\", test.Id)),\n\t\t\tDeleteScript: pulumi.String(fmt.Sprintf(\"ALTER DATABASE [%v] SET CHANGE_TRACKING = OFF\", test.Name)),\n\t\t\tUpdateScript: pulumi.String(fmt.Sprintf(\"IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=%v) = 0\\n ALTER DATABASE [%v] SET CHANGE_TRACKING = ON\\n\", test.Id, test.Name)),\n\t\t\tState: pulumi.StringMap{\n\t\t\t\t\"is_enabled\": pulumi.String(\"1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.Script;\nimport com.pulumi.mssql.ScriptArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"test\")\n .build());\n\n var cdc = new Script(\"cdc\", ScriptArgs.builder() \n .databaseId(test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .readScript(String.format(\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=%s\", test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id())))\n .deleteScript(String.format(\"ALTER DATABASE [%s] SET CHANGE_TRACKING = OFF\", test.applyValue(getDatabaseResult -\u003e getDatabaseResult.name())))\n .updateScript(\"\"\"\nIF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=%s) = 0\n ALTER DATABASE [%s] SET CHANGE_TRACKING = ON\n\", test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()),test.applyValue(getDatabaseResult -\u003e getDatabaseResult.name())))\n .state(Map.of(\"is_enabled\", \"1\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cdc:\n type: mssql:Script\n properties:\n databaseId: ${test.id}\n readScript: SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=${test.id}\n deleteScript: ALTER DATABASE [${test.name}] SET CHANGE_TRACKING = OFF\n updateScript: |\n IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=${test.id}) = 0\n ALTER DATABASE [${test.name}] SET CHANGE_TRACKING = ON\n state:\n is_enabled: '1'\nvariables:\n test:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: test\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Allows execution of arbitrary SQL scripts to check state and apply desired state. \n\n\u003e **Note** This resource is meant to be an escape hatch for all cases not supported by the provider's resources. Whenever possible, use dedicated resources, which offer better plan, validation and error reporting.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst test = mssql.getDatabase({\n name: \"test\",\n});\nconst cdc = new mssql.Script(\"cdc\", {\n databaseId: test.then(test =\u003e test.id),\n readScript: test.then(test =\u003e `SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=${test.id}`),\n deleteScript: test.then(test =\u003e `ALTER DATABASE [${test.name}] SET CHANGE_TRACKING = OFF`),\n updateScript: Promise.all([test, test]).then(([test, test1]) =\u003e `IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=${test.id}) = 0\n ALTER DATABASE [${test1.name}] SET CHANGE_TRACKING = ON\n`),\n state: {\n is_enabled: \"1\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\ntest = mssql.get_database(name=\"test\")\ncdc = mssql.Script(\"cdc\",\n database_id=test.id,\n read_script=f\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id={test.id}\",\n delete_script=f\"ALTER DATABASE [{test.name}] SET CHANGE_TRACKING = OFF\",\n update_script=f\"\"\"IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id={test.id}) = 0\n ALTER DATABASE [{test.name}] SET CHANGE_TRACKING = ON\n\"\"\",\n state={\n \"is_enabled\": \"1\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"test\",\n });\n\n var cdc = new Mssql.Script(\"cdc\", new()\n {\n DatabaseId = test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n ReadScript = $\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id={test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id)}\",\n DeleteScript = $\"ALTER DATABASE [{test.Apply(getDatabaseResult =\u003e getDatabaseResult.Name)}] SET CHANGE_TRACKING = OFF\",\n UpdateScript = Output.Tuple(test, test).Apply(values =\u003e\n {\n var test = values.Item1;\n var test1 = values.Item2;\n return @$\"IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id={test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id)}) = 0\n ALTER DATABASE [{test1.Name}] SET CHANGE_TRACKING = ON\n\";\n }),\n State = \n {\n { \"is_enabled\", \"1\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"test\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewScript(ctx, \"cdc\", \u0026mssql.ScriptArgs{\n\t\t\tDatabaseId: *pulumi.String(test.Id),\n\t\t\tReadScript: pulumi.String(fmt.Sprintf(\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=%v\", test.Id)),\n\t\t\tDeleteScript: pulumi.String(fmt.Sprintf(\"ALTER DATABASE [%v] SET CHANGE_TRACKING = OFF\", test.Name)),\n\t\t\tUpdateScript: pulumi.String(fmt.Sprintf(\"IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=%v) = 0\\n ALTER DATABASE [%v] SET CHANGE_TRACKING = ON\\n\", test.Id, test.Name)),\n\t\t\tState: pulumi.StringMap{\n\t\t\t\t\"is_enabled\": pulumi.String(\"1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.Script;\nimport com.pulumi.mssql.ScriptArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"test\")\n .build());\n\n var cdc = new Script(\"cdc\", ScriptArgs.builder() \n .databaseId(test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .readScript(String.format(\"SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=%s\", test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id())))\n .deleteScript(String.format(\"ALTER DATABASE [%s] SET CHANGE_TRACKING = OFF\", test.applyValue(getDatabaseResult -\u003e getDatabaseResult.name())))\n .updateScript(\"\"\"\nIF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=%s) = 0\n ALTER DATABASE [%s] SET CHANGE_TRACKING = ON\n\", test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()),test.applyValue(getDatabaseResult -\u003e getDatabaseResult.name())))\n .state(Map.of(\"is_enabled\", \"1\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cdc:\n type: mssql:Script\n properties:\n databaseId: ${test.id}\n readScript: SELECT COUNT(*) AS [is_enabled] FROM sys.change_tracking_databases WHERE database_id=${test.id}\n deleteScript: ALTER DATABASE [${test.name}] SET CHANGE_TRACKING = OFF\n updateScript: |\n IF (SELECT COUNT(*) FROM sys.change_tracking_databases WHERE database_id=${test.id}) = 0\n ALTER DATABASE [${test.name}] SET CHANGE_TRACKING = ON\n state:\n is_enabled: '1'\nvariables:\n test:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: test\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "createScript": { "type": "string", @@ -1096,7 +1096,7 @@ } }, "mssql:index/serverPermission:ServerPermission": { - "description": "Grants server-level permission.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst example = mssql.getSqlLogin({\n name: \"example_login\",\n});\nconst connectToExample = new mssql.ServerPermission(\"connectToExample\", {\n principalId: example.then(example =\u003e example.principalId),\n permission: \"CONNECT SQL\",\n withGrantOption: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample = mssql.get_sql_login(name=\"example_login\")\nconnect_to_example = mssql.ServerPermission(\"connectToExample\",\n principal_id=example.principal_id,\n permission=\"CONNECT SQL\",\n with_grant_option=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"example_login\",\n });\n\n var connectToExample = new Mssql.ServerPermission(\"connectToExample\", new()\n {\n PrincipalId = example.Apply(getSqlLoginResult =\u003e getSqlLoginResult.PrincipalId),\n Permission = \"CONNECT SQL\",\n WithGrantOption = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"example_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerPermission(ctx, \"connectToExample\", \u0026mssql.ServerPermissionArgs{\n\t\t\tPrincipalId: *pulumi.String(example.PrincipalId),\n\t\t\tPermission: pulumi.String(\"CONNECT SQL\"),\n\t\t\tWithGrantOption: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.ServerPermission;\nimport com.pulumi.mssql.ServerPermissionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"example_login\")\n .build());\n\n var connectToExample = new ServerPermission(\"connectToExample\", ServerPermissionArgs.builder() \n .principalId(example.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.principalId()))\n .permission(\"CONNECT SQL\")\n .withGrantOption(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n connectToExample:\n type: mssql:ServerPermission\n properties:\n principalId: ${example.principalId}\n permission: CONNECT SQL\n withGrantOption: true\nvariables:\n example:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: example_login\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cprincipal_id\u003e/\u003cpermission\u003e\n\n```sh\n $ pulumi import mssql:index/serverPermission:ServerPermission example '7/CONNECT SQL'\n```\n\n ", + "description": "Grants server-level permission.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst example = mssql.getSqlLogin({\n name: \"example_login\",\n});\nconst connectToExample = new mssql.ServerPermission(\"connectToExample\", {\n principalId: example.then(example =\u003e example.principalId),\n permission: \"CONNECT SQL\",\n withGrantOption: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample = mssql.get_sql_login(name=\"example_login\")\nconnect_to_example = mssql.ServerPermission(\"connectToExample\",\n principal_id=example.principal_id,\n permission=\"CONNECT SQL\",\n with_grant_option=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"example_login\",\n });\n\n var connectToExample = new Mssql.ServerPermission(\"connectToExample\", new()\n {\n PrincipalId = example.Apply(getSqlLoginResult =\u003e getSqlLoginResult.PrincipalId),\n Permission = \"CONNECT SQL\",\n WithGrantOption = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"example_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerPermission(ctx, \"connectToExample\", \u0026mssql.ServerPermissionArgs{\n\t\t\tPrincipalId: *pulumi.String(example.PrincipalId),\n\t\t\tPermission: pulumi.String(\"CONNECT SQL\"),\n\t\t\tWithGrantOption: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.ServerPermission;\nimport com.pulumi.mssql.ServerPermissionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"example_login\")\n .build());\n\n var connectToExample = new ServerPermission(\"connectToExample\", ServerPermissionArgs.builder() \n .principalId(example.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.principalId()))\n .permission(\"CONNECT SQL\")\n .withGrantOption(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n connectToExample:\n type: mssql:ServerPermission\n properties:\n principalId: ${example.principalId}\n permission: CONNECT SQL\n withGrantOption: true\nvariables:\n example:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: example_login\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cprincipal_id\u003e/\u003cpermission\u003e\n\n```sh\n $ pulumi import mssql:index/serverPermission:ServerPermission example '7/CONNECT SQL'\n```\n\n ", "properties": { "permission": { "type": "string", @@ -1154,7 +1154,7 @@ } }, "mssql:index/serverRole:ServerRole": { - "description": "Manages server-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst owner = new mssql.ServerRole(\"owner\", {name: \"owner_role\"});\nconst example = new mssql.ServerRole(\"example\", {\n name: \"example\",\n ownerId: owner.id,\n});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nowner = mssql.ServerRole(\"owner\", name=\"owner_role\")\nexample = mssql.ServerRole(\"example\",\n name=\"example\",\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var owner = new Mssql.ServerRole(\"owner\", new()\n {\n Name = \"owner_role\",\n });\n\n var example = new Mssql.ServerRole(\"example\", new()\n {\n Name = \"example\",\n OwnerId = owner.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\towner, err := mssql.NewServerRole(ctx, \"owner\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"owner_role\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRole(ctx, \"example\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tOwnerId: owner.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var owner = new ServerRole(\"owner\", ServerRoleArgs.builder() \n .name(\"owner_role\")\n .build());\n\n var example = new ServerRole(\"example\", ServerRoleArgs.builder() \n .name(\"example\")\n .ownerId(owner.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n owner:\n type: mssql:ServerRole\n properties:\n name: owner_role\n example:\n type: mssql:ServerRole\n properties:\n name: example\n ownerId: ${owner.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e - can be retrieved using `SELECT [principal_id] FROM sys.server_principals WHERE [name]='\u003crole_name\u003e'`\n\n```sh\n $ pulumi import mssql:index/serverRole:ServerRole example 7\n```\n\n ", + "description": "Manages server-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst owner = new mssql.ServerRole(\"owner\", {name: \"owner_role\"});\nconst example = new mssql.ServerRole(\"example\", {\n name: \"example\",\n ownerId: owner.id,\n});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nowner = mssql.ServerRole(\"owner\", name=\"owner_role\")\nexample = mssql.ServerRole(\"example\",\n name=\"example\",\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var owner = new Mssql.ServerRole(\"owner\", new()\n {\n Name = \"owner_role\",\n });\n\n var example = new Mssql.ServerRole(\"example\", new()\n {\n Name = \"example\",\n OwnerId = owner.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\towner, err := mssql.NewServerRole(ctx, \"owner\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"owner_role\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRole(ctx, \"example\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tOwnerId: owner.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var owner = new ServerRole(\"owner\", ServerRoleArgs.builder() \n .name(\"owner_role\")\n .build());\n\n var example = new ServerRole(\"example\", ServerRoleArgs.builder() \n .name(\"example\")\n .ownerId(owner.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n owner:\n type: mssql:ServerRole\n properties:\n name: owner_role\n example:\n type: mssql:ServerRole\n properties:\n name: example\n ownerId: ${owner.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e - can be retrieved using `SELECT [principal_id] FROM sys.server_principals WHERE [name]='\u003crole_name\u003e'`\n\n```sh\n $ pulumi import mssql:index/serverRole:ServerRole example 7\n```\n\n ", "properties": { "name": { "type": "string", @@ -1198,7 +1198,7 @@ } }, "mssql:index/serverRoleMember:ServerRoleMember": { - "description": "Manages server role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst member = mssql.getSqlLogin({\n name: \"member_login\",\n});\nconst exampleServerRole = new mssql.ServerRole(\"exampleServerRole\", {name: \"example\"});\nconst exampleServerRoleMember = new mssql.ServerRoleMember(\"exampleServerRoleMember\", {\n roleId: exampleServerRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nmember = mssql.get_sql_login(name=\"member_login\")\nexample_server_role = mssql.ServerRole(\"exampleServerRole\", name=\"example\")\nexample_server_role_member = mssql.ServerRoleMember(\"exampleServerRoleMember\",\n role_id=example_server_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var member = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"member_login\",\n });\n\n var exampleServerRole = new Mssql.ServerRole(\"exampleServerRole\", new()\n {\n Name = \"example\",\n });\n\n var exampleServerRoleMember = new Mssql.ServerRoleMember(\"exampleServerRoleMember\", new()\n {\n RoleId = exampleServerRole.Id,\n MemberId = member.Apply(getSqlLoginResult =\u003e getSqlLoginResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmember, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"member_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServerRole, err := mssql.NewServerRole(ctx, \"exampleServerRole\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRoleMember(ctx, \"exampleServerRoleMember\", \u0026mssql.ServerRoleMemberArgs{\n\t\t\tRoleId: exampleServerRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleArgs;\nimport com.pulumi.mssql.ServerRoleMember;\nimport com.pulumi.mssql.ServerRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var member = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"member_login\")\n .build());\n\n var exampleServerRole = new ServerRole(\"exampleServerRole\", ServerRoleArgs.builder() \n .name(\"example\")\n .build());\n\n var exampleServerRoleMember = new ServerRoleMember(\"exampleServerRoleMember\", ServerRoleMemberArgs.builder() \n .roleId(exampleServerRole.id())\n .memberId(member.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServerRole:\n type: mssql:ServerRole\n properties:\n name: example\n exampleServerRoleMember:\n type: mssql:ServerRoleMember\n properties:\n roleId: ${exampleServerRole.id}\n memberId: ${member.id}\nvariables:\n member:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: member_login\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e/\u003cmember_id\u003e - can be retrieved using `sys.server_principals` view\n\n```sh\n $ pulumi import mssql:index/serverRoleMember:ServerRoleMember example '7/5'\n```\n\n ", + "description": "Manages server role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst member = mssql.getSqlLogin({\n name: \"member_login\",\n});\nconst exampleServerRole = new mssql.ServerRole(\"exampleServerRole\", {name: \"example\"});\nconst exampleServerRoleMember = new mssql.ServerRoleMember(\"exampleServerRoleMember\", {\n roleId: exampleServerRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nmember = mssql.get_sql_login(name=\"member_login\")\nexample_server_role = mssql.ServerRole(\"exampleServerRole\", name=\"example\")\nexample_server_role_member = mssql.ServerRoleMember(\"exampleServerRoleMember\",\n role_id=example_server_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var member = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"member_login\",\n });\n\n var exampleServerRole = new Mssql.ServerRole(\"exampleServerRole\", new()\n {\n Name = \"example\",\n });\n\n var exampleServerRoleMember = new Mssql.ServerRoleMember(\"exampleServerRoleMember\", new()\n {\n RoleId = exampleServerRole.Id,\n MemberId = member.Apply(getSqlLoginResult =\u003e getSqlLoginResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmember, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"member_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServerRole, err := mssql.NewServerRole(ctx, \"exampleServerRole\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRoleMember(ctx, \"exampleServerRoleMember\", \u0026mssql.ServerRoleMemberArgs{\n\t\t\tRoleId: exampleServerRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleArgs;\nimport com.pulumi.mssql.ServerRoleMember;\nimport com.pulumi.mssql.ServerRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var member = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"member_login\")\n .build());\n\n var exampleServerRole = new ServerRole(\"exampleServerRole\", ServerRoleArgs.builder() \n .name(\"example\")\n .build());\n\n var exampleServerRoleMember = new ServerRoleMember(\"exampleServerRoleMember\", ServerRoleMemberArgs.builder() \n .roleId(exampleServerRole.id())\n .memberId(member.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServerRole:\n type: mssql:ServerRole\n properties:\n name: example\n exampleServerRoleMember:\n type: mssql:ServerRoleMember\n properties:\n roleId: ${exampleServerRole.id}\n memberId: ${member.id}\nvariables:\n member:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: member_login\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e/\u003cmember_id\u003e - can be retrieved using `sys.server_principals` view\n\n```sh\n $ pulumi import mssql:index/serverRoleMember:ServerRoleMember example '7/5'\n```\n\n ", "properties": { "memberId": { "type": "string", @@ -1243,7 +1243,7 @@ } }, "mssql:index/sqlLogin:SqlLogin": { - "description": "Manages single login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n name: \"example\",\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nexport const loginId = exampleSqlLogin.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n name=\"example\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\npulumi.export(\"loginId\", example_sql_login.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Name = \"example\",\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"loginId\"] = exampleSqlLogin.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"loginId\", exampleSqlLogin.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .name(\"example\")\n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n ctx.export(\"loginId\", exampleSqlLogin.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n name: example\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n loginId: ${exampleSqlLogin.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using login ID - can be retrieved using `SELECT SUSER_SID('\u003clogin_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/sqlLogin:SqlLogin example 0x27578D8516843E4094EFA2CEED085C82\n```\n\n ", + "description": "Manages single login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n name: \"example\",\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nexport const loginId = exampleSqlLogin.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n name=\"example\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\npulumi.export(\"loginId\", example_sql_login.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Name = \"example\",\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"loginId\"] = exampleSqlLogin.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"loginId\", exampleSqlLogin.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .name(\"example\")\n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n ctx.export(\"loginId\", exampleSqlLogin.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n name: example\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n loginId: ${exampleSqlLogin.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using login ID - can be retrieved using `SELECT SUSER_SID('\u003clogin_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/sqlLogin:SqlLogin example 0x27578D8516843E4094EFA2CEED085C82\n```\n\n ", "properties": { "checkPasswordExpiration": { "type": "boolean", @@ -1360,7 +1360,7 @@ } }, "mssql:index/sqlUser:SqlUser": { - "description": "Manages database-level user, based on SQL login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n name: \"example\",\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nconst exampleSqlUser = new mssql.SqlUser(\"exampleSqlUser\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n loginId: exampleSqlLogin.id,\n});\nexport const userId = exampleSqlUser.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n name=\"example\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\nexample_sql_user = mssql.SqlUser(\"exampleSqlUser\",\n name=\"example\",\n database_id=example_database.id,\n login_id=example_sql_login.id)\npulumi.export(\"userId\", example_sql_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Name = \"example\",\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n var exampleSqlUser = new Mssql.SqlUser(\"exampleSqlUser\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n LoginId = exampleSqlLogin.Id,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleSqlUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.NewSqlUser(ctx, \"exampleSqlUser\", \u0026mssql.SqlUserArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tLoginId: exampleSqlLogin.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleSqlUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport com.pulumi.mssql.SqlUser;\nimport com.pulumi.mssql.SqlUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .name(\"example\")\n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n var exampleSqlUser = new SqlUser(\"exampleSqlUser\", SqlUserArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .loginId(exampleSqlLogin.id())\n .build());\n\n ctx.export(\"userId\", exampleSqlUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n name: example\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\n exampleSqlUser:\n type: mssql:SqlUser\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n loginId: ${exampleSqlLogin.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n userId: ${exampleSqlUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003cusername\u003e'))`\n\n```sh\n $ pulumi import mssql:index/sqlUser:SqlUser example '7/5'\n```\n\n ", + "description": "Manages database-level user, based on SQL login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n name: \"example\",\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nconst exampleSqlUser = new mssql.SqlUser(\"exampleSqlUser\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n loginId: exampleSqlLogin.id,\n});\nexport const userId = exampleSqlUser.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n name=\"example\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\nexample_sql_user = mssql.SqlUser(\"exampleSqlUser\",\n name=\"example\",\n database_id=example_database.id,\n login_id=example_sql_login.id)\npulumi.export(\"userId\", example_sql_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Name = \"example\",\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n var exampleSqlUser = new Mssql.SqlUser(\"exampleSqlUser\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n LoginId = exampleSqlLogin.Id,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleSqlUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.NewSqlUser(ctx, \"exampleSqlUser\", \u0026mssql.SqlUserArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tLoginId: exampleSqlLogin.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleSqlUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport com.pulumi.mssql.SqlUser;\nimport com.pulumi.mssql.SqlUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .name(\"example\")\n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n var exampleSqlUser = new SqlUser(\"exampleSqlUser\", SqlUserArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .loginId(exampleSqlLogin.id())\n .build());\n\n ctx.export(\"userId\", exampleSqlUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n name: example\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\n exampleSqlUser:\n type: mssql:SqlUser\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n loginId: ${exampleSqlLogin.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n userId: ${exampleSqlUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003cusername\u003e'))`\n\n```sh\n $ pulumi import mssql:index/sqlUser:SqlUser example '7/5'\n```\n\n ", "properties": { "databaseId": { "type": "string", @@ -1420,7 +1420,7 @@ }, "functions": { "mssql:index/getAzureadServicePrincipal:getAzureadServicePrincipal": { - "description": "Obtains information about single Azure AD Service Principal database user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleAzureadServicePrincipal = exampleDatabase.then(exampleDatabase =\u003e mssql.getAzureadServicePrincipal({\n name: \"example\",\n databaseId: exampleDatabase.id,\n}));\nexport const appClientId = exampleAzureadServicePrincipal.then(exampleAzureadServicePrincipal =\u003e exampleAzureadServicePrincipal.clientId);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_azuread_service_principal = mssql.get_azuread_service_principal(name=\"example\",\n database_id=example_database.id)\npulumi.export(\"appClientId\", example_azuread_service_principal.client_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleAzureadServicePrincipal = Mssql.GetAzureadServicePrincipal.Invoke(new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"appClientId\"] = exampleAzureadServicePrincipal.Apply(getAzureadServicePrincipalResult =\u003e getAzureadServicePrincipalResult.ClientId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadServicePrincipal, err := mssql.LookupAzureadServicePrincipal(ctx, \u0026mssql.LookupAzureadServicePrincipalArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t\tDatabaseId: exampleDatabase.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"appClientId\", exampleAzureadServicePrincipal.ClientId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetAzureadServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleAzureadServicePrincipal = MssqlFunctions.getAzureadServicePrincipal(GetAzureadServicePrincipalArgs.builder()\n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"appClientId\", exampleAzureadServicePrincipal.applyValue(getAzureadServicePrincipalResult -\u003e getAzureadServicePrincipalResult.clientId()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleAzureadServicePrincipal:\n fn::invoke:\n Function: mssql:getAzureadServicePrincipal\n Arguments:\n name: example\n databaseId: ${exampleDatabase.id}\noutputs:\n appClientId: ${exampleAzureadServicePrincipal.clientId}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about single Azure AD Service Principal database user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleAzureadServicePrincipal = exampleDatabase.then(exampleDatabase =\u003e mssql.getAzureadServicePrincipal({\n name: \"example\",\n databaseId: exampleDatabase.id,\n}));\nexport const appClientId = exampleAzureadServicePrincipal.then(exampleAzureadServicePrincipal =\u003e exampleAzureadServicePrincipal.clientId);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_azuread_service_principal = mssql.get_azuread_service_principal(name=\"example\",\n database_id=example_database.id)\npulumi.export(\"appClientId\", example_azuread_service_principal.client_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleAzureadServicePrincipal = Mssql.GetAzureadServicePrincipal.Invoke(new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"appClientId\"] = exampleAzureadServicePrincipal.Apply(getAzureadServicePrincipalResult =\u003e getAzureadServicePrincipalResult.ClientId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadServicePrincipal, err := mssql.LookupAzureadServicePrincipal(ctx, \u0026mssql.LookupAzureadServicePrincipalArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t\tDatabaseId: exampleDatabase.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"appClientId\", exampleAzureadServicePrincipal.ClientId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetAzureadServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleAzureadServicePrincipal = MssqlFunctions.getAzureadServicePrincipal(GetAzureadServicePrincipalArgs.builder()\n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"appClientId\", exampleAzureadServicePrincipal.applyValue(getAzureadServicePrincipalResult -\u003e getAzureadServicePrincipalResult.clientId()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleAzureadServicePrincipal:\n fn::invoke:\n Function: mssql:getAzureadServicePrincipal\n Arguments:\n name: example\n databaseId: ${exampleDatabase.id}\noutputs:\n appClientId: ${exampleAzureadServicePrincipal.clientId}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getAzureadServicePrincipal.\n", "properties": { @@ -1472,7 +1472,7 @@ } }, "mssql:index/getAzureadUser:getAzureadUser": { - "description": "Obtains information about single Azure AD database user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleAzureadUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getAzureadUser({\n name: \"example\",\n databaseId: exampleDatabase.id,\n}));\nexport const userObjectId = exampleAzureadUser.then(exampleAzureadUser =\u003e exampleAzureadUser.userObjectId);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_azuread_user = mssql.get_azuread_user(name=\"example\",\n database_id=example_database.id)\npulumi.export(\"userObjectId\", example_azuread_user.user_object_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleAzureadUser = Mssql.GetAzureadUser.Invoke(new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userObjectId\"] = exampleAzureadUser.Apply(getAzureadUserResult =\u003e getAzureadUserResult.UserObjectId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadUser, err := mssql.LookupAzureadUser(ctx, \u0026mssql.LookupAzureadUserArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t\tDatabaseId: exampleDatabase.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userObjectId\", exampleAzureadUser.UserObjectId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetAzureadUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleAzureadUser = MssqlFunctions.getAzureadUser(GetAzureadUserArgs.builder()\n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"userObjectId\", exampleAzureadUser.applyValue(getAzureadUserResult -\u003e getAzureadUserResult.userObjectId()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleAzureadUser:\n fn::invoke:\n Function: mssql:getAzureadUser\n Arguments:\n name: example\n databaseId: ${exampleDatabase.id}\noutputs:\n userObjectId: ${exampleAzureadUser.userObjectId}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about single Azure AD database user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleAzureadUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getAzureadUser({\n name: \"example\",\n databaseId: exampleDatabase.id,\n}));\nexport const userObjectId = exampleAzureadUser.then(exampleAzureadUser =\u003e exampleAzureadUser.userObjectId);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_azuread_user = mssql.get_azuread_user(name=\"example\",\n database_id=example_database.id)\npulumi.export(\"userObjectId\", example_azuread_user.user_object_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleAzureadUser = Mssql.GetAzureadUser.Invoke(new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userObjectId\"] = exampleAzureadUser.Apply(getAzureadUserResult =\u003e getAzureadUserResult.UserObjectId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadUser, err := mssql.LookupAzureadUser(ctx, \u0026mssql.LookupAzureadUserArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t\tDatabaseId: exampleDatabase.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userObjectId\", exampleAzureadUser.UserObjectId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetAzureadUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleAzureadUser = MssqlFunctions.getAzureadUser(GetAzureadUserArgs.builder()\n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"userObjectId\", exampleAzureadUser.applyValue(getAzureadUserResult -\u003e getAzureadUserResult.userObjectId()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleAzureadUser:\n fn::invoke:\n Function: mssql:getAzureadUser\n Arguments:\n name: example\n databaseId: ${exampleDatabase.id}\noutputs:\n userObjectId: ${exampleAzureadUser.userObjectId}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getAzureadUser.\n", "properties": { @@ -1524,7 +1524,7 @@ } }, "mssql:index/getDatabase:getDatabase": { - "description": "Obtains information about single database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabase({\n name: \"example\",\n});\nexport const dbId = example.then(example =\u003e example.id);\nexport const dbCollation = example.then(example =\u003e example.collation);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_database(name=\"example\")\npulumi.export(\"dbId\", example.id)\npulumi.export(\"dbCollation\", example.collation)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"dbId\"] = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n [\"dbCollation\"] = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Collation),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"dbId\", example.Id)\n\t\tctx.Export(\"dbCollation\", example.Collation)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n ctx.export(\"dbId\", example.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()));\n ctx.export(\"dbCollation\", example.applyValue(getDatabaseResult -\u003e getDatabaseResult.collation()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n dbId: ${example.id}\n dbCollation: ${example.collation}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about single database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabase({\n name: \"example\",\n});\nexport const dbId = example.then(example =\u003e example.id);\nexport const dbCollation = example.then(example =\u003e example.collation);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_database(name=\"example\")\npulumi.export(\"dbId\", example.id)\npulumi.export(\"dbCollation\", example.collation)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"dbId\"] = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n [\"dbCollation\"] = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Collation),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"dbId\", example.Id)\n\t\tctx.Export(\"dbCollation\", example.Collation)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n ctx.export(\"dbId\", example.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()));\n ctx.export(\"dbCollation\", example.applyValue(getDatabaseResult -\u003e getDatabaseResult.collation()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n dbId: ${example.id}\n dbCollation: ${example.collation}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getDatabase.\n", "properties": { @@ -1563,7 +1563,7 @@ } }, "mssql:index/getDatabasePermissions:getDatabasePermissions": { - "description": "Returns all permissions granted in a DB to given principal\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleDatabasePermissions = exampleSqlUser.then(exampleSqlUser =\u003e mssql.getDatabasePermissions({\n principalId: exampleSqlUser.id,\n}));\nexport const permissions = exampleDatabasePermissions.then(exampleDatabasePermissions =\u003e exampleDatabasePermissions.permissions);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nexample_database_permissions = mssql.get_database_permissions(principal_id=example_sql_user.id)\npulumi.export(\"permissions\", example_database_permissions.permissions)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleDatabasePermissions = Mssql.GetDatabasePermissions.Invoke(new()\n {\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"permissions\"] = exampleDatabasePermissions.Apply(getDatabasePermissionsResult =\u003e getDatabasePermissionsResult.Permissions),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDatabasePermissions, err := mssql.GetDatabasePermissions(ctx, \u0026mssql.GetDatabasePermissionsArgs{\n\t\t\tPrincipalId: exampleSqlUser.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"permissions\", exampleDatabasePermissions.Permissions)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.inputs.GetDatabasePermissionsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleDatabasePermissions = MssqlFunctions.getDatabasePermissions(GetDatabasePermissionsArgs.builder()\n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n ctx.export(\"permissions\", exampleDatabasePermissions.applyValue(getDatabasePermissionsResult -\u003e getDatabasePermissionsResult.permissions()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n exampleDatabasePermissions:\n fn::invoke:\n Function: mssql:getDatabasePermissions\n Arguments:\n principalId: ${exampleSqlUser.id}\noutputs:\n permissions: ${exampleDatabasePermissions.permissions}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Returns all permissions granted in a DB to given principal\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleDatabasePermissions = exampleSqlUser.then(exampleSqlUser =\u003e mssql.getDatabasePermissions({\n principalId: exampleSqlUser.id,\n}));\nexport const permissions = exampleDatabasePermissions.then(exampleDatabasePermissions =\u003e exampleDatabasePermissions.permissions);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nexample_database_permissions = mssql.get_database_permissions(principal_id=example_sql_user.id)\npulumi.export(\"permissions\", example_database_permissions.permissions)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleDatabasePermissions = Mssql.GetDatabasePermissions.Invoke(new()\n {\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"permissions\"] = exampleDatabasePermissions.Apply(getDatabasePermissionsResult =\u003e getDatabasePermissionsResult.Permissions),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDatabasePermissions, err := mssql.GetDatabasePermissions(ctx, \u0026mssql.GetDatabasePermissionsArgs{\n\t\t\tPrincipalId: exampleSqlUser.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"permissions\", exampleDatabasePermissions.Permissions)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.inputs.GetDatabasePermissionsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleDatabasePermissions = MssqlFunctions.getDatabasePermissions(GetDatabasePermissionsArgs.builder()\n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n ctx.export(\"permissions\", exampleDatabasePermissions.applyValue(getDatabasePermissionsResult -\u003e getDatabasePermissionsResult.permissions()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n exampleDatabasePermissions:\n fn::invoke:\n Function: mssql:getDatabasePermissions\n Arguments:\n principalId: ${exampleSqlUser.id}\noutputs:\n permissions: ${exampleDatabasePermissions.permissions}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getDatabasePermissions.\n", "properties": { @@ -1605,7 +1605,7 @@ } }, "mssql:index/getDatabaseRole:getDatabaseRole": { - "description": "Obtains information about single database role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getDatabaseRole({\n name: \"public\",\n databaseId: master.id,\n}));\nexport const id = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_database_role(name=\"public\",\n database_id=master.id)\npulumi.export(\"id\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetDatabaseRole.Invoke(new()\n {\n Name = \"public\",\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"id\"] = example.Apply(getDatabaseRoleResult =\u003e getDatabaseRoleResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.LookupDatabaseRole(ctx, \u0026mssql.LookupDatabaseRoleArgs{\n\t\t\tName: \"public\",\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"id\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetDatabaseRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getDatabaseRole(GetDatabaseRoleArgs.builder()\n .name(\"public\")\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"id\", example.applyValue(getDatabaseRoleResult -\u003e getDatabaseRoleResult.id()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getDatabaseRole\n Arguments:\n name: public\n databaseId: ${master.id}\noutputs:\n id: ${example.id}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about single database role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getDatabaseRole({\n name: \"public\",\n databaseId: master.id,\n}));\nexport const id = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_database_role(name=\"public\",\n database_id=master.id)\npulumi.export(\"id\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetDatabaseRole.Invoke(new()\n {\n Name = \"public\",\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"id\"] = example.Apply(getDatabaseRoleResult =\u003e getDatabaseRoleResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.LookupDatabaseRole(ctx, \u0026mssql.LookupDatabaseRoleArgs{\n\t\t\tName: \"public\",\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"id\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetDatabaseRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getDatabaseRole(GetDatabaseRoleArgs.builder()\n .name(\"public\")\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"id\", example.applyValue(getDatabaseRoleResult -\u003e getDatabaseRoleResult.id()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getDatabaseRole\n Arguments:\n name: public\n databaseId: ${master.id}\noutputs:\n id: ${example.id}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getDatabaseRole.\n", "properties": { @@ -1660,7 +1660,7 @@ } }, "mssql:index/getDatabaseRoles:getDatabaseRoles": { - "description": "Obtains information about all roles defined in a database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getDatabaseRoles({\n databaseId: master.id,\n}));\nexport const roles = example.then(example =\u003e example.roles);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_database_roles(database_id=master.id)\npulumi.export(\"roles\", example.roles)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetDatabaseRoles.Invoke(new()\n {\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"roles\"] = example.Apply(getDatabaseRolesResult =\u003e getDatabaseRolesResult.Roles),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.GetDatabaseRoles(ctx, \u0026mssql.GetDatabaseRolesArgs{\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"roles\", example.Roles)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetDatabaseRolesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getDatabaseRoles(GetDatabaseRolesArgs.builder()\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"roles\", example.applyValue(getDatabaseRolesResult -\u003e getDatabaseRolesResult.roles()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getDatabaseRoles\n Arguments:\n databaseId: ${master.id}\noutputs:\n roles: ${example.roles}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about all roles defined in a database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getDatabaseRoles({\n databaseId: master.id,\n}));\nexport const roles = example.then(example =\u003e example.roles);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_database_roles(database_id=master.id)\npulumi.export(\"roles\", example.roles)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetDatabaseRoles.Invoke(new()\n {\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"roles\"] = example.Apply(getDatabaseRolesResult =\u003e getDatabaseRolesResult.Roles),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.GetDatabaseRoles(ctx, \u0026mssql.GetDatabaseRolesArgs{\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"roles\", example.Roles)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetDatabaseRolesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getDatabaseRoles(GetDatabaseRolesArgs.builder()\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"roles\", example.applyValue(getDatabaseRolesResult -\u003e getDatabaseRolesResult.roles()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getDatabaseRoles\n Arguments:\n databaseId: ${master.id}\noutputs:\n roles: ${example.roles}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getDatabaseRoles.\n", "properties": { @@ -1698,7 +1698,7 @@ } }, "mssql:index/getDatabases:getDatabases": { - "description": "Obtains information about all databases found in SQL Server instance.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabases({});\nexport const databases = example.then(example =\u003e example.databases);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_databases()\npulumi.export(\"databases\", example.databases)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabases.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"databases\"] = example.Apply(getDatabasesResult =\u003e getDatabasesResult.Databases),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.GetDatabases(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"databases\", example.Databases)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabases();\n\n ctx.export(\"databases\", example.applyValue(getDatabasesResult -\u003e getDatabasesResult.databases()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getDatabases\n Arguments: {}\noutputs:\n databases: ${example.databases}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about all databases found in SQL Server instance.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabases({});\nexport const databases = example.then(example =\u003e example.databases);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_databases()\npulumi.export(\"databases\", example.databases)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabases.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"databases\"] = example.Apply(getDatabasesResult =\u003e getDatabasesResult.Databases),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.GetDatabases(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"databases\", example.Databases)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabases();\n\n ctx.export(\"databases\", example.applyValue(getDatabasesResult -\u003e getDatabasesResult.databases()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getDatabases\n Arguments: {}\noutputs:\n databases: ${example.databases}\n```\n{{% /example %}}\n{{% /examples %}}", "outputs": { "description": "A collection of values returned by getDatabases.\n", "properties": { @@ -1722,7 +1722,7 @@ } }, "mssql:index/getQuery:getQuery": { - "description": "Retrieves arbitrary SQL query result.\n\n\u003e **Note** This data source is meant to be an escape hatch for all cases not supported by the provider's data sources. Whenever possible, use dedicated data sources, which offer better plan, validation and error reporting.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst test = mssql.getDatabase({\n name: \"test\",\n});\nconst column = test.then(test =\u003e mssql.getQuery({\n databaseId: test.id,\n query: \"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\",\n}));\nexport const columnNames = column.then(column =\u003e column.results.map(__item =\u003e __item.name));\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\ntest = mssql.get_database(name=\"test\")\ncolumn = mssql.get_query(database_id=test.id,\n query=\"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\")\npulumi.export(\"columnNames\", [__item[\"name\"] for __item in column.results])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"test\",\n });\n\n var column = Mssql.GetQuery.Invoke(new()\n {\n DatabaseId = test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n Query = \"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"columnNames\"] = column.Apply(getQueryResult =\u003e getQueryResult.Results).Select(__item =\u003e __item.Name).ToList(),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"test\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcolumn, err := mssql.GetQuery(ctx, \u0026mssql.GetQueryArgs{\n\t\t\tDatabaseId: test.Id,\n\t\t\tQuery: \"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tvar splat0 []string\n\t\tfor _, val0 := range column.Results {\n\t\t\tsplat0 = append(splat0, val0.Name)\n\t\t}\n\t\tctx.Export(\"columnNames\", splat0)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetQueryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"test\")\n .build());\n\n final var column = MssqlFunctions.getQuery(GetQueryArgs.builder()\n .databaseId(test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .query(\"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\")\n .build());\n\n ctx.export(\"columnNames\", column.applyValue(getQueryResult -\u003e getQueryResult.results()).stream().map(element -\u003e element.name()).collect(toList()));\n }\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Retrieves arbitrary SQL query result.\n\n\u003e **Note** This data source is meant to be an escape hatch for all cases not supported by the provider's data sources. Whenever possible, use dedicated data sources, which offer better plan, validation and error reporting.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst test = mssql.getDatabase({\n name: \"test\",\n});\nconst column = test.then(test =\u003e mssql.getQuery({\n databaseId: test.id,\n query: \"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\",\n}));\nexport const columnNames = column.then(column =\u003e column.results.map(__item =\u003e __item.name));\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\ntest = mssql.get_database(name=\"test\")\ncolumn = mssql.get_query(database_id=test.id,\n query=\"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\")\npulumi.export(\"columnNames\", [__item[\"name\"] for __item in column.results])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"test\",\n });\n\n var column = Mssql.GetQuery.Invoke(new()\n {\n DatabaseId = test.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n Query = \"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"columnNames\"] = column.Apply(getQueryResult =\u003e getQueryResult.Results).Select(__item =\u003e __item.Name).ToList(),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"test\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcolumn, err := mssql.GetQuery(ctx, \u0026mssql.GetQueryArgs{\n\t\t\tDatabaseId: test.Id,\n\t\t\tQuery: \"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tvar splat0 []string\n\t\tfor _, val0 := range column.Results {\n\t\t\tsplat0 = append(splat0, val0.Name)\n\t\t}\n\t\tctx.Export(\"columnNames\", splat0)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetQueryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"test\")\n .build());\n\n final var column = MssqlFunctions.getQuery(GetQueryArgs.builder()\n .databaseId(test.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .query(\"SELECT [column_id], [name] FROM sys.columns WHERE [object_id] = OBJECT_ID('test_table')\")\n .build());\n\n ctx.export(\"columnNames\", column.applyValue(getQueryResult -\u003e getQueryResult.results()).stream().map(element -\u003e element.name()).collect(toList()));\n }\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getQuery.\n", "properties": { @@ -1776,7 +1776,7 @@ } }, "mssql:index/getSchema:getSchema": { - "description": "Retrieves information about DB schema.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabase({\n name: \"example\",\n});\nconst byName = example.then(example =\u003e mssql.getSchema({\n databaseId: example.id,\n name: \"dbo\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_database(name=\"example\")\nby_name = mssql.get_schema(database_id=example.id,\n name=\"dbo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var byName = Mssql.GetSchema.Invoke(new()\n {\n DatabaseId = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n Name = \"dbo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.LookupSchema(ctx, \u0026mssql.LookupSchemaArgs{\n\t\t\tDatabaseId: pulumi.StringRef(example.Id),\n\t\t\tName: pulumi.StringRef(\"dbo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSchemaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var byName = MssqlFunctions.getSchema(GetSchemaArgs.builder()\n .databaseId(example.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .name(\"dbo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n byName:\n fn::invoke:\n Function: mssql:getSchema\n Arguments:\n databaseId: ${example.id}\n name: dbo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Retrieves information about DB schema.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabase({\n name: \"example\",\n});\nconst byName = example.then(example =\u003e mssql.getSchema({\n databaseId: example.id,\n name: \"dbo\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_database(name=\"example\")\nby_name = mssql.get_schema(database_id=example.id,\n name=\"dbo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var byName = Mssql.GetSchema.Invoke(new()\n {\n DatabaseId = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n Name = \"dbo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.LookupSchema(ctx, \u0026mssql.LookupSchemaArgs{\n\t\t\tDatabaseId: pulumi.StringRef(example.Id),\n\t\t\tName: pulumi.StringRef(\"dbo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSchemaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var byName = MssqlFunctions.getSchema(GetSchemaArgs.builder()\n .databaseId(example.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .name(\"dbo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n byName:\n fn::invoke:\n Function: mssql:getSchema\n Arguments:\n databaseId: ${example.id}\n name: dbo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSchema.\n", "properties": { @@ -1825,7 +1825,7 @@ } }, "mssql:index/getSchemaPermissions:getSchemaPermissions": { - "description": "Returns all permissions granted in a schema to given principal\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleSchema = exampleDatabase.then(exampleDatabase =\u003e mssql.getSchema({\n name: \"example_schema\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleSchemaPermissions = Promise.all([exampleSchema, exampleSqlUser]).then(([exampleSchema, exampleSqlUser]) =\u003e mssql.getSchemaPermissions({\n schemaId: exampleSchema.id,\n principalId: exampleSqlUser.id,\n}));\nexport const permissions = exampleSchemaPermissions.then(exampleSchemaPermissions =\u003e exampleSchemaPermissions.permissions);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nexample_schema = mssql.get_schema(name=\"example_schema\",\n database_id=example_database.id)\nexample_schema_permissions = mssql.get_schema_permissions(schema_id=example_schema.id,\n principal_id=example_sql_user.id)\npulumi.export(\"permissions\", example_schema_permissions.permissions)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleSchema = Mssql.GetSchema.Invoke(new()\n {\n Name = \"example_schema\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleSchemaPermissions = Mssql.GetSchemaPermissions.Invoke(new()\n {\n SchemaId = exampleSchema.Apply(getSchemaResult =\u003e getSchemaResult.Id),\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"permissions\"] = exampleSchemaPermissions.Apply(getSchemaPermissionsResult =\u003e getSchemaPermissionsResult.Permissions),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSchema, err := mssql.LookupSchema(ctx, \u0026mssql.LookupSchemaArgs{\n\t\t\tName: pulumi.StringRef(\"example_schema\"),\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSchemaPermissions, err := mssql.GetSchemaPermissions(ctx, \u0026mssql.GetSchemaPermissionsArgs{\n\t\t\tSchemaId: exampleSchema.Id,\n\t\t\tPrincipalId: exampleSqlUser.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"permissions\", exampleSchemaPermissions.Permissions)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.inputs.GetSchemaArgs;\nimport com.pulumi.mssql.inputs.GetSchemaPermissionsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleSchema = MssqlFunctions.getSchema(GetSchemaArgs.builder()\n .name(\"example_schema\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleSchemaPermissions = MssqlFunctions.getSchemaPermissions(GetSchemaPermissionsArgs.builder()\n .schemaId(exampleSchema.applyValue(getSchemaResult -\u003e getSchemaResult.id()))\n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n ctx.export(\"permissions\", exampleSchemaPermissions.applyValue(getSchemaPermissionsResult -\u003e getSchemaPermissionsResult.permissions()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n exampleSchema:\n fn::invoke:\n Function: mssql:getSchema\n Arguments:\n name: example_schema\n databaseId: ${exampleDatabase.id}\n exampleSchemaPermissions:\n fn::invoke:\n Function: mssql:getSchemaPermissions\n Arguments:\n schemaId: ${exampleSchema.id}\n principalId: ${exampleSqlUser.id}\noutputs:\n permissions: ${exampleSchemaPermissions.permissions}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Returns all permissions granted in a schema to given principal\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlUser = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleSchema = exampleDatabase.then(exampleDatabase =\u003e mssql.getSchema({\n name: \"example_schema\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleSchemaPermissions = Promise.all([exampleSchema, exampleSqlUser]).then(([exampleSchema, exampleSqlUser]) =\u003e mssql.getSchemaPermissions({\n schemaId: exampleSchema.id,\n principalId: exampleSqlUser.id,\n}));\nexport const permissions = exampleSchemaPermissions.then(exampleSchemaPermissions =\u003e exampleSchemaPermissions.permissions);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_user = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nexample_schema = mssql.get_schema(name=\"example_schema\",\n database_id=example_database.id)\nexample_schema_permissions = mssql.get_schema_permissions(schema_id=example_schema.id,\n principal_id=example_sql_user.id)\npulumi.export(\"permissions\", example_schema_permissions.permissions)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlUser = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleSchema = Mssql.GetSchema.Invoke(new()\n {\n Name = \"example_schema\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleSchemaPermissions = Mssql.GetSchemaPermissions.Invoke(new()\n {\n SchemaId = exampleSchema.Apply(getSchemaResult =\u003e getSchemaResult.Id),\n PrincipalId = exampleSqlUser.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"permissions\"] = exampleSchemaPermissions.Apply(getSchemaPermissionsResult =\u003e getSchemaPermissionsResult.Permissions),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSchema, err := mssql.LookupSchema(ctx, \u0026mssql.LookupSchemaArgs{\n\t\t\tName: pulumi.StringRef(\"example_schema\"),\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSchemaPermissions, err := mssql.GetSchemaPermissions(ctx, \u0026mssql.GetSchemaPermissionsArgs{\n\t\t\tSchemaId: exampleSchema.Id,\n\t\t\tPrincipalId: exampleSqlUser.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"permissions\", exampleSchemaPermissions.Permissions)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.inputs.GetSchemaArgs;\nimport com.pulumi.mssql.inputs.GetSchemaPermissionsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleSqlUser = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleSchema = MssqlFunctions.getSchema(GetSchemaArgs.builder()\n .name(\"example_schema\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var exampleSchemaPermissions = MssqlFunctions.getSchemaPermissions(GetSchemaPermissionsArgs.builder()\n .schemaId(exampleSchema.applyValue(getSchemaResult -\u003e getSchemaResult.id()))\n .principalId(exampleSqlUser.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n ctx.export(\"permissions\", exampleSchemaPermissions.applyValue(getSchemaPermissionsResult -\u003e getSchemaPermissionsResult.permissions()));\n }\n}\n```\n```yaml\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleSqlUser:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n exampleSchema:\n fn::invoke:\n Function: mssql:getSchema\n Arguments:\n name: example_schema\n databaseId: ${exampleDatabase.id}\n exampleSchemaPermissions:\n fn::invoke:\n Function: mssql:getSchemaPermissions\n Arguments:\n schemaId: ${exampleSchema.id}\n principalId: ${exampleSqlUser.id}\noutputs:\n permissions: ${exampleSchemaPermissions.permissions}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSchemaPermissions.\n", "properties": { @@ -1877,7 +1877,7 @@ } }, "mssql:index/getSchemas:getSchemas": { - "description": "Obtains information about all schemas found in SQL database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabase({\n name: \"example\",\n});\nconst all = example.then(example =\u003e mssql.getSchemas({\n databaseId: example.id,\n}));\nexport const allSchemaNames = all.then(all =\u003e all.schemas.map(__item =\u003e __item.name));\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_database(name=\"example\")\nall = mssql.get_schemas(database_id=example.id)\npulumi.export(\"allSchemaNames\", [__item.name for __item in all.schemas])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var all = Mssql.GetSchemas.Invoke(new()\n {\n DatabaseId = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"allSchemaNames\"] = all.Apply(getSchemasResult =\u003e getSchemasResult.Schemas).Select(__item =\u003e __item.Name).ToList(),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tall, err := mssql.GetSchemas(ctx, \u0026mssql.GetSchemasArgs{\n\t\t\tDatabaseId: pulumi.StringRef(example.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tvar splat0 []*string\n\t\tfor _, val0 := range all.Schemas {\n\t\t\tsplat0 = append(splat0, val0.Name)\n\t\t}\n\t\tctx.Export(\"allSchemaNames\", splat0)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSchemasArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var all = MssqlFunctions.getSchemas(GetSchemasArgs.builder()\n .databaseId(example.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"allSchemaNames\", all.applyValue(getSchemasResult -\u003e getSchemasResult.schemas()).stream().map(element -\u003e element.name()).collect(toList()));\n }\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about all schemas found in SQL database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getDatabase({\n name: \"example\",\n});\nconst all = example.then(example =\u003e mssql.getSchemas({\n databaseId: example.id,\n}));\nexport const allSchemaNames = all.then(all =\u003e all.schemas.map(__item =\u003e __item.name));\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_database(name=\"example\")\nall = mssql.get_schemas(database_id=example.id)\npulumi.export(\"allSchemaNames\", [__item.name for __item in all.schemas])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var all = Mssql.GetSchemas.Invoke(new()\n {\n DatabaseId = example.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"allSchemaNames\"] = all.Apply(getSchemasResult =\u003e getSchemasResult.Schemas).Select(__item =\u003e __item.Name).ToList(),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tall, err := mssql.GetSchemas(ctx, \u0026mssql.GetSchemasArgs{\n\t\t\tDatabaseId: pulumi.StringRef(example.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tvar splat0 []*string\n\t\tfor _, val0 := range all.Schemas {\n\t\t\tsplat0 = append(splat0, val0.Name)\n\t\t}\n\t\tctx.Export(\"allSchemaNames\", splat0)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSchemasArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var all = MssqlFunctions.getSchemas(GetSchemasArgs.builder()\n .databaseId(example.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"allSchemaNames\", all.applyValue(getSchemasResult -\u003e getSchemasResult.schemas()).stream().map(element -\u003e element.name()).collect(toList()));\n }\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSchemas.\n", "properties": { @@ -1916,7 +1916,7 @@ } }, "mssql:index/getServerPermissions:getServerPermissions": { - "description": "Returns all permissions grated to given principal\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleSqlLogin = mssql.getSqlLogin({\n name: \"example_login\",\n});\nconst exampleServerPermissions = exampleSqlLogin.then(exampleSqlLogin =\u003e mssql.getServerPermissions({\n principalId: exampleSqlLogin.principalId,\n}));\nexport const permissions = exampleServerPermissions.then(exampleServerPermissions =\u003e exampleServerPermissions.permissions);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_sql_login = mssql.get_sql_login(name=\"example_login\")\nexample_server_permissions = mssql.get_server_permissions(principal_id=example_sql_login.principal_id)\npulumi.export(\"permissions\", example_server_permissions.permissions)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSqlLogin = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"example_login\",\n });\n\n var exampleServerPermissions = Mssql.GetServerPermissions.Invoke(new()\n {\n PrincipalId = exampleSqlLogin.Apply(getSqlLoginResult =\u003e getSqlLoginResult.PrincipalId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"permissions\"] = exampleServerPermissions.Apply(getServerPermissionsResult =\u003e getServerPermissionsResult.Permissions),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleSqlLogin, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"example_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServerPermissions, err := mssql.GetServerPermissions(ctx, \u0026mssql.GetServerPermissionsArgs{\n\t\t\tPrincipalId: exampleSqlLogin.PrincipalId,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"permissions\", exampleServerPermissions.Permissions)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.inputs.GetServerPermissionsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleSqlLogin = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"example_login\")\n .build());\n\n final var exampleServerPermissions = MssqlFunctions.getServerPermissions(GetServerPermissionsArgs.builder()\n .principalId(exampleSqlLogin.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.principalId()))\n .build());\n\n ctx.export(\"permissions\", exampleServerPermissions.applyValue(getServerPermissionsResult -\u003e getServerPermissionsResult.permissions()));\n }\n}\n```\n```yaml\nvariables:\n exampleSqlLogin:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: example_login\n exampleServerPermissions:\n fn::invoke:\n Function: mssql:getServerPermissions\n Arguments:\n principalId: ${exampleSqlLogin.principalId}\noutputs:\n permissions: ${exampleServerPermissions.permissions}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Returns all permissions grated to given principal\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst exampleSqlLogin = mssql.getSqlLogin({\n name: \"example_login\",\n});\nconst exampleServerPermissions = exampleSqlLogin.then(exampleSqlLogin =\u003e mssql.getServerPermissions({\n principalId: exampleSqlLogin.principalId,\n}));\nexport const permissions = exampleServerPermissions.then(exampleServerPermissions =\u003e exampleServerPermissions.permissions);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample_sql_login = mssql.get_sql_login(name=\"example_login\")\nexample_server_permissions = mssql.get_server_permissions(principal_id=example_sql_login.principal_id)\npulumi.export(\"permissions\", example_server_permissions.permissions)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleSqlLogin = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"example_login\",\n });\n\n var exampleServerPermissions = Mssql.GetServerPermissions.Invoke(new()\n {\n PrincipalId = exampleSqlLogin.Apply(getSqlLoginResult =\u003e getSqlLoginResult.PrincipalId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"permissions\"] = exampleServerPermissions.Apply(getServerPermissionsResult =\u003e getServerPermissionsResult.Permissions),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleSqlLogin, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"example_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServerPermissions, err := mssql.GetServerPermissions(ctx, \u0026mssql.GetServerPermissionsArgs{\n\t\t\tPrincipalId: exampleSqlLogin.PrincipalId,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"permissions\", exampleServerPermissions.Permissions)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.inputs.GetServerPermissionsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleSqlLogin = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"example_login\")\n .build());\n\n final var exampleServerPermissions = MssqlFunctions.getServerPermissions(GetServerPermissionsArgs.builder()\n .principalId(exampleSqlLogin.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.principalId()))\n .build());\n\n ctx.export(\"permissions\", exampleServerPermissions.applyValue(getServerPermissionsResult -\u003e getServerPermissionsResult.permissions()));\n }\n}\n```\n```yaml\nvariables:\n exampleSqlLogin:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: example_login\n exampleServerPermissions:\n fn::invoke:\n Function: mssql:getServerPermissions\n Arguments:\n principalId: ${exampleSqlLogin.principalId}\noutputs:\n permissions: ${exampleServerPermissions.permissions}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getServerPermissions.\n", "properties": { @@ -1958,7 +1958,7 @@ } }, "mssql:index/getServerRole:getServerRole": { - "description": "Obtains information about single server role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst byName = mssql.getServerRole({\n name: \"example\",\n});\nconst byId = mssql.getServerRole({\n id: \"8\",\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nby_name = mssql.get_server_role(name=\"example\")\nby_id = mssql.get_server_role(id=\"8\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var byName = Mssql.GetServerRole.Invoke(new()\n {\n Name = \"example\",\n });\n\n var byId = Mssql.GetServerRole.Invoke(new()\n {\n Id = \"8\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mssql.LookupServerRole(ctx, \u0026mssql.LookupServerRoleArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.LookupServerRole(ctx, \u0026mssql.LookupServerRoleArgs{\n\t\t\tId: pulumi.StringRef(\"8\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetServerRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var byName = MssqlFunctions.getServerRole(GetServerRoleArgs.builder()\n .name(\"example\")\n .build());\n\n final var byId = MssqlFunctions.getServerRole(GetServerRoleArgs.builder()\n .id(8)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n byName:\n fn::invoke:\n Function: mssql:getServerRole\n Arguments:\n name: example\n byId:\n fn::invoke:\n Function: mssql:getServerRole\n Arguments:\n id: 8\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about single server role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst byName = mssql.getServerRole({\n name: \"example\",\n});\nconst byId = mssql.getServerRole({\n id: \"8\",\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nby_name = mssql.get_server_role(name=\"example\")\nby_id = mssql.get_server_role(id=\"8\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var byName = Mssql.GetServerRole.Invoke(new()\n {\n Name = \"example\",\n });\n\n var byId = Mssql.GetServerRole.Invoke(new()\n {\n Id = \"8\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mssql.LookupServerRole(ctx, \u0026mssql.LookupServerRoleArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.LookupServerRole(ctx, \u0026mssql.LookupServerRoleArgs{\n\t\t\tId: pulumi.StringRef(\"8\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetServerRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var byName = MssqlFunctions.getServerRole(GetServerRoleArgs.builder()\n .name(\"example\")\n .build());\n\n final var byId = MssqlFunctions.getServerRole(GetServerRoleArgs.builder()\n .id(8)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n byName:\n fn::invoke:\n Function: mssql:getServerRole\n Arguments:\n name: example\n byId:\n fn::invoke:\n Function: mssql:getServerRole\n Arguments:\n id: 8\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getServerRole.\n", "properties": { @@ -2006,7 +2006,7 @@ } }, "mssql:index/getServerRoles:getServerRoles": { - "description": "Obtains information about all roles defined in the server.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst all = mssql.getServerRoles({});\nexport const roles = all.then(all =\u003e all.roles);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nall = mssql.get_server_roles()\npulumi.export(\"roles\", all.roles)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var all = Mssql.GetServerRoles.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"roles\"] = all.Apply(getServerRolesResult =\u003e getServerRolesResult.Roles),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tall, err := mssql.GetServerRoles(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"roles\", all.Roles)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var all = MssqlFunctions.getServerRoles();\n\n ctx.export(\"roles\", all.applyValue(getServerRolesResult -\u003e getServerRolesResult.roles()));\n }\n}\n```\n```yaml\nvariables:\n all:\n fn::invoke:\n Function: mssql:getServerRoles\n Arguments: {}\noutputs:\n roles: ${all.roles}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about all roles defined in the server.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst all = mssql.getServerRoles({});\nexport const roles = all.then(all =\u003e all.roles);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nall = mssql.get_server_roles()\npulumi.export(\"roles\", all.roles)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var all = Mssql.GetServerRoles.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"roles\"] = all.Apply(getServerRolesResult =\u003e getServerRolesResult.Roles),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tall, err := mssql.GetServerRoles(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"roles\", all.Roles)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var all = MssqlFunctions.getServerRoles();\n\n ctx.export(\"roles\", all.applyValue(getServerRolesResult -\u003e getServerRolesResult.roles()));\n }\n}\n```\n```yaml\nvariables:\n all:\n fn::invoke:\n Function: mssql:getServerRoles\n Arguments: {}\noutputs:\n roles: ${all.roles}\n```\n{{% /example %}}\n{{% /examples %}}", "outputs": { "description": "A collection of values returned by getServerRoles.\n", "properties": { @@ -2029,7 +2029,7 @@ } }, "mssql:index/getSqlLogin:getSqlLogin": { - "description": "Obtains information about single SQL login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst sa = mssql.getSqlLogin({\n name: \"sa\",\n});\nexport const id = sa.then(sa =\u003e sa.id);\nexport const dbId = sa.then(sa =\u003e sa.defaultDatabaseId);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nsa = mssql.get_sql_login(name=\"sa\")\npulumi.export(\"id\", sa.id)\npulumi.export(\"dbId\", sa.default_database_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sa = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"sa\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"id\"] = sa.Apply(getSqlLoginResult =\u003e getSqlLoginResult.Id),\n [\"dbId\"] = sa.Apply(getSqlLoginResult =\u003e getSqlLoginResult.DefaultDatabaseId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsa, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"sa\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"id\", sa.Id)\n\t\tctx.Export(\"dbId\", sa.DefaultDatabaseId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var sa = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"sa\")\n .build());\n\n ctx.export(\"id\", sa.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.id()));\n ctx.export(\"dbId\", sa.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.defaultDatabaseId()));\n }\n}\n```\n```yaml\nvariables:\n sa:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: sa\noutputs:\n id: ${sa.id}\n dbId: ${sa.defaultDatabaseId}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about single SQL login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst sa = mssql.getSqlLogin({\n name: \"sa\",\n});\nexport const id = sa.then(sa =\u003e sa.id);\nexport const dbId = sa.then(sa =\u003e sa.defaultDatabaseId);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nsa = mssql.get_sql_login(name=\"sa\")\npulumi.export(\"id\", sa.id)\npulumi.export(\"dbId\", sa.default_database_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sa = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"sa\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"id\"] = sa.Apply(getSqlLoginResult =\u003e getSqlLoginResult.Id),\n [\"dbId\"] = sa.Apply(getSqlLoginResult =\u003e getSqlLoginResult.DefaultDatabaseId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsa, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"sa\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"id\", sa.Id)\n\t\tctx.Export(\"dbId\", sa.DefaultDatabaseId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var sa = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"sa\")\n .build());\n\n ctx.export(\"id\", sa.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.id()));\n ctx.export(\"dbId\", sa.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.defaultDatabaseId()));\n }\n}\n```\n```yaml\nvariables:\n sa:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: sa\noutputs:\n id: ${sa.id}\n dbId: ${sa.defaultDatabaseId}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSqlLogin.\n", "properties": { @@ -2093,7 +2093,7 @@ } }, "mssql:index/getSqlLogins:getSqlLogins": { - "description": "Obtains information about all SQL logins found in SQL Server instance.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getSqlLogins({});\nexport const databases = example.then(example =\u003e example.logins);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_sql_logins()\npulumi.export(\"databases\", example.logins)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetSqlLogins.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"databases\"] = example.Apply(getSqlLoginsResult =\u003e getSqlLoginsResult.Logins),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.GetSqlLogins(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"databases\", example.Logins)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getSqlLogins();\n\n ctx.export(\"databases\", example.applyValue(getSqlLoginsResult -\u003e getSqlLoginsResult.logins()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getSqlLogins\n Arguments: {}\noutputs:\n databases: ${example.logins}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about all SQL logins found in SQL Server instance.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst example = mssql.getSqlLogins({});\nexport const databases = example.then(example =\u003e example.logins);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nexample = mssql.get_sql_logins()\npulumi.export(\"databases\", example.logins)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Mssql.GetSqlLogins.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"databases\"] = example.Apply(getSqlLoginsResult =\u003e getSqlLoginsResult.Logins),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := mssql.GetSqlLogins(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"databases\", example.Logins)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = MssqlFunctions.getSqlLogins();\n\n ctx.export(\"databases\", example.applyValue(getSqlLoginsResult -\u003e getSqlLoginsResult.logins()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: mssql:getSqlLogins\n Arguments: {}\noutputs:\n databases: ${example.logins}\n```\n{{% /example %}}\n{{% /examples %}}", "outputs": { "description": "A collection of values returned by getSqlLogins.\n", "properties": { @@ -2117,7 +2117,7 @@ } }, "mssql:index/getSqlUser:getSqlUser": { - "description": "Obtains information about single SQL database user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getSqlUser({\n name: \"dbo\",\n databaseId: master.id,\n}));\nexport const id = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_sql_user(name=\"dbo\",\n database_id=master.id)\npulumi.export(\"id\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"dbo\",\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"id\"] = example.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"dbo\",\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"id\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"dbo\")\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"id\", example.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: dbo\n databaseId: ${master.id}\noutputs:\n id: ${example.id}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about single SQL database user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getSqlUser({\n name: \"dbo\",\n databaseId: master.id,\n}));\nexport const id = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_sql_user(name=\"dbo\",\n database_id=master.id)\npulumi.export(\"id\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"dbo\",\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"id\"] = example.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"dbo\",\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"id\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"dbo\")\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"id\", example.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: dbo\n databaseId: ${master.id}\noutputs:\n id: ${example.id}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSqlUser.\n", "properties": { @@ -2165,7 +2165,7 @@ } }, "mssql:index/getSqlUsers:getSqlUsers": { - "description": "Obtains information about all SQL users found in a database\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getSqlUsers({\n databaseId: master.id,\n}));\nexport const users = example.then(example =\u003e example.users);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_sql_users(database_id=master.id)\npulumi.export(\"users\", example.users)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetSqlUsers.Invoke(new()\n {\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"users\"] = example.Apply(getSqlUsersResult =\u003e getSqlUsersResult.Users),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mssql/sdk/go/mssql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.GetSqlUsers(ctx, \u0026mssql.GetSqlUsersArgs{\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"users\", example.Users)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUsersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getSqlUsers(GetSqlUsersArgs.builder()\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"users\", example.applyValue(getSqlUsersResult -\u003e getSqlUsersResult.users()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getSqlUsers\n Arguments:\n databaseId: ${master.id}\noutputs:\n users: ${example.users}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Obtains information about all SQL users found in a database\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\n\nconst master = mssql.getDatabase({\n name: \"master\",\n});\nconst example = master.then(master =\u003e mssql.getSqlUsers({\n databaseId: master.id,\n}));\nexport const users = example.then(example =\u003e example.users);\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\n\nmaster = mssql.get_database(name=\"master\")\nexample = mssql.get_sql_users(database_id=master.id)\npulumi.export(\"users\", example.users)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var master = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"master\",\n });\n\n var example = Mssql.GetSqlUsers.Invoke(new()\n {\n DatabaseId = master.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"users\"] = example.Apply(getSqlUsersResult =\u003e getSqlUsersResult.Users),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmaster, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"master\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := mssql.GetSqlUsers(ctx, \u0026mssql.GetSqlUsersArgs{\n\t\t\tDatabaseId: pulumi.StringRef(master.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"users\", example.Users)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUsersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var master = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"master\")\n .build());\n\n final var example = MssqlFunctions.getSqlUsers(GetSqlUsersArgs.builder()\n .databaseId(master.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n ctx.export(\"users\", example.applyValue(getSqlUsersResult -\u003e getSqlUsersResult.users()));\n }\n}\n```\n```yaml\nvariables:\n master:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: master\n example:\n fn::invoke:\n Function: mssql:getSqlUsers\n Arguments:\n databaseId: ${master.id}\noutputs:\n users: ${example.users}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSqlUsers.\n", "properties": { diff --git a/sdk/dotnet/logo.png b/sdk/dotnet/logo.png index 1becba2..87648c4 100644 Binary files a/sdk/dotnet/logo.png and b/sdk/dotnet/logo.png differ diff --git a/sdk/go/mssql/azureadServicePrincipal.go b/sdk/go/mssql/azureadServicePrincipal.go index 72e7416..6f31caf 100644 --- a/sdk/go/mssql/azureadServicePrincipal.go +++ b/sdk/go/mssql/azureadServicePrincipal.go @@ -23,8 +23,8 @@ import ( // import ( // // "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/azureadUser.go b/sdk/go/mssql/azureadUser.go index f2c8fd1..fa9f00c 100644 --- a/sdk/go/mssql/azureadUser.go +++ b/sdk/go/mssql/azureadUser.go @@ -23,8 +23,8 @@ import ( // import ( // // "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/database.go b/sdk/go/mssql/database.go index 5daafcd..6cd3f4e 100644 --- a/sdk/go/mssql/database.go +++ b/sdk/go/mssql/database.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/databasePermission.go b/sdk/go/mssql/databasePermission.go index 430a32a..384fd9b 100644 --- a/sdk/go/mssql/databasePermission.go +++ b/sdk/go/mssql/databasePermission.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/databaseRole.go b/sdk/go/mssql/databaseRole.go index 111c0a2..6cc38f7 100644 --- a/sdk/go/mssql/databaseRole.go +++ b/sdk/go/mssql/databaseRole.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/databaseRoleMember.go b/sdk/go/mssql/databaseRoleMember.go index d713692..96c58d6 100644 --- a/sdk/go/mssql/databaseRoleMember.go +++ b/sdk/go/mssql/databaseRoleMember.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getAzureadServicePrincipal.go b/sdk/go/mssql/getAzureadServicePrincipal.go index 73748aa..6b2a5ee 100644 --- a/sdk/go/mssql/getAzureadServicePrincipal.go +++ b/sdk/go/mssql/getAzureadServicePrincipal.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getAzureadUser.go b/sdk/go/mssql/getAzureadUser.go index 52c6768..22d5c27 100644 --- a/sdk/go/mssql/getAzureadUser.go +++ b/sdk/go/mssql/getAzureadUser.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getDatabase.go b/sdk/go/mssql/getDatabase.go index 59b919f..fc3b97a 100644 --- a/sdk/go/mssql/getDatabase.go +++ b/sdk/go/mssql/getDatabase.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getDatabasePermissions.go b/sdk/go/mssql/getDatabasePermissions.go index b8d4c3f..cdbab12 100644 --- a/sdk/go/mssql/getDatabasePermissions.go +++ b/sdk/go/mssql/getDatabasePermissions.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getDatabaseRole.go b/sdk/go/mssql/getDatabaseRole.go index 54185de..f5f5428 100644 --- a/sdk/go/mssql/getDatabaseRole.go +++ b/sdk/go/mssql/getDatabaseRole.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getDatabaseRoles.go b/sdk/go/mssql/getDatabaseRoles.go index 3baaa65..7143fa1 100644 --- a/sdk/go/mssql/getDatabaseRoles.go +++ b/sdk/go/mssql/getDatabaseRoles.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getDatabases.go b/sdk/go/mssql/getDatabases.go index af45c4a..db817e2 100644 --- a/sdk/go/mssql/getDatabases.go +++ b/sdk/go/mssql/getDatabases.go @@ -16,8 +16,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getQuery.go b/sdk/go/mssql/getQuery.go index 6c1a5f5..71db8d7 100644 --- a/sdk/go/mssql/getQuery.go +++ b/sdk/go/mssql/getQuery.go @@ -21,8 +21,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getSchema.go b/sdk/go/mssql/getSchema.go index 08d3d76..2caa0e4 100644 --- a/sdk/go/mssql/getSchema.go +++ b/sdk/go/mssql/getSchema.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getSchemaPermissions.go b/sdk/go/mssql/getSchemaPermissions.go index 4e1bd9e..1bc8449 100644 --- a/sdk/go/mssql/getSchemaPermissions.go +++ b/sdk/go/mssql/getSchemaPermissions.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getSchemas.go b/sdk/go/mssql/getSchemas.go index fbdbd39..b8b9bf0 100644 --- a/sdk/go/mssql/getSchemas.go +++ b/sdk/go/mssql/getSchemas.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getServerPermissions.go b/sdk/go/mssql/getServerPermissions.go index bdffc85..bcc0595 100644 --- a/sdk/go/mssql/getServerPermissions.go +++ b/sdk/go/mssql/getServerPermissions.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getServerRole.go b/sdk/go/mssql/getServerRole.go index e72fb73..dca52b5 100644 --- a/sdk/go/mssql/getServerRole.go +++ b/sdk/go/mssql/getServerRole.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getServerRoles.go b/sdk/go/mssql/getServerRoles.go index d67f48d..07993b8 100644 --- a/sdk/go/mssql/getServerRoles.go +++ b/sdk/go/mssql/getServerRoles.go @@ -16,8 +16,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getSqlLogin.go b/sdk/go/mssql/getSqlLogin.go index b58717b..4a0616d 100644 --- a/sdk/go/mssql/getSqlLogin.go +++ b/sdk/go/mssql/getSqlLogin.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getSqlLogins.go b/sdk/go/mssql/getSqlLogins.go index bde0ce8..941e464 100644 --- a/sdk/go/mssql/getSqlLogins.go +++ b/sdk/go/mssql/getSqlLogins.go @@ -16,8 +16,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getSqlUser.go b/sdk/go/mssql/getSqlUser.go index 5766222..a72f2f1 100644 --- a/sdk/go/mssql/getSqlUser.go +++ b/sdk/go/mssql/getSqlUser.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/getSqlUsers.go b/sdk/go/mssql/getSqlUsers.go index cdf063f..bc72b33 100644 --- a/sdk/go/mssql/getSqlUsers.go +++ b/sdk/go/mssql/getSqlUsers.go @@ -19,8 +19,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/schemaPermission.go b/sdk/go/mssql/schemaPermission.go index f37647b..e5ff53c 100644 --- a/sdk/go/mssql/schemaPermission.go +++ b/sdk/go/mssql/schemaPermission.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/script.go b/sdk/go/mssql/script.go index d61f1cf..99a0f75 100644 --- a/sdk/go/mssql/script.go +++ b/sdk/go/mssql/script.go @@ -24,8 +24,8 @@ import ( // // "fmt" // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/serverPermission.go b/sdk/go/mssql/serverPermission.go index 634dfe8..94a46b2 100644 --- a/sdk/go/mssql/serverPermission.go +++ b/sdk/go/mssql/serverPermission.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/serverRole.go b/sdk/go/mssql/serverRole.go index a2002e2..c8f8437 100644 --- a/sdk/go/mssql/serverRole.go +++ b/sdk/go/mssql/serverRole.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/serverRoleMember.go b/sdk/go/mssql/serverRoleMember.go index 8e4f3de..8a5a391 100644 --- a/sdk/go/mssql/serverRoleMember.go +++ b/sdk/go/mssql/serverRoleMember.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/sqlLogin.go b/sdk/go/mssql/sqlLogin.go index ae49df2..42c3b05 100644 --- a/sdk/go/mssql/sqlLogin.go +++ b/sdk/go/mssql/sqlLogin.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) // diff --git a/sdk/go/mssql/sqlUser.go b/sdk/go/mssql/sqlUser.go index 12796db..c466f2c 100644 --- a/sdk/go/mssql/sqlUser.go +++ b/sdk/go/mssql/sqlUser.go @@ -20,8 +20,8 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-mssql/sdk/go/mssql" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql" // // ) //