From 49e0224441f717dbd1a037f4a1b68491637c1300 Mon Sep 17 00:00:00 2001 From: Piers Karsenbarg Date: Tue, 28 May 2024 17:48:53 +0100 Subject: [PATCH] Changed to use my fork of the TF provider --- .../cmd/pulumi-resource-nutanix/schema.json | 36 +++--- provider/go.mod | 2 +- provider/go.sum | 4 +- sdk/dotnet/AccessControlPolicy.cs | 2 - sdk/dotnet/AddressGroup.cs | 24 ++++ sdk/dotnet/FoundationCentralApiKeys.cs | 16 +++ sdk/dotnet/GetAccessControlPolicy.cs | 34 ----- sdk/dotnet/GetAddressGroup.cs | 76 +++++++---- sdk/dotnet/GetAddressGroups.cs | 26 +++- sdk/dotnet/GetRole.cs | 32 ----- sdk/dotnet/GetRoles.cs | 26 +++- sdk/dotnet/GetUser.cs | 46 ------- sdk/dotnet/GetUserGroup.cs | 68 ++++++---- sdk/dotnet/GetUserGroups.cs | 26 +++- sdk/dotnet/GetUsers.cs | 66 +++++++--- sdk/dotnet/NdbDatabase.cs | 82 +++++++++++- sdk/dotnet/Role.cs | 34 +++++ sdk/dotnet/ServiceGroup.cs | 36 ++++++ sdk/dotnet/Subnet.cs | 2 - sdk/dotnet/User.cs | 46 +++++++ sdk/dotnet/UserGroups.cs | 45 +++++++ sdk/go/nutanix/accessControlPolicy.go | 2 - sdk/go/nutanix/addressGroup.go | 30 +++++ sdk/go/nutanix/foundationCentralApiKeys.go | 24 ++++ sdk/go/nutanix/getAccessControlPolicy.go | 2 - sdk/go/nutanix/getAddressGroup.go | 33 +++++ sdk/go/nutanix/getAddressGroups.go | 22 ++++ sdk/go/nutanix/getRole.go | 2 - sdk/go/nutanix/getRoles.go | 22 ++++ sdk/go/nutanix/getUser.go | 2 - sdk/go/nutanix/getUserGroup.go | 36 ++++++ sdk/go/nutanix/getUserGroups.go | 22 ++++ sdk/go/nutanix/getUsers.go | 33 +++++ sdk/go/nutanix/ndbDatabase.go | 79 +++++++++++- sdk/go/nutanix/role.go | 38 ++++++ sdk/go/nutanix/serviceGroup.go | 39 ++++++ sdk/go/nutanix/subnet.go | 2 - sdk/go/nutanix/user.go | 58 +++++++++ sdk/go/nutanix/userGroups.go | 57 ++++++++ sdk/nodejs/accessControlPolicy.ts | 2 - sdk/nodejs/addressGroup.ts | 13 ++ sdk/nodejs/foundationCentralApiKeys.ts | 7 + sdk/nodejs/getAccessControlPolicy.ts | 4 - sdk/nodejs/getAddressGroup.ts | 34 +++++ sdk/nodejs/getAddressGroups.ts | 14 ++ sdk/nodejs/getRole.ts | 4 - sdk/nodejs/getRoles.ts | 14 ++ sdk/nodejs/getUser.ts | 4 - sdk/nodejs/getUserGroup.ts | 30 +++++ sdk/nodejs/getUserGroups.ts | 14 ++ sdk/nodejs/getUsers.ts | 28 ++++ sdk/nodejs/ndbDatabase.ts | 62 ++++++++- sdk/nodejs/role.ts | 23 ++++ sdk/nodejs/serviceGroup.ts | 22 ++++ sdk/nodejs/subnet.ts | 2 - sdk/nodejs/user.ts | 24 ++++ sdk/nodejs/userGroups.ts | 19 +++ .../pulumi_nutanix/access_control_policy.py | 4 - sdk/python/pulumi_nutanix/address_group.py | 24 ++++ .../foundation_central_api_keys.py | 14 ++ .../get_access_control_policy.py | 4 - .../pulumi_nutanix/get_address_group.py | 26 ++++ .../pulumi_nutanix/get_address_groups.py | 14 ++ sdk/python/pulumi_nutanix/get_role.py | 4 - sdk/python/pulumi_nutanix/get_roles.py | 14 ++ sdk/python/pulumi_nutanix/get_user.py | 4 - sdk/python/pulumi_nutanix/get_user_group.py | 18 +++ sdk/python/pulumi_nutanix/get_user_groups.py | 14 ++ sdk/python/pulumi_nutanix/get_users.py | 26 ++++ sdk/python/pulumi_nutanix/ndb_database.py | 122 +++++++++++++++++- sdk/python/pulumi_nutanix/role.py | 44 +++++++ sdk/python/pulumi_nutanix/service_group.py | 42 ++++++ sdk/python/pulumi_nutanix/subnet.py | 4 - sdk/python/pulumi_nutanix/user.py | 48 +++++++ sdk/python/pulumi_nutanix/user_groups.py | 38 ++++++ 75 files changed, 1746 insertions(+), 270 deletions(-) diff --git a/provider/cmd/pulumi-resource-nutanix/schema.json b/provider/cmd/pulumi-resource-nutanix/schema.json index cf313eb..9126517 100644 --- a/provider/cmd/pulumi-resource-nutanix/schema.json +++ b/provider/cmd/pulumi-resource-nutanix/schema.json @@ -46572,7 +46572,7 @@ }, "resources": { "nutanix:index/accessControlPolicy:AccessControlPolicy": { - "description": "Provides a resource to create an access control policy based on the input parameters.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_access_control_policy\" \"test\" {\n\tname = \"NAME OF ACCESS CONTROL POLICY\"\n\tdescription = \"DESCRIPTION OF THE ACCESS CONTROL POLICY\"\n\trole_reference {\n\t\tkind = \"role\"\n\t\tuuid = \"UUID of role\"\n\t}\n\tuser_reference_list{\n\t\tuuid = \"UUID of User existent\"\n\t\tname = \"admin\"\n\t}\n\n\tcontext_filter_list{\n entity_filter_expression_list{\n operator = \"IN\"\n left_hand_side_entity_type = \"cluster\"\n right_hand_side{\n uuid_list = [\"00058ef8-c31c-f0bc-0000-000000007b23\"]\n }\n }\n entity_filter_expression_list{\n operator = \"IN\"\n left_hand_side_entity_type = \"image\"\n right_hand_side{\n collection = \"ALL\"\n }\n }\n entity_filter_expression_list{\n operator = \"IN\"\n left_hand_side_entity_type = \"category\"\n right_hand_side{\n collection = \"ALL\"\n }\n }\n entity_filter_expression_list{\n operator = \"IN\"\n left_hand_side_entity_type = \"marketplace_item\"\n right_hand_side{\n collection = \"SELF_OWNED\"\n }\n }\n entity_filter_expression_list{\n operator = \"IN\"\n left_hand_side_entity_type = \"app_task\"\n right_hand_side{\n collection = \"SELF_OWNED\"\n }\n }\n entity_filter_expression_list{\n operator = \"IN\"\n left_hand_side_entity_type = \"app_variable\"\n right_hand_side{\n collection = \"SELF_OWNED\"\n }\n }\n }\n}\n```\n", + "description": "Provides a resource to create an access control policy based on the input parameters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.nutanix.AccessControlPolicy;\nimport com.pulumi.nutanix.AccessControlPolicyArgs;\nimport com.pulumi.nutanix.inputs.AccessControlPolicyContextFilterListArgs;\nimport com.pulumi.nutanix.inputs.AccessControlPolicyRoleReferenceArgs;\nimport com.pulumi.nutanix.inputs.AccessControlPolicyUserReferenceListArgs;\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 test = new AccessControlPolicy(\"test\", AccessControlPolicyArgs.builder()\n .contextFilterLists(AccessControlPolicyContextFilterListArgs.builder()\n .entityFilterExpressionLists( \n AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()\n .leftHandSideEntityType(\"cluster\")\n .operator(\"IN\")\n .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()\n .uuidList(\"00058ef8-c31c-f0bc-0000-000000007b23\")\n .build())\n .build(),\n AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()\n .leftHandSideEntityType(\"image\")\n .operator(\"IN\")\n .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()\n .collection(\"ALL\")\n .build())\n .build(),\n AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()\n .leftHandSideEntityType(\"category\")\n .operator(\"IN\")\n .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()\n .collection(\"ALL\")\n .build())\n .build(),\n AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()\n .leftHandSideEntityType(\"marketplace_item\")\n .operator(\"IN\")\n .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()\n .collection(\"SELF_OWNED\")\n .build())\n .build(),\n AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()\n .leftHandSideEntityType(\"app_task\")\n .operator(\"IN\")\n .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()\n .collection(\"SELF_OWNED\")\n .build())\n .build(),\n AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()\n .leftHandSideEntityType(\"app_variable\")\n .operator(\"IN\")\n .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()\n .collection(\"SELF_OWNED\")\n .build())\n .build())\n .build())\n .description(\"DESCRIPTION OF THE ACCESS CONTROL POLICY\")\n .roleReference(AccessControlPolicyRoleReferenceArgs.builder()\n .kind(\"role\")\n .uuid(\"UUID of role\")\n .build())\n .userReferenceLists(AccessControlPolicyUserReferenceListArgs.builder()\n .name(\"admin\")\n .uuid(\"UUID of User existent\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: nutanix:AccessControlPolicy\n properties:\n contextFilterLists:\n - entityFilterExpressionLists:\n - leftHandSideEntityType: cluster\n operator: IN\n rightHandSide:\n uuidList:\n - 00058ef8-c31c-f0bc-0000-000000007b23\n - leftHandSideEntityType: image\n operator: IN\n rightHandSide:\n collection: ALL\n - leftHandSideEntityType: category\n operator: IN\n rightHandSide:\n collection: ALL\n - leftHandSideEntityType: marketplace_item\n operator: IN\n rightHandSide:\n collection: SELF_OWNED\n - leftHandSideEntityType: app_task\n operator: IN\n rightHandSide:\n collection: SELF_OWNED\n - leftHandSideEntityType: app_variable\n operator: IN\n rightHandSide:\n collection: SELF_OWNED\n description: DESCRIPTION OF THE ACCESS CONTROL POLICY\n roleReference:\n kind: role\n uuid: UUID of role\n userReferenceLists:\n - name: admin\n uuid: UUID of User existent\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "apiVersion": { "type": "string", @@ -46760,7 +46760,7 @@ } }, "nutanix:index/addressGroup:AddressGroup": { - "description": "Provides a resource to create a address group based on the input parameters.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_address_group\" \"test_address\" {\n\tname = \"test\"\n\tdescription = \"test address groups resource\"\n\n\tip_address_block_list {\n\t\tip = \"10.0.0.0\"\n\t\tprefix_length = 24\n\t}\n}\n```\n", + "description": "Provides a resource to create a address group based on the input parameters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst testAddress = new nutanix.AddressGroup(\"testAddress\", {\n description: \"test address groups resource\",\n ipAddressBlockLists: [{\n ip: \"10.0.0.0\",\n prefixLength: 24,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ntest_address = nutanix.AddressGroup(\"testAddress\",\n description=\"test address groups resource\",\n ip_address_block_lists=[nutanix.AddressGroupIpAddressBlockListArgs(\n ip=\"10.0.0.0\",\n prefix_length=24,\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testAddress = new Nutanix.AddressGroup(\"testAddress\", new()\n {\n Description = \"test address groups resource\",\n IpAddressBlockLists = new[]\n {\n new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs\n {\n Ip = \"10.0.0.0\",\n PrefixLength = 24,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewAddressGroup(ctx, \"testAddress\", \u0026nutanix.AddressGroupArgs{\n\t\t\tDescription: pulumi.String(\"test address groups resource\"),\n\t\t\tIpAddressBlockLists: nutanix.AddressGroupIpAddressBlockListArray{\n\t\t\t\t\u0026nutanix.AddressGroupIpAddressBlockListArgs{\n\t\t\t\t\tIp: pulumi.String(\"10.0.0.0\"),\n\t\t\t\t\tPrefixLength: pulumi.Int(24),\n\t\t\t\t},\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.nutanix.AddressGroup;\nimport com.pulumi.nutanix.AddressGroupArgs;\nimport com.pulumi.nutanix.inputs.AddressGroupIpAddressBlockListArgs;\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 testAddress = new AddressGroup(\"testAddress\", AddressGroupArgs.builder()\n .description(\"test address groups resource\")\n .ipAddressBlockLists(AddressGroupIpAddressBlockListArgs.builder()\n .ip(\"10.0.0.0\")\n .prefixLength(24)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testAddress:\n type: nutanix:AddressGroup\n properties:\n description: test address groups resource\n ipAddressBlockLists:\n - ip: 10.0.0.0\n prefixLength: 24\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "addressGroupString": { "type": "string", @@ -47091,7 +47091,7 @@ } }, "nutanix:index/foundationCentralApiKeys:FoundationCentralApiKeys": { - "description": "Provides a resource to create a new API key for nodes registration with Foundation Central. \n\n## Example Usage\n\n``` hcl\nresource \"nutanix_foundation_central_api_keys\" \"new_api_key\" {\n\talias = \"\u003cNAME-FOR-API-KEY\u003e\"\n}\n```\n", + "description": "Provides a resource to create a new API key for nodes registration with Foundation Central. \n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst newApiKey = new nutanix.FoundationCentralApiKeys(\"newApiKey\", {alias: \"\u003cNAME-FOR-API-KEY\u003e\"});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nnew_api_key = nutanix.FoundationCentralApiKeys(\"newApiKey\", alias=\"\u003cNAME-FOR-API-KEY\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var newApiKey = new Nutanix.FoundationCentralApiKeys(\"newApiKey\", new()\n {\n Alias = \"\u003cNAME-FOR-API-KEY\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewFoundationCentralApiKeys(ctx, \"newApiKey\", \u0026nutanix.FoundationCentralApiKeysArgs{\n\t\t\tAlias: pulumi.String(\"\u003cNAME-FOR-API-KEY\u003e\"),\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.nutanix.FoundationCentralApiKeys;\nimport com.pulumi.nutanix.FoundationCentralApiKeysArgs;\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 newApiKey = new FoundationCentralApiKeys(\"newApiKey\", FoundationCentralApiKeysArgs.builder()\n .alias(\"\u003cNAME-FOR-API-KEY\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n newApiKey:\n type: nutanix:FoundationCentralApiKeys\n properties:\n alias: \u003cNAME-FOR-API-KEY\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "alias": { "type": "string", @@ -50088,7 +50088,7 @@ } }, "nutanix:index/ndbDatabase:NdbDatabase": { - "description": "Provides a resource to create database instance based on the input parameters. For 1.8.0 release, only postgress database type is qualified and officially supported.\n\n## Example Usage\n\n### NDB database resource with new database server VM\n\n``` hcl\nresource \"nutanix_ndb_database\" \"dbp\" {\n\n // name of database type\n databasetype = \"postgres_database\"\n\n // required name of db instance\n name = \"test-inst\"\n description = \"add description\"\n\n // adding the profiles details\n softwareprofileid = \"{{ software_profile_id }}\"\n softwareprofileversionid = \"{{ software_profile_version_id }}\"\n computeprofileid = \"{{ compute_profile_id }}\"\n networkprofileid = \"{{ network_profile_id }}\"\n dbparameterprofileid = \"{{ db_parameter_profile_id }}\"\n\n // postgreSQL Info\n postgresql_info{\n listener_port = \"{{ listner_port }}\"\n\n database_size= \"{{ 200 }}\"\n\n db_password = \"password\"\n\n database_names= \"testdb1\"\n }\n\n // era cluster id\n nxclusterid= local.clusters.EraCluster.id\n\n // ssh-key\n sshpublickey= \"{{ ssh-public-key }}\"\n\n // node for single instance\n nodes{\n // name of dbserver vm \n vmname= \"test-era-vm1\"\n\n // network profile id\n networkprofileid= \"\u003cnetwork-profile-uuid\u003e\"\n }\n\n // time machine info \n timemachineinfo {\n name= \"test-pg-inst\"\n description=\"description of time machine\"\n slaid= \"{{ sla_id }}\"\n\n // schedule info fields are optional.\n schedule {\n snapshottimeofday{\n hours= 16\n minutes= 0\n seconds= 0\n }\n continuousschedule{\n enabled=true\n logbackupinterval= 30\n snapshotsperday=1\n }\n weeklyschedule{\n enabled=true\n dayofweek= \"WEDNESDAY\"\n }\n monthlyschedule{\n enabled = true\n dayofmonth= \"27\"\n }\n quartelyschedule{\n enabled=true\n startmonth=\"JANUARY\"\n dayofmonth= 27\n }\n yearlyschedule{\n enabled= false\n dayofmonth= 31\n month=\"DECEMBER\"\n }\n }\n }\n}\n```\n\n\n### NDB database resource to provision HA instance with new database server VM\n\n``` hcl\nresource \"nutanix_ndb_database\" \"dbp\" {\n databasetype = \"postgres_database\"\n name = \"test-pg-inst-HA-tf\"\n description = \"adding description\"\n\n // adding the profiles details\n softwareprofileid = \"{{ software_profile_id }}\"\n softwareprofileversionid = \"{{ software_profile_version_id }}\"\n computeprofileid = \"{{ compute_profile_id }}\"\n networkprofileid = \"{{ network_profile_id }}\"\n dbparameterprofileid = \"{{ db_parameter_profile_id }}\"\n\n // required for HA instance\n createdbserver = true\n clustered = true\n\n // node count (with haproxy server node)\n nodecount= 4 \n\n // min required details for provisioning HA instance\n postgresql_info{\n listener_port = \"5432\"\n\n database_size= \"200\"\n\n db_password = \"{{ database password}}\"\n\n database_names= \"testdb1\"\n\n ha_instance{\n proxy_read_port= \"5001\"\n\n proxy_write_port = \"5000\"\n\n cluster_name= \"{{ cluster_name }}\"\n\n patroni_cluster_name = \" {{ patroni_cluster_name }}\"\n }\n }\n \n nxclusterid= \"1c42ca25-32f4-42d9-a2bd-6a21f925b725\"\n sshpublickey= \"{{ ssh_public_key }}\"\n \n // nodes are required.\n\n // HA proxy node \n nodes{\n properties{\n name = \"node_type\"\n value = \"haproxy\"\n }\n vmname = \"{{ vm name }}\"\n nx_cluster_id = \"{{ nx_cluster_id }}\"\n }\n\n // Primary node for read/write ops\n nodes{\n properties{\n name= \"role\"\n value= \"Primary\"\n }\n properties{\n name= \"failover_mode\"\n value= \"Automatic\"\n }\n properties{\n name= \"node_type\"\n value= \"database\"\n }\n\n vmname = \"{{ name of vm }}\"\n networkprofileid=\"{{ network_profile_id }}\"\n computeprofileid= \"{{ compute_profile_id }}\"\n nx_cluster_id= \"{{ nx_cluster_id }}\"\n }\n\n // secondary nodes for read ops\n nodes{\n properties{\n name= \"role\"\n value= \"Secondary\"\n }\n properties{\n name= \"failover_mode\"\n value= \"Automatic\"\n }\n properties{\n name= \"node_type\"\n value= \"database\"\n }\n vmname = \"{{ name of vm }}\"\n networkprofileid=\"{{ network_profile_id }}\"\n computeprofileid= \"{{ compute_profile_id }}\"\n nx_cluster_id= \"{{ nx_cluster_id }}\"\n }\n nodes{\n properties{\n name= \"role\"\n value= \"Secondary\"\n }\n properties{\n name= \"failover_mode\"\n value= \"Automatic\"\n }\n properties{\n name= \"node_type\"\n value= \"database\"\n }\n \n vmname = \"{{ name of vm }}\"\n networkprofileid=\"{{ network_profile_id }}\"\n computeprofileid= \"{{ compute_profile_id }}\"\n nx_cluster_id= \"{{ nx_cluster_id }}\"\n }\n\n // time machine required \n timemachineinfo {\n name= \"test-pg-inst-HA\"\n description=\"\"\n sla_details{\n primary_sla{\n sla_id= \"{{ required SLA}}0\"\n nx_cluster_ids= [\n \"{{ nx_cluster_id}}\"\n ]\n }\n }\n // schedule fields are optional\n schedule {\n snapshottimeofday{\n hours= 16\n minutes= 0\n seconds= 0\n }\n continuousschedule{\n enabled=true\n logbackupinterval= 30\n snapshotsperday=1\n }\n weeklyschedule{\n enabled=true\n dayofweek= \"WEDNESDAY\"\n }\n monthlyschedule{\n enabled = true\n dayofmonth= \"27\"\n }\n quartelyschedule{\n enabled=true\n startmonth=\"JANUARY\"\n dayofmonth= 27\n }\n yearlyschedule{\n enabled= false\n dayofmonth= 31\n month=\"DECEMBER\"\n }\n }\n }\n \n vm_password= \"{{ vm_password}}\"\n autotunestagingdrive= true\n}\n```\n\n### NDB database resource with registered database server VM\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst dbp = new nutanix.NdbDatabase(\"dbp\", {\n actionarguments: [{\n name: \"host_ip\",\n value: \"{{ hostIP }}\",\n }],\n createdbserver: false,\n databasetype: \"postgres_database\",\n dbparameterprofileid: \"{{ db_parameter_profile_id }}\",\n dbserverId: \"{{ dbserver_id }}\",\n description: \"add description\",\n nodes: [{\n dbserverid: \"{{ dbserver_id }}\",\n }],\n postgresqlInfo: {\n databaseNames: \"testdb1\",\n databaseSize: \"{{ 200 }}\",\n dbPassword: \"password\",\n listenerPort: \"{{ listner_port }}\",\n },\n timemachineinfo: {\n description: \"description of time machine\",\n name: \"test-pg-inst\",\n schedule: {\n continuousschedule: {\n enabled: true,\n logbackupinterval: 30,\n snapshotsperday: 1,\n },\n monthlyschedule: {\n dayofmonth: 27,\n enabled: true,\n },\n quartelyschedule: {\n dayofmonth: 27,\n enabled: true,\n startmonth: \"JANUARY\",\n },\n snapshottimeofday: {\n hours: 16,\n minutes: 0,\n seconds: 0,\n },\n weeklyschedule: {\n dayofweek: \"WEDNESDAY\",\n enabled: true,\n },\n yearlyschedule: {\n dayofmonth: 31,\n enabled: false,\n month: \"DECEMBER\",\n },\n },\n slaid: \"{{ sla_id }}\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ndbp = nutanix.NdbDatabase(\"dbp\",\n actionarguments=[nutanix.NdbDatabaseActionargumentArgs(\n name=\"host_ip\",\n value=\"{{ hostIP }}\",\n )],\n createdbserver=False,\n databasetype=\"postgres_database\",\n dbparameterprofileid=\"{{ db_parameter_profile_id }}\",\n dbserver_id=\"{{ dbserver_id }}\",\n description=\"add description\",\n nodes=[nutanix.NdbDatabaseNodeArgs(\n dbserverid=\"{{ dbserver_id }}\",\n )],\n postgresql_info=nutanix.NdbDatabasePostgresqlInfoArgs(\n database_names=\"testdb1\",\n database_size=\"{{ 200 }}\",\n db_password=\"password\",\n listener_port=\"{{ listner_port }}\",\n ),\n timemachineinfo=nutanix.NdbDatabaseTimemachineinfoArgs(\n description=\"description of time machine\",\n name=\"test-pg-inst\",\n schedule=nutanix.NdbDatabaseTimemachineinfoScheduleArgs(\n continuousschedule=nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs(\n enabled=True,\n logbackupinterval=30,\n snapshotsperday=1,\n ),\n monthlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs(\n dayofmonth=27,\n enabled=True,\n ),\n quartelyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs(\n dayofmonth=27,\n enabled=True,\n startmonth=\"JANUARY\",\n ),\n snapshottimeofday=nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs(\n hours=16,\n minutes=0,\n seconds=0,\n ),\n weeklyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs(\n dayofweek=\"WEDNESDAY\",\n enabled=True,\n ),\n yearlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs(\n dayofmonth=31,\n enabled=False,\n month=\"DECEMBER\",\n ),\n ),\n slaid=\"{{ sla_id }}\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dbp = new Nutanix.NdbDatabase(\"dbp\", new()\n {\n Actionarguments = new[]\n {\n new Nutanix.Inputs.NdbDatabaseActionargumentArgs\n {\n Name = \"host_ip\",\n Value = \"{{ hostIP }}\",\n },\n },\n Createdbserver = false,\n Databasetype = \"postgres_database\",\n Dbparameterprofileid = \"{{ db_parameter_profile_id }}\",\n DbserverId = \"{{ dbserver_id }}\",\n Description = \"add description\",\n Nodes = new[]\n {\n new Nutanix.Inputs.NdbDatabaseNodeArgs\n {\n Dbserverid = \"{{ dbserver_id }}\",\n },\n },\n PostgresqlInfo = new Nutanix.Inputs.NdbDatabasePostgresqlInfoArgs\n {\n DatabaseNames = \"testdb1\",\n DatabaseSize = \"{{ 200 }}\",\n DbPassword = \"password\",\n ListenerPort = \"{{ listner_port }}\",\n },\n Timemachineinfo = new Nutanix.Inputs.NdbDatabaseTimemachineinfoArgs\n {\n Description = \"description of time machine\",\n Name = \"test-pg-inst\",\n Schedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleArgs\n {\n Continuousschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs\n {\n Enabled = true,\n Logbackupinterval = 30,\n Snapshotsperday = 1,\n },\n Monthlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs\n {\n Dayofmonth = 27,\n Enabled = true,\n },\n Quartelyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs\n {\n Dayofmonth = 27,\n Enabled = true,\n Startmonth = \"JANUARY\",\n },\n Snapshottimeofday = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs\n {\n Hours = 16,\n Minutes = 0,\n Seconds = 0,\n },\n Weeklyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs\n {\n Dayofweek = \"WEDNESDAY\",\n Enabled = true,\n },\n Yearlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs\n {\n Dayofmonth = 31,\n Enabled = false,\n Month = \"DECEMBER\",\n },\n },\n Slaid = \"{{ sla_id }}\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewNdbDatabase(ctx, \"dbp\", \u0026nutanix.NdbDatabaseArgs{\n\t\t\tActionarguments: nutanix.NdbDatabaseActionargumentArray{\n\t\t\t\t\u0026nutanix.NdbDatabaseActionargumentArgs{\n\t\t\t\t\tName: pulumi.String(\"host_ip\"),\n\t\t\t\t\tValue: pulumi.String(\"{{ hostIP }}\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tCreatedbserver: pulumi.Bool(false),\n\t\t\tDatabasetype: pulumi.String(\"postgres_database\"),\n\t\t\tDbparameterprofileid: pulumi.String(\"{{ db_parameter_profile_id }}\"),\n\t\t\tDbserverId: pulumi.String(\"{{ dbserver_id }}\"),\n\t\t\tDescription: pulumi.String(\"add description\"),\n\t\t\tNodes: nutanix.NdbDatabaseNodeArray{\n\t\t\t\t\u0026nutanix.NdbDatabaseNodeArgs{\n\t\t\t\t\tDbserverid: pulumi.String(\"{{ dbserver_id }}\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPostgresqlInfo: \u0026nutanix.NdbDatabasePostgresqlInfoArgs{\n\t\t\t\tDatabaseNames: pulumi.String(\"testdb1\"),\n\t\t\t\tDatabaseSize: pulumi.String(\"{{ 200 }}\"),\n\t\t\t\tDbPassword: pulumi.String(\"password\"),\n\t\t\t\tListenerPort: pulumi.String(\"{{ listner_port }}\"),\n\t\t\t},\n\t\t\tTimemachineinfo: \u0026nutanix.NdbDatabaseTimemachineinfoArgs{\n\t\t\t\tDescription: pulumi.String(\"description of time machine\"),\n\t\t\t\tName: pulumi.String(\"test-pg-inst\"),\n\t\t\t\tSchedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleArgs{\n\t\t\t\t\tContinuousschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs{\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tLogbackupinterval: pulumi.Int(30),\n\t\t\t\t\t\tSnapshotsperday: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t\tMonthlyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs{\n\t\t\t\t\t\tDayofmonth: pulumi.Int(27),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t\tQuartelyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs{\n\t\t\t\t\t\tDayofmonth: pulumi.Int(27),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tStartmonth: pulumi.String(\"JANUARY\"),\n\t\t\t\t\t},\n\t\t\t\t\tSnapshottimeofday: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs{\n\t\t\t\t\t\tHours: pulumi.Int(16),\n\t\t\t\t\t\tMinutes: pulumi.Int(0),\n\t\t\t\t\t\tSeconds: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t\tWeeklyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs{\n\t\t\t\t\t\tDayofweek: pulumi.String(\"WEDNESDAY\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t\tYearlyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs{\n\t\t\t\t\t\tDayofmonth: pulumi.Int(31),\n\t\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\t\tMonth: pulumi.String(\"DECEMBER\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tSlaid: pulumi.String(\"{{ sla_id }}\"),\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.nutanix.NdbDatabase;\nimport com.pulumi.nutanix.NdbDatabaseArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseActionargumentArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseNodeArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabasePostgresqlInfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs;\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 dbp = new NdbDatabase(\"dbp\", NdbDatabaseArgs.builder()\n .actionarguments(NdbDatabaseActionargumentArgs.builder()\n .name(\"host_ip\")\n .value(\"{{ hostIP }}\")\n .build())\n .createdbserver(false)\n .databasetype(\"postgres_database\")\n .dbparameterprofileid(\"{{ db_parameter_profile_id }}\")\n .dbserverId(\"{{ dbserver_id }}\")\n .description(\"add description\")\n .nodes(NdbDatabaseNodeArgs.builder()\n .dbserverid(\"{{ dbserver_id }}\")\n .build())\n .postgresqlInfo(NdbDatabasePostgresqlInfoArgs.builder()\n .databaseNames(\"testdb1\")\n .databaseSize(\"{{ 200 }}\")\n .dbPassword(\"password\")\n .listenerPort(\"{{ listner_port }}\")\n .build())\n .timemachineinfo(NdbDatabaseTimemachineinfoArgs.builder()\n .description(\"description of time machine\")\n .name(\"test-pg-inst\")\n .schedule(NdbDatabaseTimemachineinfoScheduleArgs.builder()\n .continuousschedule(NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs.builder()\n .enabled(true)\n .logbackupinterval(30)\n .snapshotsperday(1)\n .build())\n .monthlyschedule(NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs.builder()\n .dayofmonth(\"27\")\n .enabled(true)\n .build())\n .quartelyschedule(NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs.builder()\n .dayofmonth(27)\n .enabled(true)\n .startmonth(\"JANUARY\")\n .build())\n .snapshottimeofday(NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs.builder()\n .hours(16)\n .minutes(0)\n .seconds(0)\n .build())\n .weeklyschedule(NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs.builder()\n .dayofweek(\"WEDNESDAY\")\n .enabled(true)\n .build())\n .yearlyschedule(NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs.builder()\n .dayofmonth(31)\n .enabled(false)\n .month(\"DECEMBER\")\n .build())\n .build())\n .slaid(\"{{ sla_id }}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dbp:\n type: nutanix:NdbDatabase\n properties:\n actionarguments:\n - name: host_ip\n value: '{{ hostIP }}'\n createdbserver: false\n # name of database type\n databasetype: postgres_database\n # adding the profiles details\n dbparameterprofileid: '{{ db_parameter_profile_id }}'\n # required dbserver id\n dbserverId: '{{ dbserver_id }}'\n description: add description\n # node for single instance\n nodes:\n - dbserverid: '{{ dbserver_id }}'\n # postgreSQL Info\n postgresqlInfo:\n databaseNames: testdb1\n databaseSize: '{{ 200 }}'\n dbPassword: password\n listenerPort: '{{ listner_port }}'\n # time machine info\n timemachineinfo:\n description: description of time machine\n name: test-pg-inst\n schedule:\n continuousschedule:\n enabled: true\n logbackupinterval: 30\n snapshotsperday: 1\n monthlyschedule:\n dayofmonth: '27'\n enabled: true\n quartelyschedule:\n dayofmonth: 27\n enabled: true\n startmonth: JANUARY\n snapshottimeofday:\n hours: 16\n minutes: 0\n seconds: 0\n weeklyschedule:\n dayofweek: WEDNESDAY\n enabled: true\n yearlyschedule:\n dayofmonth: 31\n enabled: false\n month: DECEMBER\n slaid: '{{ sla_id }}'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## lifecycle\n\n* `Update` : - Currently only update of instance's name and description is supported using this resource\n\nSee detailed information in [NDB Database Instance](https://www.nutanix.dev/api_references/ndb/#/9d9eee4304496-provision-a-database).\n", + "description": "Provides a resource to create database instance based on the input parameters. For 1.8.0 release, only postgress database type is qualified and officially supported.\n\n## Example Usage\n\n### NDB database resource with new database server VM\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst dbp = new nutanix.NdbDatabase(\"dbp\", {\n databasetype: \"postgres_database\",\n description: \"add description\",\n softwareprofileid: \"{{ software_profile_id }}\",\n softwareprofileversionid: \"{{ software_profile_version_id }}\",\n computeprofileid: \"{{ compute_profile_id }}\",\n networkprofileid: \"{{ network_profile_id }}\",\n dbparameterprofileid: \"{{ db_parameter_profile_id }}\",\n postgresqlInfo: {\n listenerPort: \"{{ listner_port }}\",\n databaseSize: \"{{ 200 }}\",\n dbPassword: \"password\",\n databaseNames: \"testdb1\",\n },\n nxclusterid: local.clusters.EraCluster.id,\n sshpublickey: \"{{ ssh-public-key }}\",\n nodes: [{\n vmname: \"test-era-vm1\",\n networkprofileid: \"\u003cnetwork-profile-uuid\u003e\",\n }],\n timemachineinfo: {\n name: \"test-pg-inst\",\n description: \"description of time machine\",\n slaid: \"{{ sla_id }}\",\n schedule: {\n snapshottimeofday: {\n hours: 16,\n minutes: 0,\n seconds: 0,\n },\n continuousschedule: {\n enabled: true,\n logbackupinterval: 30,\n snapshotsperday: 1,\n },\n weeklyschedule: {\n enabled: true,\n dayofweek: \"WEDNESDAY\",\n },\n monthlyschedule: {\n enabled: true,\n dayofmonth: 27,\n },\n quartelyschedule: {\n enabled: true,\n startmonth: \"JANUARY\",\n dayofmonth: 27,\n },\n yearlyschedule: {\n enabled: false,\n dayofmonth: 31,\n month: \"DECEMBER\",\n },\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ndbp = nutanix.NdbDatabase(\"dbp\",\n databasetype=\"postgres_database\",\n description=\"add description\",\n softwareprofileid=\"{{ software_profile_id }}\",\n softwareprofileversionid=\"{{ software_profile_version_id }}\",\n computeprofileid=\"{{ compute_profile_id }}\",\n networkprofileid=\"{{ network_profile_id }}\",\n dbparameterprofileid=\"{{ db_parameter_profile_id }}\",\n postgresql_info=nutanix.NdbDatabasePostgresqlInfoArgs(\n listener_port=\"{{ listner_port }}\",\n database_size=\"{{ 200 }}\",\n db_password=\"password\",\n database_names=\"testdb1\",\n ),\n nxclusterid=local[\"clusters\"][\"EraCluster\"][\"id\"],\n sshpublickey=\"{{ ssh-public-key }}\",\n nodes=[nutanix.NdbDatabaseNodeArgs(\n vmname=\"test-era-vm1\",\n networkprofileid=\"\u003cnetwork-profile-uuid\u003e\",\n )],\n timemachineinfo=nutanix.NdbDatabaseTimemachineinfoArgs(\n name=\"test-pg-inst\",\n description=\"description of time machine\",\n slaid=\"{{ sla_id }}\",\n schedule=nutanix.NdbDatabaseTimemachineinfoScheduleArgs(\n snapshottimeofday=nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs(\n hours=16,\n minutes=0,\n seconds=0,\n ),\n continuousschedule=nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs(\n enabled=True,\n logbackupinterval=30,\n snapshotsperday=1,\n ),\n weeklyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs(\n enabled=True,\n dayofweek=\"WEDNESDAY\",\n ),\n monthlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs(\n enabled=True,\n dayofmonth=27,\n ),\n quartelyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs(\n enabled=True,\n startmonth=\"JANUARY\",\n dayofmonth=27,\n ),\n yearlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs(\n enabled=False,\n dayofmonth=31,\n month=\"DECEMBER\",\n ),\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dbp = new Nutanix.NdbDatabase(\"dbp\", new()\n {\n Databasetype = \"postgres_database\",\n Description = \"add description\",\n Softwareprofileid = \"{{ software_profile_id }}\",\n Softwareprofileversionid = \"{{ software_profile_version_id }}\",\n Computeprofileid = \"{{ compute_profile_id }}\",\n Networkprofileid = \"{{ network_profile_id }}\",\n Dbparameterprofileid = \"{{ db_parameter_profile_id }}\",\n PostgresqlInfo = new Nutanix.Inputs.NdbDatabasePostgresqlInfoArgs\n {\n ListenerPort = \"{{ listner_port }}\",\n DatabaseSize = \"{{ 200 }}\",\n DbPassword = \"password\",\n DatabaseNames = \"testdb1\",\n },\n Nxclusterid = local.Clusters.EraCluster.Id,\n Sshpublickey = \"{{ ssh-public-key }}\",\n Nodes = new[]\n {\n new Nutanix.Inputs.NdbDatabaseNodeArgs\n {\n Vmname = \"test-era-vm1\",\n Networkprofileid = \"\u003cnetwork-profile-uuid\u003e\",\n },\n },\n Timemachineinfo = new Nutanix.Inputs.NdbDatabaseTimemachineinfoArgs\n {\n Name = \"test-pg-inst\",\n Description = \"description of time machine\",\n Slaid = \"{{ sla_id }}\",\n Schedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleArgs\n {\n Snapshottimeofday = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs\n {\n Hours = 16,\n Minutes = 0,\n Seconds = 0,\n },\n Continuousschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs\n {\n Enabled = true,\n Logbackupinterval = 30,\n Snapshotsperday = 1,\n },\n Weeklyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs\n {\n Enabled = true,\n Dayofweek = \"WEDNESDAY\",\n },\n Monthlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs\n {\n Enabled = true,\n Dayofmonth = 27,\n },\n Quartelyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs\n {\n Enabled = true,\n Startmonth = \"JANUARY\",\n Dayofmonth = 27,\n },\n Yearlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs\n {\n Enabled = false,\n Dayofmonth = 31,\n Month = \"DECEMBER\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewNdbDatabase(ctx, \"dbp\", \u0026nutanix.NdbDatabaseArgs{\n\t\t\tDatabasetype: pulumi.String(\"postgres_database\"),\n\t\t\tDescription: pulumi.String(\"add description\"),\n\t\t\tSoftwareprofileid: pulumi.String(\"{{ software_profile_id }}\"),\n\t\t\tSoftwareprofileversionid: pulumi.String(\"{{ software_profile_version_id }}\"),\n\t\t\tComputeprofileid: pulumi.String(\"{{ compute_profile_id }}\"),\n\t\t\tNetworkprofileid: pulumi.String(\"{{ network_profile_id }}\"),\n\t\t\tDbparameterprofileid: pulumi.String(\"{{ db_parameter_profile_id }}\"),\n\t\t\tPostgresqlInfo: \u0026nutanix.NdbDatabasePostgresqlInfoArgs{\n\t\t\t\tListenerPort: pulumi.String(\"{{ listner_port }}\"),\n\t\t\t\tDatabaseSize: pulumi.String(\"{{ 200 }}\"),\n\t\t\t\tDbPassword: pulumi.String(\"password\"),\n\t\t\t\tDatabaseNames: pulumi.String(\"testdb1\"),\n\t\t\t},\n\t\t\tNxclusterid: pulumi.Any(local.Clusters.EraCluster.Id),\n\t\t\tSshpublickey: pulumi.String(\"{{ ssh-public-key }}\"),\n\t\t\tNodes: nutanix.NdbDatabaseNodeArray{\n\t\t\t\t\u0026nutanix.NdbDatabaseNodeArgs{\n\t\t\t\t\tVmname: pulumi.String(\"test-era-vm1\"),\n\t\t\t\t\tNetworkprofileid: pulumi.String(\"\u003cnetwork-profile-uuid\u003e\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTimemachineinfo: \u0026nutanix.NdbDatabaseTimemachineinfoArgs{\n\t\t\t\tName: pulumi.String(\"test-pg-inst\"),\n\t\t\t\tDescription: pulumi.String(\"description of time machine\"),\n\t\t\t\tSlaid: pulumi.String(\"{{ sla_id }}\"),\n\t\t\t\tSchedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleArgs{\n\t\t\t\t\tSnapshottimeofday: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs{\n\t\t\t\t\t\tHours: pulumi.Int(16),\n\t\t\t\t\t\tMinutes: pulumi.Int(0),\n\t\t\t\t\t\tSeconds: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t\tContinuousschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs{\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tLogbackupinterval: pulumi.Int(30),\n\t\t\t\t\t\tSnapshotsperday: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t\tWeeklyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs{\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tDayofweek: pulumi.String(\"WEDNESDAY\"),\n\t\t\t\t\t},\n\t\t\t\t\tMonthlyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs{\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tDayofmonth: pulumi.Int(27),\n\t\t\t\t\t},\n\t\t\t\t\tQuartelyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs{\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tStartmonth: pulumi.String(\"JANUARY\"),\n\t\t\t\t\t\tDayofmonth: pulumi.Int(27),\n\t\t\t\t\t},\n\t\t\t\t\tYearlyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs{\n\t\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\t\tDayofmonth: pulumi.Int(31),\n\t\t\t\t\t\tMonth: pulumi.String(\"DECEMBER\"),\n\t\t\t\t\t},\n\t\t\t\t},\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.nutanix.NdbDatabase;\nimport com.pulumi.nutanix.NdbDatabaseArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabasePostgresqlInfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseNodeArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs;\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 dbp = new NdbDatabase(\"dbp\", NdbDatabaseArgs.builder()\n .databasetype(\"postgres_database\")\n .description(\"add description\")\n .softwareprofileid(\"{{ software_profile_id }}\")\n .softwareprofileversionid(\"{{ software_profile_version_id }}\")\n .computeprofileid(\"{{ compute_profile_id }}\")\n .networkprofileid(\"{{ network_profile_id }}\")\n .dbparameterprofileid(\"{{ db_parameter_profile_id }}\")\n .postgresqlInfo(NdbDatabasePostgresqlInfoArgs.builder()\n .listenerPort(\"{{ listner_port }}\")\n .databaseSize(\"{{ 200 }}\")\n .dbPassword(\"password\")\n .databaseNames(\"testdb1\")\n .build())\n .nxclusterid(local.clusters().EraCluster().id())\n .sshpublickey(\"{{ ssh-public-key }}\")\n .nodes(NdbDatabaseNodeArgs.builder()\n .vmname(\"test-era-vm1\")\n .networkprofileid(\"\u003cnetwork-profile-uuid\u003e\")\n .build())\n .timemachineinfo(NdbDatabaseTimemachineinfoArgs.builder()\n .name(\"test-pg-inst\")\n .description(\"description of time machine\")\n .slaid(\"{{ sla_id }}\")\n .schedule(NdbDatabaseTimemachineinfoScheduleArgs.builder()\n .snapshottimeofday(NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs.builder()\n .hours(16)\n .minutes(0)\n .seconds(0)\n .build())\n .continuousschedule(NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs.builder()\n .enabled(true)\n .logbackupinterval(30)\n .snapshotsperday(1)\n .build())\n .weeklyschedule(NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs.builder()\n .enabled(true)\n .dayofweek(\"WEDNESDAY\")\n .build())\n .monthlyschedule(NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs.builder()\n .enabled(true)\n .dayofmonth(\"27\")\n .build())\n .quartelyschedule(NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs.builder()\n .enabled(true)\n .startmonth(\"JANUARY\")\n .dayofmonth(27)\n .build())\n .yearlyschedule(NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs.builder()\n .enabled(false)\n .dayofmonth(31)\n .month(\"DECEMBER\")\n .build())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dbp:\n type: nutanix:NdbDatabase\n properties:\n # name of database type\n databasetype: postgres_database\n description: add description\n # adding the profiles details\n softwareprofileid: '{{ software_profile_id }}'\n softwareprofileversionid: '{{ software_profile_version_id }}'\n computeprofileid: '{{ compute_profile_id }}'\n networkprofileid: '{{ network_profile_id }}'\n dbparameterprofileid: '{{ db_parameter_profile_id }}'\n postgresqlInfo:\n listenerPort: '{{ listner_port }}'\n databaseSize: '{{ 200 }}'\n dbPassword: password\n databaseNames: testdb1\n # era cluster id\n nxclusterid: ${local.clusters.EraCluster.id}\n # ssh-key\n sshpublickey: '{{ ssh-public-key }}'\n # node for single instance\n nodes:\n - vmname: test-era-vm1\n networkprofileid: \u003cnetwork-profile-uuid\u003e\n timemachineinfo:\n name: test-pg-inst\n description: description of time machine\n slaid: '{{ sla_id }}'\n schedule:\n snapshottimeofday:\n hours: 16\n minutes: 0\n seconds: 0\n continuousschedule:\n enabled: true\n logbackupinterval: 30\n snapshotsperday: 1\n weeklyschedule:\n enabled: true\n dayofweek: WEDNESDAY\n monthlyschedule:\n enabled: true\n dayofmonth: '27'\n quartelyschedule:\n enabled: true\n startmonth: JANUARY\n dayofmonth: 27\n yearlyschedule:\n enabled: false\n dayofmonth: 31\n month: DECEMBER\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### NDB database resource to provision HA instance with new database server VM\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.nutanix.NdbDatabase;\nimport com.pulumi.nutanix.NdbDatabaseArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseNodeArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabasePostgresqlInfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabasePostgresqlInfoHaInstanceArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs;\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 dbp = new NdbDatabase(\"dbp\", NdbDatabaseArgs.builder()\n .autotunestagingdrive(true)\n .clustered(true)\n .computeprofileid(\"{{ compute_profile_id }}\")\n .createdbserver(true)\n .databasetype(\"postgres_database\")\n .dbparameterprofileid(\"{{ db_parameter_profile_id }}\")\n .description(\"adding description\")\n .networkprofileid(\"{{ network_profile_id }}\")\n .nodecount(4)\n .nodes( \n NdbDatabaseNodeArgs.builder()\n .nxClusterId(\"{{ nx_cluster_id }}\")\n .properties(NdbDatabaseNodePropertyArgs.builder()\n .name(\"node_type\")\n .value(\"haproxy\")\n .build())\n .vmname(\"{{ vm name }}\")\n .build(),\n NdbDatabaseNodeArgs.builder()\n .computeprofileid(\"{{ compute_profile_id }}\")\n .networkprofileid(\"{{ network_profile_id }}\")\n .nxClusterId(\"{{ nx_cluster_id }}\")\n .properties( \n NdbDatabaseNodePropertyArgs.builder()\n .name(\"role\")\n .value(\"Primary\")\n .build(),\n NdbDatabaseNodePropertyArgs.builder()\n .name(\"failover_mode\")\n .value(\"Automatic\")\n .build(),\n NdbDatabaseNodePropertyArgs.builder()\n .name(\"node_type\")\n .value(\"database\")\n .build())\n .vmname(\"{{ name of vm }}\")\n .build(),\n NdbDatabaseNodeArgs.builder()\n .computeprofileid(\"{{ compute_profile_id }}\")\n .networkprofileid(\"{{ network_profile_id }}\")\n .nxClusterId(\"{{ nx_cluster_id }}\")\n .properties( \n NdbDatabaseNodePropertyArgs.builder()\n .name(\"role\")\n .value(\"Secondary\")\n .build(),\n NdbDatabaseNodePropertyArgs.builder()\n .name(\"failover_mode\")\n .value(\"Automatic\")\n .build(),\n NdbDatabaseNodePropertyArgs.builder()\n .name(\"node_type\")\n .value(\"database\")\n .build())\n .vmname(\"{{ name of vm }}\")\n .build(),\n NdbDatabaseNodeArgs.builder()\n .computeprofileid(\"{{ compute_profile_id }}\")\n .networkprofileid(\"{{ network_profile_id }}\")\n .nxClusterId(\"{{ nx_cluster_id }}\")\n .properties( \n NdbDatabaseNodePropertyArgs.builder()\n .name(\"role\")\n .value(\"Secondary\")\n .build(),\n NdbDatabaseNodePropertyArgs.builder()\n .name(\"failover_mode\")\n .value(\"Automatic\")\n .build(),\n NdbDatabaseNodePropertyArgs.builder()\n .name(\"node_type\")\n .value(\"database\")\n .build())\n .vmname(\"{{ name of vm }}\")\n .build())\n .nxclusterid(\"1c42ca25-32f4-42d9-a2bd-6a21f925b725\")\n .postgresqlInfo(NdbDatabasePostgresqlInfoArgs.builder()\n .databaseNames(\"testdb1\")\n .databaseSize(\"200\")\n .dbPassword(\"{{ database password}}\")\n .haInstance(NdbDatabasePostgresqlInfoHaInstanceArgs.builder()\n .clusterName(\"{{ cluster_name }}\")\n .patroniClusterName(\" {{ patroni_cluster_name }}\")\n .proxyReadPort(\"5001\")\n .proxyWritePort(\"5000\")\n .build())\n .listenerPort(\"5432\")\n .build())\n .softwareprofileid(\"{{ software_profile_id }}\")\n .softwareprofileversionid(\"{{ software_profile_version_id }}\")\n .sshpublickey(\"{{ ssh_public_key }}\")\n .timemachineinfo(NdbDatabaseTimemachineinfoArgs.builder()\n .description(\"\")\n .name(\"test-pg-inst-HA\")\n .schedule(NdbDatabaseTimemachineinfoScheduleArgs.builder()\n .continuousschedule(NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs.builder()\n .enabled(true)\n .logbackupinterval(30)\n .snapshotsperday(1)\n .build())\n .monthlyschedule(NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs.builder()\n .dayofmonth(\"27\")\n .enabled(true)\n .build())\n .quartelyschedule(NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs.builder()\n .dayofmonth(27)\n .enabled(true)\n .startmonth(\"JANUARY\")\n .build())\n .snapshottimeofday(NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs.builder()\n .hours(16)\n .minutes(0)\n .seconds(0)\n .build())\n .weeklyschedule(NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs.builder()\n .dayofweek(\"WEDNESDAY\")\n .enabled(true)\n .build())\n .yearlyschedule(NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs.builder()\n .dayofmonth(31)\n .enabled(false)\n .month(\"DECEMBER\")\n .build())\n .build())\n .slaDetails(NdbDatabaseTimemachineinfoSlaDetailArgs.builder()\n .primarySla(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build())\n .build())\n .vmPassword(\"{{ vm_password}}\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dbp:\n type: nutanix:NdbDatabase\n properties:\n autotunestagingdrive: true\n clustered: true\n computeprofileid: '{{ compute_profile_id }}'\n # required for HA instance\n createdbserver: true\n databasetype: postgres_database\n dbparameterprofileid: '{{ db_parameter_profile_id }}'\n description: adding description\n networkprofileid: '{{ network_profile_id }}'\n # node count (with haproxy server node)\n nodecount: 4\n nodes:\n - nxClusterId: '{{ nx_cluster_id }}'\n properties:\n - name: node_type\n value: haproxy\n vmname: '{{ vm name }}'\n - computeprofileid: '{{ compute_profile_id }}'\n networkprofileid: '{{ network_profile_id }}'\n nxClusterId: '{{ nx_cluster_id }}'\n properties:\n - name: role\n value: Primary\n - name: failover_mode\n value: Automatic\n - name: node_type\n value: database\n vmname: '{{ name of vm }}'\n - computeprofileid: '{{ compute_profile_id }}'\n networkprofileid: '{{ network_profile_id }}'\n nxClusterId: '{{ nx_cluster_id }}'\n properties:\n - name: role\n value: Secondary\n - name: failover_mode\n value: Automatic\n - name: node_type\n value: database\n vmname: '{{ name of vm }}'\n - computeprofileid: '{{ compute_profile_id }}'\n networkprofileid: '{{ network_profile_id }}'\n nxClusterId: '{{ nx_cluster_id }}'\n properties:\n - name: role\n value: Secondary\n - name: failover_mode\n value: Automatic\n - name: node_type\n value: database\n vmname: '{{ name of vm }}'\n nxclusterid: 1c42ca25-32f4-42d9-a2bd-6a21f925b725\n # min required details for provisioning HA instance\n postgresqlInfo:\n databaseNames: testdb1\n databaseSize: '200'\n dbPassword: '{{ database password}}'\n haInstance:\n clusterName: '{{ cluster_name }}'\n patroniClusterName: ' {{ patroni_cluster_name }}'\n proxyReadPort: '5001'\n proxyWritePort: '5000'\n listenerPort: '5432'\n # adding the profiles details\n softwareprofileid: '{{ software_profile_id }}'\n softwareprofileversionid: '{{ software_profile_version_id }}'\n sshpublickey: '{{ ssh_public_key }}'\n # time machine required\n timemachineinfo:\n description:\n name: test-pg-inst-HA\n schedule:\n continuousschedule:\n enabled: true\n logbackupinterval: 30\n snapshotsperday: 1\n monthlyschedule:\n dayofmonth: '27'\n enabled: true\n quartelyschedule:\n dayofmonth: 27\n enabled: true\n startmonth: JANUARY\n snapshottimeofday:\n hours: 16\n minutes: 0\n seconds: 0\n weeklyschedule:\n dayofweek: WEDNESDAY\n enabled: true\n yearlyschedule:\n dayofmonth: 31\n enabled: false\n month: DECEMBER\n slaDetails:\n - primarySla:\n - nxClusterIds:\n - '{{ nx_cluster_id}}'\n slaId: '{{ required SLA}}0'\n vmPassword: '{{ vm_password}}'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### NDB database resource with registered database server VM\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst dbp = new nutanix.NdbDatabase(\"dbp\", {\n actionarguments: [{\n name: \"host_ip\",\n value: \"{{ hostIP }}\",\n }],\n createdbserver: false,\n databasetype: \"postgres_database\",\n dbparameterprofileid: \"{{ db_parameter_profile_id }}\",\n dbserverId: \"{{ dbserver_id }}\",\n description: \"add description\",\n nodes: [{\n dbserverid: \"{{ dbserver_id }}\",\n }],\n postgresqlInfo: {\n databaseNames: \"testdb1\",\n databaseSize: \"{{ 200 }}\",\n dbPassword: \"password\",\n listenerPort: \"{{ listner_port }}\",\n },\n timemachineinfo: {\n description: \"description of time machine\",\n name: \"test-pg-inst\",\n schedule: {\n continuousschedule: {\n enabled: true,\n logbackupinterval: 30,\n snapshotsperday: 1,\n },\n monthlyschedule: {\n dayofmonth: 27,\n enabled: true,\n },\n quartelyschedule: {\n dayofmonth: 27,\n enabled: true,\n startmonth: \"JANUARY\",\n },\n snapshottimeofday: {\n hours: 16,\n minutes: 0,\n seconds: 0,\n },\n weeklyschedule: {\n dayofweek: \"WEDNESDAY\",\n enabled: true,\n },\n yearlyschedule: {\n dayofmonth: 31,\n enabled: false,\n month: \"DECEMBER\",\n },\n },\n slaid: \"{{ sla_id }}\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ndbp = nutanix.NdbDatabase(\"dbp\",\n actionarguments=[nutanix.NdbDatabaseActionargumentArgs(\n name=\"host_ip\",\n value=\"{{ hostIP }}\",\n )],\n createdbserver=False,\n databasetype=\"postgres_database\",\n dbparameterprofileid=\"{{ db_parameter_profile_id }}\",\n dbserver_id=\"{{ dbserver_id }}\",\n description=\"add description\",\n nodes=[nutanix.NdbDatabaseNodeArgs(\n dbserverid=\"{{ dbserver_id }}\",\n )],\n postgresql_info=nutanix.NdbDatabasePostgresqlInfoArgs(\n database_names=\"testdb1\",\n database_size=\"{{ 200 }}\",\n db_password=\"password\",\n listener_port=\"{{ listner_port }}\",\n ),\n timemachineinfo=nutanix.NdbDatabaseTimemachineinfoArgs(\n description=\"description of time machine\",\n name=\"test-pg-inst\",\n schedule=nutanix.NdbDatabaseTimemachineinfoScheduleArgs(\n continuousschedule=nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs(\n enabled=True,\n logbackupinterval=30,\n snapshotsperday=1,\n ),\n monthlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs(\n dayofmonth=27,\n enabled=True,\n ),\n quartelyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs(\n dayofmonth=27,\n enabled=True,\n startmonth=\"JANUARY\",\n ),\n snapshottimeofday=nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs(\n hours=16,\n minutes=0,\n seconds=0,\n ),\n weeklyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs(\n dayofweek=\"WEDNESDAY\",\n enabled=True,\n ),\n yearlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs(\n dayofmonth=31,\n enabled=False,\n month=\"DECEMBER\",\n ),\n ),\n slaid=\"{{ sla_id }}\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dbp = new Nutanix.NdbDatabase(\"dbp\", new()\n {\n Actionarguments = new[]\n {\n new Nutanix.Inputs.NdbDatabaseActionargumentArgs\n {\n Name = \"host_ip\",\n Value = \"{{ hostIP }}\",\n },\n },\n Createdbserver = false,\n Databasetype = \"postgres_database\",\n Dbparameterprofileid = \"{{ db_parameter_profile_id }}\",\n DbserverId = \"{{ dbserver_id }}\",\n Description = \"add description\",\n Nodes = new[]\n {\n new Nutanix.Inputs.NdbDatabaseNodeArgs\n {\n Dbserverid = \"{{ dbserver_id }}\",\n },\n },\n PostgresqlInfo = new Nutanix.Inputs.NdbDatabasePostgresqlInfoArgs\n {\n DatabaseNames = \"testdb1\",\n DatabaseSize = \"{{ 200 }}\",\n DbPassword = \"password\",\n ListenerPort = \"{{ listner_port }}\",\n },\n Timemachineinfo = new Nutanix.Inputs.NdbDatabaseTimemachineinfoArgs\n {\n Description = \"description of time machine\",\n Name = \"test-pg-inst\",\n Schedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleArgs\n {\n Continuousschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs\n {\n Enabled = true,\n Logbackupinterval = 30,\n Snapshotsperday = 1,\n },\n Monthlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs\n {\n Dayofmonth = 27,\n Enabled = true,\n },\n Quartelyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs\n {\n Dayofmonth = 27,\n Enabled = true,\n Startmonth = \"JANUARY\",\n },\n Snapshottimeofday = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs\n {\n Hours = 16,\n Minutes = 0,\n Seconds = 0,\n },\n Weeklyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs\n {\n Dayofweek = \"WEDNESDAY\",\n Enabled = true,\n },\n Yearlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs\n {\n Dayofmonth = 31,\n Enabled = false,\n Month = \"DECEMBER\",\n },\n },\n Slaid = \"{{ sla_id }}\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewNdbDatabase(ctx, \"dbp\", \u0026nutanix.NdbDatabaseArgs{\n\t\t\tActionarguments: nutanix.NdbDatabaseActionargumentArray{\n\t\t\t\t\u0026nutanix.NdbDatabaseActionargumentArgs{\n\t\t\t\t\tName: pulumi.String(\"host_ip\"),\n\t\t\t\t\tValue: pulumi.String(\"{{ hostIP }}\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tCreatedbserver: pulumi.Bool(false),\n\t\t\tDatabasetype: pulumi.String(\"postgres_database\"),\n\t\t\tDbparameterprofileid: pulumi.String(\"{{ db_parameter_profile_id }}\"),\n\t\t\tDbserverId: pulumi.String(\"{{ dbserver_id }}\"),\n\t\t\tDescription: pulumi.String(\"add description\"),\n\t\t\tNodes: nutanix.NdbDatabaseNodeArray{\n\t\t\t\t\u0026nutanix.NdbDatabaseNodeArgs{\n\t\t\t\t\tDbserverid: pulumi.String(\"{{ dbserver_id }}\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPostgresqlInfo: \u0026nutanix.NdbDatabasePostgresqlInfoArgs{\n\t\t\t\tDatabaseNames: pulumi.String(\"testdb1\"),\n\t\t\t\tDatabaseSize: pulumi.String(\"{{ 200 }}\"),\n\t\t\t\tDbPassword: pulumi.String(\"password\"),\n\t\t\t\tListenerPort: pulumi.String(\"{{ listner_port }}\"),\n\t\t\t},\n\t\t\tTimemachineinfo: \u0026nutanix.NdbDatabaseTimemachineinfoArgs{\n\t\t\t\tDescription: pulumi.String(\"description of time machine\"),\n\t\t\t\tName: pulumi.String(\"test-pg-inst\"),\n\t\t\t\tSchedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleArgs{\n\t\t\t\t\tContinuousschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs{\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tLogbackupinterval: pulumi.Int(30),\n\t\t\t\t\t\tSnapshotsperday: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t\tMonthlyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs{\n\t\t\t\t\t\tDayofmonth: pulumi.Int(27),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t\tQuartelyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs{\n\t\t\t\t\t\tDayofmonth: pulumi.Int(27),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tStartmonth: pulumi.String(\"JANUARY\"),\n\t\t\t\t\t},\n\t\t\t\t\tSnapshottimeofday: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs{\n\t\t\t\t\t\tHours: pulumi.Int(16),\n\t\t\t\t\t\tMinutes: pulumi.Int(0),\n\t\t\t\t\t\tSeconds: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t\tWeeklyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs{\n\t\t\t\t\t\tDayofweek: pulumi.String(\"WEDNESDAY\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t\tYearlyschedule: \u0026nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs{\n\t\t\t\t\t\tDayofmonth: pulumi.Int(31),\n\t\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\t\tMonth: pulumi.String(\"DECEMBER\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tSlaid: pulumi.String(\"{{ sla_id }}\"),\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.nutanix.NdbDatabase;\nimport com.pulumi.nutanix.NdbDatabaseArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseActionargumentArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseNodeArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabasePostgresqlInfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs;\nimport com.pulumi.nutanix.inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs;\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 dbp = new NdbDatabase(\"dbp\", NdbDatabaseArgs.builder()\n .actionarguments(NdbDatabaseActionargumentArgs.builder()\n .name(\"host_ip\")\n .value(\"{{ hostIP }}\")\n .build())\n .createdbserver(false)\n .databasetype(\"postgres_database\")\n .dbparameterprofileid(\"{{ db_parameter_profile_id }}\")\n .dbserverId(\"{{ dbserver_id }}\")\n .description(\"add description\")\n .nodes(NdbDatabaseNodeArgs.builder()\n .dbserverid(\"{{ dbserver_id }}\")\n .build())\n .postgresqlInfo(NdbDatabasePostgresqlInfoArgs.builder()\n .databaseNames(\"testdb1\")\n .databaseSize(\"{{ 200 }}\")\n .dbPassword(\"password\")\n .listenerPort(\"{{ listner_port }}\")\n .build())\n .timemachineinfo(NdbDatabaseTimemachineinfoArgs.builder()\n .description(\"description of time machine\")\n .name(\"test-pg-inst\")\n .schedule(NdbDatabaseTimemachineinfoScheduleArgs.builder()\n .continuousschedule(NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs.builder()\n .enabled(true)\n .logbackupinterval(30)\n .snapshotsperday(1)\n .build())\n .monthlyschedule(NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs.builder()\n .dayofmonth(\"27\")\n .enabled(true)\n .build())\n .quartelyschedule(NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs.builder()\n .dayofmonth(27)\n .enabled(true)\n .startmonth(\"JANUARY\")\n .build())\n .snapshottimeofday(NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs.builder()\n .hours(16)\n .minutes(0)\n .seconds(0)\n .build())\n .weeklyschedule(NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs.builder()\n .dayofweek(\"WEDNESDAY\")\n .enabled(true)\n .build())\n .yearlyschedule(NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs.builder()\n .dayofmonth(31)\n .enabled(false)\n .month(\"DECEMBER\")\n .build())\n .build())\n .slaid(\"{{ sla_id }}\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dbp:\n type: nutanix:NdbDatabase\n properties:\n actionarguments:\n - name: host_ip\n value: '{{ hostIP }}'\n createdbserver: false\n # name of database type\n databasetype: postgres_database\n # adding the profiles details\n dbparameterprofileid: '{{ db_parameter_profile_id }}'\n # required dbserver id\n dbserverId: '{{ dbserver_id }}'\n description: add description\n # node for single instance\n nodes:\n - dbserverid: '{{ dbserver_id }}'\n # postgreSQL Info\n postgresqlInfo:\n databaseNames: testdb1\n databaseSize: '{{ 200 }}'\n dbPassword: password\n listenerPort: '{{ listner_port }}'\n # time machine info\n timemachineinfo:\n description: description of time machine\n name: test-pg-inst\n schedule:\n continuousschedule:\n enabled: true\n logbackupinterval: 30\n snapshotsperday: 1\n monthlyschedule:\n dayofmonth: '27'\n enabled: true\n quartelyschedule:\n dayofmonth: 27\n enabled: true\n startmonth: JANUARY\n snapshottimeofday:\n hours: 16\n minutes: 0\n seconds: 0\n weeklyschedule:\n dayofweek: WEDNESDAY\n enabled: true\n yearlyschedule:\n dayofmonth: 31\n enabled: false\n month: DECEMBER\n slaid: '{{ sla_id }}'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## lifecycle\n\n* `Update` : - Currently only update of instance's name and description is supported using this resource\n\nSee detailed information in [NDB Database Instance](https://www.nutanix.dev/api_references/ndb/#/9d9eee4304496-provision-a-database).\n", "properties": { "actionarguments": { "type": "array", @@ -56693,7 +56693,7 @@ } }, "nutanix:index/role:Role": { - "description": "Provides a resource to create a role based on the input parameters.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_role\" \"test\" {\n\tname = \"NAME\"\n\tdescription = \"DESCRIPTION\"\n\tpermission_reference_list {\n\t\tkind = \"permission\"\n\t\tuuid = \"ID OF PERMISSION\"\n\t}\n\tpermission_reference_list {\n\t\tkind = \"permission\"\n\t\tuuid = \"ID OF PERMISSION\"\n\t}\n\tpermission_reference_list {\n\t\tkind = \"permission\"\n\t\tuuid = \"ID OF PERMISSION\"\n\t}\n}\n```\n", + "description": "Provides a resource to create a role based on the input parameters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst test = new nutanix.Role(\"test\", {\n description: \"DESCRIPTION\",\n permissionReferenceLists: [\n {\n kind: \"permission\",\n uuid: \"ID OF PERMISSION\",\n },\n {\n kind: \"permission\",\n uuid: \"ID OF PERMISSION\",\n },\n {\n kind: \"permission\",\n uuid: \"ID OF PERMISSION\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ntest = nutanix.Role(\"test\",\n description=\"DESCRIPTION\",\n permission_reference_lists=[\n nutanix.RolePermissionReferenceListArgs(\n kind=\"permission\",\n uuid=\"ID OF PERMISSION\",\n ),\n nutanix.RolePermissionReferenceListArgs(\n kind=\"permission\",\n uuid=\"ID OF PERMISSION\",\n ),\n nutanix.RolePermissionReferenceListArgs(\n kind=\"permission\",\n uuid=\"ID OF PERMISSION\",\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Nutanix.Role(\"test\", new()\n {\n Description = \"DESCRIPTION\",\n PermissionReferenceLists = new[]\n {\n new Nutanix.Inputs.RolePermissionReferenceListArgs\n {\n Kind = \"permission\",\n Uuid = \"ID OF PERMISSION\",\n },\n new Nutanix.Inputs.RolePermissionReferenceListArgs\n {\n Kind = \"permission\",\n Uuid = \"ID OF PERMISSION\",\n },\n new Nutanix.Inputs.RolePermissionReferenceListArgs\n {\n Kind = \"permission\",\n Uuid = \"ID OF PERMISSION\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewRole(ctx, \"test\", \u0026nutanix.RoleArgs{\n\t\t\tDescription: pulumi.String(\"DESCRIPTION\"),\n\t\t\tPermissionReferenceLists: nutanix.RolePermissionReferenceListArray{\n\t\t\t\t\u0026nutanix.RolePermissionReferenceListArgs{\n\t\t\t\t\tKind: pulumi.String(\"permission\"),\n\t\t\t\t\tUuid: pulumi.String(\"ID OF PERMISSION\"),\n\t\t\t\t},\n\t\t\t\t\u0026nutanix.RolePermissionReferenceListArgs{\n\t\t\t\t\tKind: pulumi.String(\"permission\"),\n\t\t\t\t\tUuid: pulumi.String(\"ID OF PERMISSION\"),\n\t\t\t\t},\n\t\t\t\t\u0026nutanix.RolePermissionReferenceListArgs{\n\t\t\t\t\tKind: pulumi.String(\"permission\"),\n\t\t\t\t\tUuid: pulumi.String(\"ID OF PERMISSION\"),\n\t\t\t\t},\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.nutanix.Role;\nimport com.pulumi.nutanix.RoleArgs;\nimport com.pulumi.nutanix.inputs.RolePermissionReferenceListArgs;\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 test = new Role(\"test\", RoleArgs.builder()\n .description(\"DESCRIPTION\")\n .permissionReferenceLists( \n RolePermissionReferenceListArgs.builder()\n .kind(\"permission\")\n .uuid(\"ID OF PERMISSION\")\n .build(),\n RolePermissionReferenceListArgs.builder()\n .kind(\"permission\")\n .uuid(\"ID OF PERMISSION\")\n .build(),\n RolePermissionReferenceListArgs.builder()\n .kind(\"permission\")\n .uuid(\"ID OF PERMISSION\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: nutanix:Role\n properties:\n description: DESCRIPTION\n permissionReferenceLists:\n - kind: permission\n uuid: ID OF PERMISSION\n - kind: permission\n uuid: ID OF PERMISSION\n - kind: permission\n uuid: ID OF PERMISSION\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "apiVersion": { "type": "string", @@ -56840,7 +56840,7 @@ } }, "nutanix:index/serviceGroup:ServiceGroup": { - "description": "Provides a resource to create a service group based on the input parameters.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_service_group\" \"test\" {\n\t\tname = \"test_service_gp\"\n\t\tdescription = \"this is service group\"\n\n\t\tservice_list {\n\t\t\tprotocol = \"TCP\"\n\t\t\ttcp_port_range_list {\n\t\t\t\tstart_port = 22\n\t\t\t\tend_port = 22\n\t\t\t}\n\t\t\ttcp_port_range_list {\n\t\t\t\tstart_port = 2222\n\t\t\t\tend_port = 2222\n\t\t\t}\n\t\t}\n\t}\n```\n", + "description": "Provides a resource to create a service group based on the input parameters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst test = new nutanix.ServiceGroup(\"test\", {\n description: \"this is service group\",\n serviceLists: [{\n protocol: \"TCP\",\n tcpPortRangeLists: [\n {\n endPort: 22,\n startPort: 22,\n },\n {\n endPort: 2222,\n startPort: 2222,\n },\n ],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ntest = nutanix.ServiceGroup(\"test\",\n description=\"this is service group\",\n service_lists=[nutanix.ServiceGroupServiceListArgs(\n protocol=\"TCP\",\n tcp_port_range_lists=[\n nutanix.ServiceGroupServiceListTcpPortRangeListArgs(\n end_port=22,\n start_port=22,\n ),\n nutanix.ServiceGroupServiceListTcpPortRangeListArgs(\n end_port=2222,\n start_port=2222,\n ),\n ],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Nutanix.ServiceGroup(\"test\", new()\n {\n Description = \"this is service group\",\n ServiceLists = new[]\n {\n new Nutanix.Inputs.ServiceGroupServiceListArgs\n {\n Protocol = \"TCP\",\n TcpPortRangeLists = new[]\n {\n new Nutanix.Inputs.ServiceGroupServiceListTcpPortRangeListArgs\n {\n EndPort = 22,\n StartPort = 22,\n },\n new Nutanix.Inputs.ServiceGroupServiceListTcpPortRangeListArgs\n {\n EndPort = 2222,\n StartPort = 2222,\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewServiceGroup(ctx, \"test\", \u0026nutanix.ServiceGroupArgs{\n\t\t\tDescription: pulumi.String(\"this is service group\"),\n\t\t\tServiceLists: nutanix.ServiceGroupServiceListArray{\n\t\t\t\t\u0026nutanix.ServiceGroupServiceListArgs{\n\t\t\t\t\tProtocol: pulumi.String(\"TCP\"),\n\t\t\t\t\tTcpPortRangeLists: nutanix.ServiceGroupServiceListTcpPortRangeListArray{\n\t\t\t\t\t\t\u0026nutanix.ServiceGroupServiceListTcpPortRangeListArgs{\n\t\t\t\t\t\t\tEndPort: pulumi.Int(22),\n\t\t\t\t\t\t\tStartPort: pulumi.Int(22),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026nutanix.ServiceGroupServiceListTcpPortRangeListArgs{\n\t\t\t\t\t\t\tEndPort: pulumi.Int(2222),\n\t\t\t\t\t\t\tStartPort: pulumi.Int(2222),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\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.nutanix.ServiceGroup;\nimport com.pulumi.nutanix.ServiceGroupArgs;\nimport com.pulumi.nutanix.inputs.ServiceGroupServiceListArgs;\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 test = new ServiceGroup(\"test\", ServiceGroupArgs.builder()\n .description(\"this is service group\")\n .serviceLists(ServiceGroupServiceListArgs.builder()\n .protocol(\"TCP\")\n .tcpPortRangeLists( \n ServiceGroupServiceListTcpPortRangeListArgs.builder()\n .endPort(22)\n .startPort(22)\n .build(),\n ServiceGroupServiceListTcpPortRangeListArgs.builder()\n .endPort(2222)\n .startPort(2222)\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: nutanix:ServiceGroup\n properties:\n description: this is service group\n serviceLists:\n - protocol: TCP\n tcpPortRangeLists:\n - endPort: 22\n startPort: 22\n - endPort: 2222\n startPort: 2222\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "description": { "type": "string", @@ -57024,7 +57024,7 @@ } }, "nutanix:index/subnet:Subnet": { - "description": "Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses.\n\n## Example Usage\n\n``` hcl\ndata \"nutanix_clusters\" \"clusters\" {\n metadata = {\n length = 2\n }\n}\n\noutput \"cluster\" {\n value = data.nutanix_clusters.clusters.entities.0.metadata.uuid\n}\n\nresource \"nutanix_subnet\" \"next-iac-managed\" {\n # What cluster will this VLAN live on?\n cluster_uuid = \"${data.nutanix_clusters.clusters.entities.0.metadata.uuid}\"\n\n # General Information\n name = \"next-iac-managed-example\"\n vlan_id = 101\n subnet_type = \"VLAN\"\n\n # Managed L3 Networks\n # This bit is only needed if you intend to turn on IPAM\n prefix_length = 20\n\n default_gateway_ip = \"10.5.80.1\"\n subnet_ip = \"10.5.80.0\"\n\n dhcp_domain_name_server_list = [\"8.8.8.8\", \"4.2.2.2\"]\n dhcp_domain_search_list = [\"nutanix.com\", \"eng.nutanix.com\"]\n}\n```\n", + "description": "Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.nutanix.NutanixFunctions;\nimport com.pulumi.nutanix.Subnet;\nimport com.pulumi.nutanix.SubnetArgs;\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 clusters = NutanixFunctions.getClusters(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);\n\n ctx.export(\"cluster\", clusters.applyValue(getClustersResult -\u003e getClustersResult.entities()[0].metadata().uuid()));\n var next_iac_managed = new Subnet(\"next-iac-managed\", SubnetArgs.builder()\n .clusterUuid(clusters.applyValue(getClustersResult -\u003e getClustersResult.entities()[0].metadata().uuid()))\n .vlanId(101)\n .subnetType(\"VLAN\")\n .prefixLength(20)\n .defaultGatewayIp(\"10.5.80.1\")\n .subnetIp(\"10.5.80.0\")\n .dhcpDomainNameServerLists( \n \"8.8.8.8\",\n \"4.2.2.2\")\n .dhcpDomainSearchLists( \n \"nutanix.com\",\n \"eng.nutanix.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n next-iac-managed:\n type: nutanix:Subnet\n properties:\n # What cluster will this VLAN live on?\n clusterUuid: ${clusters.entities[0].metadata.uuid}\n vlanId: 101\n subnetType: VLAN\n # Managed L3 Networks\n # # This bit is only needed if you intend to turn on IPAM\n prefixLength: 20\n defaultGatewayIp: 10.5.80.1\n subnetIp: 10.5.80.0\n dhcpDomainNameServerLists:\n - 8.8.8.8\n - 4.2.2.2\n dhcpDomainSearchLists:\n - nutanix.com\n - eng.nutanix.com\nvariables:\n clusters:\n fn::invoke:\n Function: nutanix:getClusters\n Arguments:\n metadata:\n length: 2\noutputs:\n cluster: ${clusters.entities[0].metadata.uuid}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "apiVersion": { "type": "string", @@ -57476,7 +57476,7 @@ } }, "nutanix:index/user:User": { - "description": "Provides a resource to create a user based on the input parameters.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_user\" \"user\" {\n\tdirectory_service_user {\n\t\tuser_principal_name = \"test-user@ntnxlab.local\"\n\t\tdirectory_service_reference {\n\t\tuuid = \"\u003cdirectory-service-uuid\u003e\"\n\t\t}\n\t}\n}\n```\n\n\n``` hcl\nresource \"nutanix_user\" \"user\" {\n\tidentity_provider_user {\n\t\tusername = \"username\"\n\t\tidentity_provider_reference {\n\t\tuuid = \"\u003cidentity-provider-uuid\u003e\"\n\t\t}\n\t}\n}\n```\n", + "description": "Provides a resource to create a user based on the input parameters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst user = new nutanix.User(\"user\", {directoryServiceUser: {\n directoryServiceReference: {\n uuid: \"\u003cdirectory-service-uuid\u003e\",\n },\n userPrincipalName: \"test-user@ntnxlab.local\",\n}});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nuser = nutanix.User(\"user\", directory_service_user=nutanix.UserDirectoryServiceUserArgs(\n directory_service_reference=nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs(\n uuid=\"\u003cdirectory-service-uuid\u003e\",\n ),\n user_principal_name=\"test-user@ntnxlab.local\",\n))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var user = new Nutanix.User(\"user\", new()\n {\n DirectoryServiceUser = new Nutanix.Inputs.UserDirectoryServiceUserArgs\n {\n DirectoryServiceReference = new Nutanix.Inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs\n {\n Uuid = \"\u003cdirectory-service-uuid\u003e\",\n },\n UserPrincipalName = \"test-user@ntnxlab.local\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewUser(ctx, \"user\", \u0026nutanix.UserArgs{\n\t\t\tDirectoryServiceUser: \u0026nutanix.UserDirectoryServiceUserArgs{\n\t\t\t\tDirectoryServiceReference: \u0026nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs{\n\t\t\t\t\tUuid: pulumi.String(\"\u003cdirectory-service-uuid\u003e\"),\n\t\t\t\t},\n\t\t\t\tUserPrincipalName: pulumi.String(\"test-user@ntnxlab.local\"),\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.nutanix.User;\nimport com.pulumi.nutanix.UserArgs;\nimport com.pulumi.nutanix.inputs.UserDirectoryServiceUserArgs;\nimport com.pulumi.nutanix.inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs;\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 user = new User(\"user\", UserArgs.builder()\n .directoryServiceUser(UserDirectoryServiceUserArgs.builder()\n .directoryServiceReference(UserDirectoryServiceUserDirectoryServiceReferenceArgs.builder()\n .uuid(\"\u003cdirectory-service-uuid\u003e\")\n .build())\n .userPrincipalName(\"test-user@ntnxlab.local\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n user:\n type: nutanix:User\n properties:\n directoryServiceUser:\n directoryServiceReference:\n uuid: \u003cdirectory-service-uuid\u003e\n userPrincipalName: test-user@ntnxlab.local\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst user = new nutanix.User(\"user\", {identityProviderUser: {\n identityProviderReference: {\n uuid: \"\u003cidentity-provider-uuid\u003e\",\n },\n username: \"username\",\n}});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nuser = nutanix.User(\"user\", identity_provider_user=nutanix.UserIdentityProviderUserArgs(\n identity_provider_reference=nutanix.UserIdentityProviderUserIdentityProviderReferenceArgs(\n uuid=\"\u003cidentity-provider-uuid\u003e\",\n ),\n username=\"username\",\n))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var user = new Nutanix.User(\"user\", new()\n {\n IdentityProviderUser = new Nutanix.Inputs.UserIdentityProviderUserArgs\n {\n IdentityProviderReference = new Nutanix.Inputs.UserIdentityProviderUserIdentityProviderReferenceArgs\n {\n Uuid = \"\u003cidentity-provider-uuid\u003e\",\n },\n Username = \"username\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewUser(ctx, \"user\", \u0026nutanix.UserArgs{\n\t\t\tIdentityProviderUser: \u0026nutanix.UserIdentityProviderUserArgs{\n\t\t\t\tIdentityProviderReference: \u0026nutanix.UserIdentityProviderUserIdentityProviderReferenceArgs{\n\t\t\t\t\tUuid: pulumi.String(\"\u003cidentity-provider-uuid\u003e\"),\n\t\t\t\t},\n\t\t\t\tUsername: pulumi.String(\"username\"),\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.nutanix.User;\nimport com.pulumi.nutanix.UserArgs;\nimport com.pulumi.nutanix.inputs.UserIdentityProviderUserArgs;\nimport com.pulumi.nutanix.inputs.UserIdentityProviderUserIdentityProviderReferenceArgs;\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 user = new User(\"user\", UserArgs.builder()\n .identityProviderUser(UserIdentityProviderUserArgs.builder()\n .identityProviderReference(UserIdentityProviderUserIdentityProviderReferenceArgs.builder()\n .uuid(\"\u003cidentity-provider-uuid\u003e\")\n .build())\n .username(\"username\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n user:\n type: nutanix:User\n properties:\n identityProviderUser:\n identityProviderReference:\n uuid: \u003cidentity-provider-uuid\u003e\n username: username\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "accessControlPolicyReferenceLists": { "type": "array", @@ -57672,7 +57672,7 @@ } }, "nutanix:index/userGroups:UserGroups": { - "description": "Provides a resource to add a User group to the system..\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_user_groups\" \"user_grp\" {\n\tdirectory_service_user_group{\n\t\tdistinguished_name = \"\u003cdistinguished name for the user group\u003e\"\n\t}\n}\n```\n\n\n``` hcl\nresource \"nutanix_user_groups\" \"user_grp\" {\n\tsaml_user_group{\n name = \"\u003cname of saml group\u003e\"\n idp_uuid = \"\u003cidp uuid of the group\u003e\"\n }\n}\n```\n", + "description": "Provides a resource to add a User group to the system..\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst userGrp = new nutanix.UserGroups(\"userGrp\", {directoryServiceUserGroups: [{\n distinguishedName: \"\u003cdistinguished name for the user group\u003e\",\n}]});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nuser_grp = nutanix.UserGroups(\"userGrp\", directory_service_user_groups=[nutanix.UserGroupsDirectoryServiceUserGroupArgs(\n distinguished_name=\"\u003cdistinguished name for the user group\u003e\",\n)])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var userGrp = new Nutanix.UserGroups(\"userGrp\", new()\n {\n DirectoryServiceUserGroups = new[]\n {\n new Nutanix.Inputs.UserGroupsDirectoryServiceUserGroupArgs\n {\n DistinguishedName = \"\u003cdistinguished name for the user group\u003e\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewUserGroups(ctx, \"userGrp\", \u0026nutanix.UserGroupsArgs{\n\t\t\tDirectoryServiceUserGroups: nutanix.UserGroupsDirectoryServiceUserGroupArray{\n\t\t\t\t\u0026nutanix.UserGroupsDirectoryServiceUserGroupArgs{\n\t\t\t\t\tDistinguishedName: pulumi.String(\"\u003cdistinguished name for the user group\u003e\"),\n\t\t\t\t},\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.nutanix.UserGroups;\nimport com.pulumi.nutanix.UserGroupsArgs;\nimport com.pulumi.nutanix.inputs.UserGroupsDirectoryServiceUserGroupArgs;\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 userGrp = new UserGroups(\"userGrp\", UserGroupsArgs.builder()\n .directoryServiceUserGroups(UserGroupsDirectoryServiceUserGroupArgs.builder()\n .distinguishedName(\"\u003cdistinguished name for the user group\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n userGrp:\n type: nutanix:UserGroups\n properties:\n directoryServiceUserGroups:\n - distinguishedName: \u003cdistinguished name for the user group\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\n\nconst userGrp = new nutanix.UserGroups(\"userGrp\", {samlUserGroups: [{\n idpUuid: \"\u003cidp uuid of the group\u003e\",\n name: \"\u003cname of saml group\u003e\",\n}]});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nuser_grp = nutanix.UserGroups(\"userGrp\", saml_user_groups=[nutanix.UserGroupsSamlUserGroupArgs(\n idp_uuid=\"\u003cidp uuid of the group\u003e\",\n name=\"\u003cname of saml group\u003e\",\n)])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var userGrp = new Nutanix.UserGroups(\"userGrp\", new()\n {\n SamlUserGroups = new[]\n {\n new Nutanix.Inputs.UserGroupsSamlUserGroupArgs\n {\n IdpUuid = \"\u003cidp uuid of the group\u003e\",\n Name = \"\u003cname of saml group\u003e\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewUserGroups(ctx, \"userGrp\", \u0026nutanix.UserGroupsArgs{\n\t\t\tSamlUserGroups: nutanix.UserGroupsSamlUserGroupArray{\n\t\t\t\t\u0026nutanix.UserGroupsSamlUserGroupArgs{\n\t\t\t\t\tIdpUuid: pulumi.String(\"\u003cidp uuid of the group\u003e\"),\n\t\t\t\t\tName: pulumi.String(\"\u003cname of saml group\u003e\"),\n\t\t\t\t},\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.nutanix.UserGroups;\nimport com.pulumi.nutanix.UserGroupsArgs;\nimport com.pulumi.nutanix.inputs.UserGroupsSamlUserGroupArgs;\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 userGrp = new UserGroups(\"userGrp\", UserGroupsArgs.builder()\n .samlUserGroups(UserGroupsSamlUserGroupArgs.builder()\n .idpUuid(\"\u003cidp uuid of the group\u003e\")\n .name(\"\u003cname of saml group\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n userGrp:\n type: nutanix:UserGroups\n properties:\n samlUserGroups:\n - idpUuid: \u003cidp uuid of the group\u003e\n name: \u003cname of saml group\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "categories": { "type": "array", @@ -58817,7 +58817,7 @@ } }, "nutanix:index/getAccessControlPolicy:getAccessControlPolicy": { - "description": "Describes an Access Control Policy.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_access_control_policy\" \"test\" {\n\tname = \"NAME OF ACCESS CONTROL POLICY\"\n\tdescription = \"DESCRIPTION OF THE ACCESS CONTROL POLICY\"\n\trole_reference {\n\t\tkind = \"role\"\n\t\tuuid = \"UUID of role\"\n\t}\n}\ndata \"nutanix_access_control_policy\" \"test\" {\n access_control_policy_id = nutanix_access_control_policy.test.id\n}\n\n```\n", + "description": "Describes an Access Control Policy.\n\n", "inputs": { "description": "A collection of arguments for invoking getAccessControlPolicy.\n", "properties": { @@ -58942,7 +58942,7 @@ } }, "nutanix:index/getAddressGroup:getAddressGroup": { - "description": "Provides a datasource to retrieve a address group.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_address_group\" \"test_address\" {\n \t\t\tname = \"test\"\n \t\t\tdescription = \"test address groups resource\"\n\n \t\t\tip_address_block_list {\n \t\t\tip = \"10.0.0.0\"\n \t\t\tprefix_length = 24\n \t\t\t}\n\t\t}\n\n data \"nutanix_address_group\" \"addr_group\" {\n uuid = nutanix_address_group.test_address.id\n }\n```\n", + "description": "Provides a datasource to retrieve a address group.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\nimport * as nutanix from \"@pulumi/nutanix\";\n\nconst testAddress = new nutanix.AddressGroup(\"testAddress\", {\n description: \"test address groups resource\",\n ipAddressBlockLists: [{\n ip: \"10.0.0.0\",\n prefixLength: 24,\n }],\n});\nconst addrGroup = nutanix.getAddressGroupOutput({\n uuid: testAddress.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ntest_address = nutanix.AddressGroup(\"testAddress\",\n description=\"test address groups resource\",\n ip_address_block_lists=[nutanix.AddressGroupIpAddressBlockListArgs(\n ip=\"10.0.0.0\",\n prefix_length=24,\n )])\naddr_group = nutanix.get_address_group_output(uuid=test_address.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\nusing Nutanix = Pulumi.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testAddress = new Nutanix.AddressGroup(\"testAddress\", new()\n {\n Description = \"test address groups resource\",\n IpAddressBlockLists = new[]\n {\n new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs\n {\n Ip = \"10.0.0.0\",\n PrefixLength = 24,\n },\n },\n });\n\n var addrGroup = Nutanix.GetAddressGroup.Invoke(new()\n {\n Uuid = testAddress.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttestAddress, err := nutanix.NewAddressGroup(ctx, \"testAddress\", \u0026nutanix.AddressGroupArgs{\n\t\t\tDescription: pulumi.String(\"test address groups resource\"),\n\t\t\tIpAddressBlockLists: nutanix.AddressGroupIpAddressBlockListArray{\n\t\t\t\t\u0026nutanix.AddressGroupIpAddressBlockListArgs{\n\t\t\t\t\tIp: pulumi.String(\"10.0.0.0\"),\n\t\t\t\t\tPrefixLength: pulumi.Int(24),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_ = nutanix.LookupAddressGroupOutput(ctx, nutanix.GetAddressGroupOutputArgs{\n\t\t\tUuid: testAddress.ID(),\n\t\t}, nil)\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.nutanix.AddressGroup;\nimport com.pulumi.nutanix.AddressGroupArgs;\nimport com.pulumi.nutanix.inputs.AddressGroupIpAddressBlockListArgs;\nimport com.pulumi.nutanix.NutanixFunctions;\nimport com.pulumi.nutanix.inputs.GetAddressGroupArgs;\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 testAddress = new AddressGroup(\"testAddress\", AddressGroupArgs.builder()\n .description(\"test address groups resource\")\n .ipAddressBlockLists(AddressGroupIpAddressBlockListArgs.builder()\n .ip(\"10.0.0.0\")\n .prefixLength(24)\n .build())\n .build());\n\n final var addrGroup = NutanixFunctions.getAddressGroup(GetAddressGroupArgs.builder()\n .uuid(testAddress.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testAddress:\n type: nutanix:AddressGroup\n properties:\n description: test address groups resource\n ipAddressBlockLists:\n - ip: 10.0.0.0\n prefixLength: 24\nvariables:\n addrGroup:\n fn::invoke:\n Function: nutanix:getAddressGroup\n Arguments:\n uuid: ${testAddress.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAddressGroup.\n", "properties": { @@ -58999,7 +58999,7 @@ } }, "nutanix:index/getAddressGroups:getAddressGroups": { - "description": "Provides a datasource to retrieve list of address groups.\n\n## Example Usage\n\n``` hcl\n data \"nutanix_address_groups\" \"addr_groups\" {}\n```\n", + "description": "Provides a datasource to retrieve list of address groups.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pulumi/nutanix\";\n\nconst addrGroups = nutanix.getAddressGroups({});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\naddr_groups = nutanix.get_address_groups()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = Pulumi.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var addrGroups = Nutanix.GetAddressGroups.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.GetAddressGroups(ctx, nil, 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.nutanix.NutanixFunctions;\nimport com.pulumi.nutanix.inputs.GetAddressGroupsArgs;\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 addrGroups = NutanixFunctions.getAddressGroups();\n\n }\n}\n```\n```yaml\nvariables:\n addrGroups:\n fn::invoke:\n Function: nutanix:getAddressGroups\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAddressGroups.\n", "properties": { @@ -64442,7 +64442,7 @@ } }, "nutanix:index/getRole:getRole": { - "description": "Describes a Role.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_role\" \"test\" {\n\tname = \"NAME\"\n\tdescription = \"DESCRIPTION\"\n\tpermission_reference_list {\n\t\tkind = \"permission\"\n\t\tuuid = \"ID OF PERMISSION\"\n\t}\n}\ndata \"nutanix_role\" \"test\" {\n\trole_id = nutanix_role.test.id\n}\n```\n", + "description": "Describes a Role.\n\n", "inputs": { "description": "A collection of arguments for invoking getRole.\n", "properties": { @@ -64545,7 +64545,7 @@ } }, "nutanix:index/getRoles:getRoles": { - "description": "Describes a list of roles.\n\n## Example Usage\n\n``` hcl\ndata \"nutanix_roles\" \"test\" {}\n```\n", + "description": "Describes a list of roles.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pulumi/nutanix\";\n\nconst test = nutanix.getRoles({});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\ntest = nutanix.get_roles()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = Pulumi.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Nutanix.GetRoles.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.GetRoles(ctx, nil, 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.nutanix.NutanixFunctions;\nimport com.pulumi.nutanix.inputs.GetRolesArgs;\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 = NutanixFunctions.getRoles();\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: nutanix:getRoles\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getRoles.\n", "properties": { @@ -65028,7 +65028,7 @@ } }, "nutanix:index/getUser:getUser": { - "description": "Provides a datasource to retrieve a user based on the input parameters.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_user\" \"user\" {\n\tdirectory_service_user {\n\t\tuser_principal_name = \"test-user@ntnxlab.local\"\n\t\tdirectory_service_reference {\n\t\tuuid = \"\u003cdirectory-service-uuid\u003e\"\n\t\t}\n\t}\n}\n\n//Retrieve by UUID\ndata \"nutanix_user\" \"user\" {\n\tuuid = nutanix_user.user.id\n}\n\n//Retrieve by Name\ndata \"nutanix_user\" \"userbyname\" {\n\tname = nutanix_user.user.name\n}\n```\n", + "description": "Provides a datasource to retrieve a user based on the input parameters.\n\n", "inputs": { "description": "A collection of arguments for invoking getUser.\n", "properties": { @@ -65166,7 +65166,7 @@ } }, "nutanix:index/getUserGroup:getUserGroup": { - "description": "Provides a datasource to retrieve a user group based on the input parameters.\n\n## Example Usage\n\n``` hcl\n\n//Retrieve by UUID\ndata \"nutanix_user_group\" \"usergroup\" {\n\tuser_group_id = \"dd30a856-8e72-4158-b716-98455ceda220\"\n}\n\n//Retrieve by Name\ndata \"nutanix_user_group\" \"usergroupbyname\" {\n\tuser_group_name = \"example-group-1\"\n}\n\n//Retrieve by Distinguished Name\ndata \"nutanix_user_group\" \"test\" {\n\tuser_group_distinguished_name = \"cn=example-group-1,cn=users,dc=ntnxlab,dc=local\"\n}\n```\n", + "description": "Provides a datasource to retrieve a user group based on the input parameters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pulumi/nutanix\";\n\nconst usergroup = nutanix.getUserGroup({\n userGroupId: \"dd30a856-8e72-4158-b716-98455ceda220\",\n});\nconst usergroupbyname = nutanix.getUserGroup({\n userGroupName: \"example-group-1\",\n});\nconst test = nutanix.getUserGroup({\n userGroupDistinguishedName: \"cn=example-group-1,cn=users,dc=ntnxlab,dc=local\",\n});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nusergroup = nutanix.get_user_group(user_group_id=\"dd30a856-8e72-4158-b716-98455ceda220\")\nusergroupbyname = nutanix.get_user_group(user_group_name=\"example-group-1\")\ntest = nutanix.get_user_group(user_group_distinguished_name=\"cn=example-group-1,cn=users,dc=ntnxlab,dc=local\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = Pulumi.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var usergroup = Nutanix.GetUserGroup.Invoke(new()\n {\n UserGroupId = \"dd30a856-8e72-4158-b716-98455ceda220\",\n });\n\n var usergroupbyname = Nutanix.GetUserGroup.Invoke(new()\n {\n UserGroupName = \"example-group-1\",\n });\n\n var test = Nutanix.GetUserGroup.Invoke(new()\n {\n UserGroupDistinguishedName = \"cn=example-group-1,cn=users,dc=ntnxlab,dc=local\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.GetUserGroup(ctx, \u0026nutanix.GetUserGroupArgs{\n\t\t\tUserGroupId: pulumi.StringRef(\"dd30a856-8e72-4158-b716-98455ceda220\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = nutanix.GetUserGroup(ctx, \u0026nutanix.GetUserGroupArgs{\n\t\t\tUserGroupName: pulumi.StringRef(\"example-group-1\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = nutanix.GetUserGroup(ctx, \u0026nutanix.GetUserGroupArgs{\n\t\t\tUserGroupDistinguishedName: pulumi.StringRef(\"cn=example-group-1,cn=users,dc=ntnxlab,dc=local\"),\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.nutanix.NutanixFunctions;\nimport com.pulumi.nutanix.inputs.GetUserGroupArgs;\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 usergroup = NutanixFunctions.getUserGroup(GetUserGroupArgs.builder()\n .userGroupId(\"dd30a856-8e72-4158-b716-98455ceda220\")\n .build());\n\n final var usergroupbyname = NutanixFunctions.getUserGroup(GetUserGroupArgs.builder()\n .userGroupName(\"example-group-1\")\n .build());\n\n final var test = NutanixFunctions.getUserGroup(GetUserGroupArgs.builder()\n .userGroupDistinguishedName(\"cn=example-group-1,cn=users,dc=ntnxlab,dc=local\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n usergroup:\n fn::invoke:\n Function: nutanix:getUserGroup\n Arguments:\n userGroupId: dd30a856-8e72-4158-b716-98455ceda220\n usergroupbyname:\n fn::invoke:\n Function: nutanix:getUserGroup\n Arguments:\n userGroupName: example-group-1\n test:\n fn::invoke:\n Function: nutanix:getUserGroup\n Arguments:\n userGroupDistinguishedName: cn=example-group-1,cn=users,dc=ntnxlab,dc=local\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getUserGroup.\n", "properties": { @@ -65305,7 +65305,7 @@ } }, "nutanix:index/getUserGroups:getUserGroups": { - "description": "Provides a datasource to retrieve all the user groups.\n\n## Example Usage\n\n``` hcl\ndata \"nutanix_user_groups\" \"usergroups\" {}\n```\n", + "description": "Provides a datasource to retrieve all the user groups.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pulumi/nutanix\";\n\nconst usergroups = nutanix.getUserGroups({});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nusergroups = nutanix.get_user_groups()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = Pulumi.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var usergroups = Nutanix.GetUserGroups.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.LookupUserGroups(ctx, nil, 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.nutanix.NutanixFunctions;\nimport com.pulumi.nutanix.inputs.GetUserGroupsArgs;\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 usergroups = NutanixFunctions.getUserGroups();\n\n }\n}\n```\n```yaml\nvariables:\n usergroups:\n fn::invoke:\n Function: nutanix:getUserGroups\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getUserGroups.\n", "properties": { @@ -65352,7 +65352,7 @@ } }, "nutanix:index/getUsers:getUsers": { - "description": "Provides a datasource to retrieve all the users.\n\n## Example Usage\n\n``` hcl\nresource \"nutanix_user\" \"user\" {\n\tdirectory_service_user {\n\t\tuser_principal_name = \"test-user@ntnxlab.local\"\n\t\tdirectory_service_reference {\n\t\tuuid = \"\u003cdirectory-service-uuid\u003e\"\n\t\t}\n\t}\n}\n\ndata \"nutanix_user\" \"users\" {}\n```\n", + "description": "Provides a datasource to retrieve all the users.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nutanix from \"@pierskarsenbarg/nutanix\";\nimport * as nutanix from \"@pulumi/nutanix\";\n\nconst user = new nutanix.User(\"user\", {directoryServiceUser: {\n directoryServiceReference: {\n uuid: \"\u003cdirectory-service-uuid\u003e\",\n },\n userPrincipalName: \"test-user@ntnxlab.local\",\n}});\nconst users = nutanix.getUser({});\n```\n```python\nimport pulumi\nimport pulumi_nutanix as nutanix\n\nuser = nutanix.User(\"user\", directory_service_user=nutanix.UserDirectoryServiceUserArgs(\n directory_service_reference=nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs(\n uuid=\"\u003cdirectory-service-uuid\u003e\",\n ),\n user_principal_name=\"test-user@ntnxlab.local\",\n))\nusers = nutanix.get_user()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nutanix = PiersKarsenbarg.Nutanix;\nusing Nutanix = Pulumi.Nutanix;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var user = new Nutanix.User(\"user\", new()\n {\n DirectoryServiceUser = new Nutanix.Inputs.UserDirectoryServiceUserArgs\n {\n DirectoryServiceReference = new Nutanix.Inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs\n {\n Uuid = \"\u003cdirectory-service-uuid\u003e\",\n },\n UserPrincipalName = \"test-user@ntnxlab.local\",\n },\n });\n\n var users = Nutanix.GetUser.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix\"\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 := nutanix.NewUser(ctx, \"user\", \u0026nutanix.UserArgs{\n\t\t\tDirectoryServiceUser: \u0026nutanix.UserDirectoryServiceUserArgs{\n\t\t\t\tDirectoryServiceReference: \u0026nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs{\n\t\t\t\t\tUuid: pulumi.String(\"\u003cdirectory-service-uuid\u003e\"),\n\t\t\t\t},\n\t\t\t\tUserPrincipalName: pulumi.String(\"test-user@ntnxlab.local\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = nutanix.LookupUser(ctx, nil, 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.nutanix.User;\nimport com.pulumi.nutanix.UserArgs;\nimport com.pulumi.nutanix.inputs.UserDirectoryServiceUserArgs;\nimport com.pulumi.nutanix.inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs;\nimport com.pulumi.nutanix.NutanixFunctions;\nimport com.pulumi.nutanix.inputs.GetUserArgs;\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 user = new User(\"user\", UserArgs.builder()\n .directoryServiceUser(UserDirectoryServiceUserArgs.builder()\n .directoryServiceReference(UserDirectoryServiceUserDirectoryServiceReferenceArgs.builder()\n .uuid(\"\u003cdirectory-service-uuid\u003e\")\n .build())\n .userPrincipalName(\"test-user@ntnxlab.local\")\n .build())\n .build());\n\n final var users = NutanixFunctions.getUser();\n\n }\n}\n```\n```yaml\nresources:\n user:\n type: nutanix:User\n properties:\n directoryServiceUser:\n directoryServiceReference:\n uuid: \u003cdirectory-service-uuid\u003e\n userPrincipalName: test-user@ntnxlab.local\nvariables:\n users:\n fn::invoke:\n Function: nutanix:getUser\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getUsers.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 29acced..26ea1a3 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -4,7 +4,7 @@ go 1.22 replace ( github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240229143312-4f60ee4e2975 - github.com/terraform-providers/terraform-provider-nutanix => github.com/nutanix/terraform-provider-nutanix v1.9.5 + github.com/terraform-providers/terraform-provider-nutanix => github.com/pierskarsenbarg/terraform-provider-nutanix v1.6.2-0.20240528163917-bf1aea8fe346 ) require ( diff --git a/provider/go.sum b/provider/go.sum index 9215893..f53bddb 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2660,8 +2660,6 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLA github.com/nightlyone/lockfile v1.0.0 h1:RHep2cFKK4PonZJDdEl4GmkabuhbsRMgk/k3uAmxBiA= github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs= -github.com/nutanix/terraform-provider-nutanix v1.9.5 h1:/Ht5TBzivoTfwosW6H1G5FMObtLLW/Yy9i0cHSKFOKk= -github.com/nutanix/terraform-provider-nutanix v1.9.5/go.mod h1:xl2FgHIAKMTrU66ujzAAeu/SnzBt2sEXXH/tFhKwGo8= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= @@ -2789,6 +2787,8 @@ github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pierskarsenbarg/terraform-provider-nutanix v1.6.2-0.20240528163917-bf1aea8fe346 h1:iKhe2NJBMfMGp+xCyfoF4eAW6SkE9nh3E1lP6bm2o7w= +github.com/pierskarsenbarg/terraform-provider-nutanix v1.6.2-0.20240528163917-bf1aea8fe346/go.mod h1:xl2FgHIAKMTrU66ujzAAeu/SnzBt2sEXXH/tFhKwGo8= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= diff --git a/sdk/dotnet/AccessControlPolicy.cs b/sdk/dotnet/AccessControlPolicy.cs index a5ace46..3f12edc 100644 --- a/sdk/dotnet/AccessControlPolicy.cs +++ b/sdk/dotnet/AccessControlPolicy.cs @@ -12,8 +12,6 @@ namespace PiersKarsenbarg.Nutanix { /// /// Provides a resource to create an access control policy based on the input parameters. - /// - /// ## Example Usage /// [NutanixResourceType("nutanix:index/accessControlPolicy:AccessControlPolicy")] public partial class AccessControlPolicy : global::Pulumi.CustomResource diff --git a/sdk/dotnet/AddressGroup.cs b/sdk/dotnet/AddressGroup.cs index a5843fd..70dd608 100644 --- a/sdk/dotnet/AddressGroup.cs +++ b/sdk/dotnet/AddressGroup.cs @@ -14,6 +14,30 @@ namespace PiersKarsenbarg.Nutanix /// Provides a resource to create a address group based on the input parameters. /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var testAddress = new Nutanix.AddressGroup("testAddress", new() + /// { + /// Description = "test address groups resource", + /// IpAddressBlockLists = new[] + /// { + /// new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs + /// { + /// Ip = "10.0.0.0", + /// PrefixLength = 24, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` /// [NutanixResourceType("nutanix:index/addressGroup:AddressGroup")] public partial class AddressGroup : global::Pulumi.CustomResource diff --git a/sdk/dotnet/FoundationCentralApiKeys.cs b/sdk/dotnet/FoundationCentralApiKeys.cs index 8c4be18..5da30a8 100644 --- a/sdk/dotnet/FoundationCentralApiKeys.cs +++ b/sdk/dotnet/FoundationCentralApiKeys.cs @@ -14,6 +14,22 @@ namespace PiersKarsenbarg.Nutanix /// Provides a resource to create a new API key for nodes registration with Foundation Central. /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var newApiKey = new Nutanix.FoundationCentralApiKeys("newApiKey", new() + /// { + /// Alias = "<NAME-FOR-API-KEY>", + /// }); + /// + /// }); + /// ``` /// [NutanixResourceType("nutanix:index/foundationCentralApiKeys:FoundationCentralApiKeys")] public partial class FoundationCentralApiKeys : global::Pulumi.CustomResource diff --git a/sdk/dotnet/GetAccessControlPolicy.cs b/sdk/dotnet/GetAccessControlPolicy.cs index 5e0d6cd..d3a3a73 100644 --- a/sdk/dotnet/GetAccessControlPolicy.cs +++ b/sdk/dotnet/GetAccessControlPolicy.cs @@ -14,46 +14,12 @@ public static class GetAccessControlPolicy { /// /// Describes an Access Control Policy. - /// - /// ## Example Usage - /// - /// ``` hcl - /// resource "nutanix_access_control_policy" "test" { - /// name = "NAME OF ACCESS CONTROL POLICY" - /// description = "DESCRIPTION OF THE ACCESS CONTROL POLICY" - /// role_reference { - /// kind = "role" - /// uuid = "UUID of role" - /// } - /// } - /// data "nutanix_access_control_policy" "test" { - /// access_control_policy_id = nutanix_access_control_policy.test.id - /// } - /// - /// ``` /// public static Task InvokeAsync(GetAccessControlPolicyArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args ?? new GetAccessControlPolicyArgs(), options.WithDefaults()); /// /// Describes an Access Control Policy. - /// - /// ## Example Usage - /// - /// ``` hcl - /// resource "nutanix_access_control_policy" "test" { - /// name = "NAME OF ACCESS CONTROL POLICY" - /// description = "DESCRIPTION OF THE ACCESS CONTROL POLICY" - /// role_reference { - /// kind = "role" - /// uuid = "UUID of role" - /// } - /// } - /// data "nutanix_access_control_policy" "test" { - /// access_control_policy_id = nutanix_access_control_policy.test.id - /// } - /// - /// ``` /// public static Output Invoke(GetAccessControlPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args ?? new GetAccessControlPolicyInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetAddressGroup.cs b/sdk/dotnet/GetAddressGroup.cs index f11a97d..e0f1ad5 100644 --- a/sdk/dotnet/GetAddressGroup.cs +++ b/sdk/dotnet/GetAddressGroup.cs @@ -17,20 +17,34 @@ public static class GetAddressGroup /// /// ## Example Usage /// - /// ``` hcl - /// resource "nutanix_address_group" "test_address" { - /// name = "test" - /// description = "test address groups resource" + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; /// - /// ip_address_block_list { - /// ip = "10.0.0.0" - /// prefix_length = 24 - /// } - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var testAddress = new Nutanix.AddressGroup("testAddress", new() + /// { + /// Description = "test address groups resource", + /// IpAddressBlockLists = new[] + /// { + /// new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs + /// { + /// Ip = "10.0.0.0", + /// PrefixLength = 24, + /// }, + /// }, + /// }); /// - /// data "nutanix_address_group" "addr_group" { - /// uuid = nutanix_address_group.test_address.id - /// } + /// var addrGroup = Nutanix.GetAddressGroup.Invoke(new() + /// { + /// Uuid = testAddress.Id, + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetAddressGroupArgs args, InvokeOptions? options = null) @@ -41,20 +55,34 @@ public static Task InvokeAsync(GetAddressGroupArgs args, /// /// ## Example Usage /// - /// ``` hcl - /// resource "nutanix_address_group" "test_address" { - /// name = "test" - /// description = "test address groups resource" + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var testAddress = new Nutanix.AddressGroup("testAddress", new() + /// { + /// Description = "test address groups resource", + /// IpAddressBlockLists = new[] + /// { + /// new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs + /// { + /// Ip = "10.0.0.0", + /// PrefixLength = 24, + /// }, + /// }, + /// }); /// - /// ip_address_block_list { - /// ip = "10.0.0.0" - /// prefix_length = 24 - /// } - /// } + /// var addrGroup = Nutanix.GetAddressGroup.Invoke(new() + /// { + /// Uuid = testAddress.Id, + /// }); /// - /// data "nutanix_address_group" "addr_group" { - /// uuid = nutanix_address_group.test_address.id - /// } + /// }); /// ``` /// public static Output Invoke(GetAddressGroupInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/GetAddressGroups.cs b/sdk/dotnet/GetAddressGroups.cs index c00c4d2..355fb4d 100644 --- a/sdk/dotnet/GetAddressGroups.cs +++ b/sdk/dotnet/GetAddressGroups.cs @@ -17,8 +17,17 @@ public static class GetAddressGroups /// /// ## Example Usage /// - /// ``` hcl - /// data "nutanix_address_groups" "addr_groups" {} + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var addrGroups = Nutanix.GetAddressGroups.Invoke(); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetAddressGroupsArgs? args = null, InvokeOptions? options = null) @@ -29,8 +38,17 @@ public static Task InvokeAsync(GetAddressGroupsArgs? arg /// /// ## Example Usage /// - /// ``` hcl - /// data "nutanix_address_groups" "addr_groups" {} + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var addrGroups = Nutanix.GetAddressGroups.Invoke(); + /// + /// }); /// ``` /// public static Output Invoke(GetAddressGroupsInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/GetRole.cs b/sdk/dotnet/GetRole.cs index a628a1a..30ad994 100644 --- a/sdk/dotnet/GetRole.cs +++ b/sdk/dotnet/GetRole.cs @@ -14,44 +14,12 @@ public static class GetRole { /// /// Describes a Role. - /// - /// ## Example Usage - /// - /// ``` hcl - /// resource "nutanix_role" "test" { - /// name = "NAME" - /// description = "DESCRIPTION" - /// permission_reference_list { - /// kind = "permission" - /// uuid = "ID OF PERMISSION" - /// } - /// } - /// data "nutanix_role" "test" { - /// role_id = nutanix_role.test.id - /// } - /// ``` /// public static Task InvokeAsync(GetRoleArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("nutanix:index/getRole:getRole", args ?? new GetRoleArgs(), options.WithDefaults()); /// /// Describes a Role. - /// - /// ## Example Usage - /// - /// ``` hcl - /// resource "nutanix_role" "test" { - /// name = "NAME" - /// description = "DESCRIPTION" - /// permission_reference_list { - /// kind = "permission" - /// uuid = "ID OF PERMISSION" - /// } - /// } - /// data "nutanix_role" "test" { - /// role_id = nutanix_role.test.id - /// } - /// ``` /// public static Output Invoke(GetRoleInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRole:getRole", args ?? new GetRoleInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetRoles.cs b/sdk/dotnet/GetRoles.cs index e9e1662..344a750 100644 --- a/sdk/dotnet/GetRoles.cs +++ b/sdk/dotnet/GetRoles.cs @@ -17,8 +17,17 @@ public static class GetRoles /// /// ## Example Usage /// - /// ``` hcl - /// data "nutanix_roles" "test" {} + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Nutanix.GetRoles.Invoke(); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetRolesArgs? args = null, InvokeOptions? options = null) @@ -29,8 +38,17 @@ public static Task InvokeAsync(GetRolesArgs? args = null, Invoke /// /// ## Example Usage /// - /// ``` hcl - /// data "nutanix_roles" "test" {} + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Nutanix.GetRoles.Invoke(); + /// + /// }); /// ``` /// public static Output Invoke(GetRolesInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/GetUser.cs b/sdk/dotnet/GetUser.cs index 1c94e81..2e25b97 100644 --- a/sdk/dotnet/GetUser.cs +++ b/sdk/dotnet/GetUser.cs @@ -14,58 +14,12 @@ public static class GetUser { /// /// Provides a datasource to retrieve a user based on the input parameters. - /// - /// ## Example Usage - /// - /// ``` hcl - /// resource "nutanix_user" "user" { - /// directory_service_user { - /// user_principal_name = "test-user@ntnxlab.local" - /// directory_service_reference { - /// uuid = "<directory-service-uuid>" - /// } - /// } - /// } - /// - /// //Retrieve by UUID - /// data "nutanix_user" "user" { - /// uuid = nutanix_user.user.id - /// } - /// - /// //Retrieve by Name - /// data "nutanix_user" "userbyname" { - /// name = nutanix_user.user.name - /// } - /// ``` /// public static Task InvokeAsync(GetUserArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("nutanix:index/getUser:getUser", args ?? new GetUserArgs(), options.WithDefaults()); /// /// Provides a datasource to retrieve a user based on the input parameters. - /// - /// ## Example Usage - /// - /// ``` hcl - /// resource "nutanix_user" "user" { - /// directory_service_user { - /// user_principal_name = "test-user@ntnxlab.local" - /// directory_service_reference { - /// uuid = "<directory-service-uuid>" - /// } - /// } - /// } - /// - /// //Retrieve by UUID - /// data "nutanix_user" "user" { - /// uuid = nutanix_user.user.id - /// } - /// - /// //Retrieve by Name - /// data "nutanix_user" "userbyname" { - /// name = nutanix_user.user.name - /// } - /// ``` /// public static Output Invoke(GetUserInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUser:getUser", args ?? new GetUserInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetUserGroup.cs b/sdk/dotnet/GetUserGroup.cs index 7e8891d..b49ad7c 100644 --- a/sdk/dotnet/GetUserGroup.cs +++ b/sdk/dotnet/GetUserGroup.cs @@ -17,22 +17,30 @@ public static class GetUserGroup /// /// ## Example Usage /// - /// ``` hcl + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; /// - /// //Retrieve by UUID - /// data "nutanix_user_group" "usergroup" { - /// user_group_id = "dd30a856-8e72-4158-b716-98455ceda220" - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var usergroup = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupId = "dd30a856-8e72-4158-b716-98455ceda220", + /// }); /// - /// //Retrieve by Name - /// data "nutanix_user_group" "usergroupbyname" { - /// user_group_name = "example-group-1" - /// } + /// var usergroupbyname = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupName = "example-group-1", + /// }); /// - /// //Retrieve by Distinguished Name - /// data "nutanix_user_group" "test" { - /// user_group_distinguished_name = "cn=example-group-1,cn=users,dc=ntnxlab,dc=local" - /// } + /// var test = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupDistinguishedName = "cn=example-group-1,cn=users,dc=ntnxlab,dc=local", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetUserGroupArgs? args = null, InvokeOptions? options = null) @@ -43,22 +51,30 @@ public static Task InvokeAsync(GetUserGroupArgs? args = null /// /// ## Example Usage /// - /// ``` hcl + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var usergroup = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupId = "dd30a856-8e72-4158-b716-98455ceda220", + /// }); /// - /// //Retrieve by UUID - /// data "nutanix_user_group" "usergroup" { - /// user_group_id = "dd30a856-8e72-4158-b716-98455ceda220" - /// } + /// var usergroupbyname = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupName = "example-group-1", + /// }); /// - /// //Retrieve by Name - /// data "nutanix_user_group" "usergroupbyname" { - /// user_group_name = "example-group-1" - /// } + /// var test = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupDistinguishedName = "cn=example-group-1,cn=users,dc=ntnxlab,dc=local", + /// }); /// - /// //Retrieve by Distinguished Name - /// data "nutanix_user_group" "test" { - /// user_group_distinguished_name = "cn=example-group-1,cn=users,dc=ntnxlab,dc=local" - /// } + /// }); /// ``` /// public static Output Invoke(GetUserGroupInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/GetUserGroups.cs b/sdk/dotnet/GetUserGroups.cs index fe343d0..e098c42 100644 --- a/sdk/dotnet/GetUserGroups.cs +++ b/sdk/dotnet/GetUserGroups.cs @@ -17,8 +17,17 @@ public static class GetUserGroups /// /// ## Example Usage /// - /// ``` hcl - /// data "nutanix_user_groups" "usergroups" {} + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var usergroups = Nutanix.GetUserGroups.Invoke(); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetUserGroupsArgs? args = null, InvokeOptions? options = null) @@ -29,8 +38,17 @@ public static Task InvokeAsync(GetUserGroupsArgs? args = nu /// /// ## Example Usage /// - /// ``` hcl - /// data "nutanix_user_groups" "usergroups" {} + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var usergroups = Nutanix.GetUserGroups.Invoke(); + /// + /// }); /// ``` /// public static Output Invoke(GetUserGroupsInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/GetUsers.cs b/sdk/dotnet/GetUsers.cs index e864920..a7dd91f 100644 --- a/sdk/dotnet/GetUsers.cs +++ b/sdk/dotnet/GetUsers.cs @@ -17,17 +17,30 @@ public static class GetUsers /// /// ## Example Usage /// - /// ``` hcl - /// resource "nutanix_user" "user" { - /// directory_service_user { - /// user_principal_name = "test-user@ntnxlab.local" - /// directory_service_reference { - /// uuid = "<directory-service-uuid>" - /// } - /// } - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; /// - /// data "nutanix_user" "users" {} + /// return await Deployment.RunAsync(() => + /// { + /// var user = new Nutanix.User("user", new() + /// { + /// DirectoryServiceUser = new Nutanix.Inputs.UserDirectoryServiceUserArgs + /// { + /// DirectoryServiceReference = new Nutanix.Inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs + /// { + /// Uuid = "<directory-service-uuid>", + /// }, + /// UserPrincipalName = "test-user@ntnxlab.local", + /// }, + /// }); + /// + /// var users = Nutanix.GetUser.Invoke(); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetUsersArgs? args = null, InvokeOptions? options = null) @@ -38,17 +51,30 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// /// ## Example Usage /// - /// ``` hcl - /// resource "nutanix_user" "user" { - /// directory_service_user { - /// user_principal_name = "test-user@ntnxlab.local" - /// directory_service_reference { - /// uuid = "<directory-service-uuid>" - /// } - /// } - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var user = new Nutanix.User("user", new() + /// { + /// DirectoryServiceUser = new Nutanix.Inputs.UserDirectoryServiceUserArgs + /// { + /// DirectoryServiceReference = new Nutanix.Inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs + /// { + /// Uuid = "<directory-service-uuid>", + /// }, + /// UserPrincipalName = "test-user@ntnxlab.local", + /// }, + /// }); + /// + /// var users = Nutanix.GetUser.Invoke(); /// - /// data "nutanix_user" "users" {} + /// }); /// ``` /// public static Output Invoke(GetUsersInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/NdbDatabase.cs b/sdk/dotnet/NdbDatabase.cs index 11adc69..33aa642 100644 --- a/sdk/dotnet/NdbDatabase.cs +++ b/sdk/dotnet/NdbDatabase.cs @@ -17,7 +17,87 @@ namespace PiersKarsenbarg.Nutanix /// /// ### NDB database resource with new database server VM /// - /// ### NDB database resource to provision HA instance with new database server VM + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dbp = new Nutanix.NdbDatabase("dbp", new() + /// { + /// Databasetype = "postgres_database", + /// Description = "add description", + /// Softwareprofileid = "{{ software_profile_id }}", + /// Softwareprofileversionid = "{{ software_profile_version_id }}", + /// Computeprofileid = "{{ compute_profile_id }}", + /// Networkprofileid = "{{ network_profile_id }}", + /// Dbparameterprofileid = "{{ db_parameter_profile_id }}", + /// PostgresqlInfo = new Nutanix.Inputs.NdbDatabasePostgresqlInfoArgs + /// { + /// ListenerPort = "{{ listner_port }}", + /// DatabaseSize = "{{ 200 }}", + /// DbPassword = "password", + /// DatabaseNames = "testdb1", + /// }, + /// Nxclusterid = local.Clusters.EraCluster.Id, + /// Sshpublickey = "{{ ssh-public-key }}", + /// Nodes = new[] + /// { + /// new Nutanix.Inputs.NdbDatabaseNodeArgs + /// { + /// Vmname = "test-era-vm1", + /// Networkprofileid = "<network-profile-uuid>", + /// }, + /// }, + /// Timemachineinfo = new Nutanix.Inputs.NdbDatabaseTimemachineinfoArgs + /// { + /// Name = "test-pg-inst", + /// Description = "description of time machine", + /// Slaid = "{{ sla_id }}", + /// Schedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleArgs + /// { + /// Snapshottimeofday = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs + /// { + /// Hours = 16, + /// Minutes = 0, + /// Seconds = 0, + /// }, + /// Continuousschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs + /// { + /// Enabled = true, + /// Logbackupinterval = 30, + /// Snapshotsperday = 1, + /// }, + /// Weeklyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs + /// { + /// Enabled = true, + /// Dayofweek = "WEDNESDAY", + /// }, + /// Monthlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs + /// { + /// Enabled = true, + /// Dayofmonth = 27, + /// }, + /// Quartelyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs + /// { + /// Enabled = true, + /// Startmonth = "JANUARY", + /// Dayofmonth = 27, + /// }, + /// Yearlyschedule = new Nutanix.Inputs.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs + /// { + /// Enabled = false, + /// Dayofmonth = 31, + /// Month = "DECEMBER", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` /// /// ### NDB database resource with registered database server VM /// diff --git a/sdk/dotnet/Role.cs b/sdk/dotnet/Role.cs index 441ec97..37cd516 100644 --- a/sdk/dotnet/Role.cs +++ b/sdk/dotnet/Role.cs @@ -14,6 +14,40 @@ namespace PiersKarsenbarg.Nutanix /// Provides a resource to create a role based on the input parameters. /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = new Nutanix.Role("test", new() + /// { + /// Description = "DESCRIPTION", + /// PermissionReferenceLists = new[] + /// { + /// new Nutanix.Inputs.RolePermissionReferenceListArgs + /// { + /// Kind = "permission", + /// Uuid = "ID OF PERMISSION", + /// }, + /// new Nutanix.Inputs.RolePermissionReferenceListArgs + /// { + /// Kind = "permission", + /// Uuid = "ID OF PERMISSION", + /// }, + /// new Nutanix.Inputs.RolePermissionReferenceListArgs + /// { + /// Kind = "permission", + /// Uuid = "ID OF PERMISSION", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` /// [NutanixResourceType("nutanix:index/role:Role")] public partial class Role : global::Pulumi.CustomResource diff --git a/sdk/dotnet/ServiceGroup.cs b/sdk/dotnet/ServiceGroup.cs index fbbec8a..00cabe3 100644 --- a/sdk/dotnet/ServiceGroup.cs +++ b/sdk/dotnet/ServiceGroup.cs @@ -14,6 +14,42 @@ namespace PiersKarsenbarg.Nutanix /// Provides a resource to create a service group based on the input parameters. /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = new Nutanix.ServiceGroup("test", new() + /// { + /// Description = "this is service group", + /// ServiceLists = new[] + /// { + /// new Nutanix.Inputs.ServiceGroupServiceListArgs + /// { + /// Protocol = "TCP", + /// TcpPortRangeLists = new[] + /// { + /// new Nutanix.Inputs.ServiceGroupServiceListTcpPortRangeListArgs + /// { + /// EndPort = 22, + /// StartPort = 22, + /// }, + /// new Nutanix.Inputs.ServiceGroupServiceListTcpPortRangeListArgs + /// { + /// EndPort = 2222, + /// StartPort = 2222, + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` /// [NutanixResourceType("nutanix:index/serviceGroup:ServiceGroup")] public partial class ServiceGroup : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Subnet.cs b/sdk/dotnet/Subnet.cs index a2daa4e..18c0579 100644 --- a/sdk/dotnet/Subnet.cs +++ b/sdk/dotnet/Subnet.cs @@ -12,8 +12,6 @@ namespace PiersKarsenbarg.Nutanix { /// /// Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses. - /// - /// ## Example Usage /// [NutanixResourceType("nutanix:index/subnet:Subnet")] public partial class Subnet : global::Pulumi.CustomResource diff --git a/sdk/dotnet/User.cs b/sdk/dotnet/User.cs index 55ecc76..ecbf921 100644 --- a/sdk/dotnet/User.cs +++ b/sdk/dotnet/User.cs @@ -14,6 +14,52 @@ namespace PiersKarsenbarg.Nutanix /// Provides a resource to create a user based on the input parameters. /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var user = new Nutanix.User("user", new() + /// { + /// DirectoryServiceUser = new Nutanix.Inputs.UserDirectoryServiceUserArgs + /// { + /// DirectoryServiceReference = new Nutanix.Inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs + /// { + /// Uuid = "<directory-service-uuid>", + /// }, + /// UserPrincipalName = "test-user@ntnxlab.local", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var user = new Nutanix.User("user", new() + /// { + /// IdentityProviderUser = new Nutanix.Inputs.UserIdentityProviderUserArgs + /// { + /// IdentityProviderReference = new Nutanix.Inputs.UserIdentityProviderUserIdentityProviderReferenceArgs + /// { + /// Uuid = "<identity-provider-uuid>", + /// }, + /// Username = "username", + /// }, + /// }); + /// + /// }); + /// ``` /// [NutanixResourceType("nutanix:index/user:User")] public partial class User : global::Pulumi.CustomResource diff --git a/sdk/dotnet/UserGroups.cs b/sdk/dotnet/UserGroups.cs index d9ef863..9b5f392 100644 --- a/sdk/dotnet/UserGroups.cs +++ b/sdk/dotnet/UserGroups.cs @@ -14,6 +14,51 @@ namespace PiersKarsenbarg.Nutanix /// Provides a resource to add a User group to the system.. /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var userGrp = new Nutanix.UserGroups("userGrp", new() + /// { + /// DirectoryServiceUserGroups = new[] + /// { + /// new Nutanix.Inputs.UserGroupsDirectoryServiceUserGroupArgs + /// { + /// DistinguishedName = "<distinguished name for the user group>", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var userGrp = new Nutanix.UserGroups("userGrp", new() + /// { + /// SamlUserGroups = new[] + /// { + /// new Nutanix.Inputs.UserGroupsSamlUserGroupArgs + /// { + /// IdpUuid = "<idp uuid of the group>", + /// Name = "<name of saml group>", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` /// [NutanixResourceType("nutanix:index/userGroups:UserGroups")] public partial class UserGroups : global::Pulumi.CustomResource diff --git a/sdk/go/nutanix/accessControlPolicy.go b/sdk/go/nutanix/accessControlPolicy.go index 12c31dd..de99cfd 100644 --- a/sdk/go/nutanix/accessControlPolicy.go +++ b/sdk/go/nutanix/accessControlPolicy.go @@ -13,8 +13,6 @@ import ( ) // Provides a resource to create an access control policy based on the input parameters. -// -// ## Example Usage type AccessControlPolicy struct { pulumi.CustomResourceState diff --git a/sdk/go/nutanix/addressGroup.go b/sdk/go/nutanix/addressGroup.go index 17d8cff..9d5eb22 100644 --- a/sdk/go/nutanix/addressGroup.go +++ b/sdk/go/nutanix/addressGroup.go @@ -15,6 +15,36 @@ import ( // Provides a resource to create a address group based on the input parameters. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewAddressGroup(ctx, "testAddress", &nutanix.AddressGroupArgs{ +// Description: pulumi.String("test address groups resource"), +// IpAddressBlockLists: nutanix.AddressGroupIpAddressBlockListArray{ +// &nutanix.AddressGroupIpAddressBlockListArgs{ +// Ip: pulumi.String("10.0.0.0"), +// PrefixLength: pulumi.Int(24), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type AddressGroup struct { pulumi.CustomResourceState diff --git a/sdk/go/nutanix/foundationCentralApiKeys.go b/sdk/go/nutanix/foundationCentralApiKeys.go index 5e10e92..62f9d93 100644 --- a/sdk/go/nutanix/foundationCentralApiKeys.go +++ b/sdk/go/nutanix/foundationCentralApiKeys.go @@ -15,6 +15,30 @@ import ( // Provides a resource to create a new API key for nodes registration with Foundation Central. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewFoundationCentralApiKeys(ctx, "newApiKey", &nutanix.FoundationCentralApiKeysArgs{ +// Alias: pulumi.String(""), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type FoundationCentralApiKeys struct { pulumi.CustomResourceState diff --git a/sdk/go/nutanix/getAccessControlPolicy.go b/sdk/go/nutanix/getAccessControlPolicy.go index 38e36ee..290aceb 100644 --- a/sdk/go/nutanix/getAccessControlPolicy.go +++ b/sdk/go/nutanix/getAccessControlPolicy.go @@ -12,8 +12,6 @@ import ( ) // Describes an Access Control Policy. -// -// ## Example Usage func LookupAccessControlPolicy(ctx *pulumi.Context, args *LookupAccessControlPolicyArgs, opts ...pulumi.InvokeOption) (*LookupAccessControlPolicyResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAccessControlPolicyResult diff --git a/sdk/go/nutanix/getAddressGroup.go b/sdk/go/nutanix/getAddressGroup.go index 8773731..48ccc36 100644 --- a/sdk/go/nutanix/getAddressGroup.go +++ b/sdk/go/nutanix/getAddressGroup.go @@ -14,6 +14,39 @@ import ( // Provides a datasource to retrieve a address group. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// testAddress, err := nutanix.NewAddressGroup(ctx, "testAddress", &nutanix.AddressGroupArgs{ +// Description: pulumi.String("test address groups resource"), +// IpAddressBlockLists: nutanix.AddressGroupIpAddressBlockListArray{ +// &nutanix.AddressGroupIpAddressBlockListArgs{ +// Ip: pulumi.String("10.0.0.0"), +// PrefixLength: pulumi.Int(24), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// _ = nutanix.LookupAddressGroupOutput(ctx, nutanix.GetAddressGroupOutputArgs{ +// Uuid: testAddress.ID(), +// }, nil) +// return nil +// }) +// } +// +// ``` func LookupAddressGroup(ctx *pulumi.Context, args *LookupAddressGroupArgs, opts ...pulumi.InvokeOption) (*LookupAddressGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAddressGroupResult diff --git a/sdk/go/nutanix/getAddressGroups.go b/sdk/go/nutanix/getAddressGroups.go index d1cc9d4..79c2fc7 100644 --- a/sdk/go/nutanix/getAddressGroups.go +++ b/sdk/go/nutanix/getAddressGroups.go @@ -14,6 +14,28 @@ import ( // Provides a datasource to retrieve list of address groups. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.GetAddressGroups(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetAddressGroups(ctx *pulumi.Context, args *GetAddressGroupsArgs, opts ...pulumi.InvokeOption) (*GetAddressGroupsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetAddressGroupsResult diff --git a/sdk/go/nutanix/getRole.go b/sdk/go/nutanix/getRole.go index 730f340..80cf71b 100644 --- a/sdk/go/nutanix/getRole.go +++ b/sdk/go/nutanix/getRole.go @@ -12,8 +12,6 @@ import ( ) // Describes a Role. -// -// ## Example Usage func LookupRole(ctx *pulumi.Context, args *LookupRoleArgs, opts ...pulumi.InvokeOption) (*LookupRoleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRoleResult diff --git a/sdk/go/nutanix/getRoles.go b/sdk/go/nutanix/getRoles.go index 49c4e9e..16fbd56 100644 --- a/sdk/go/nutanix/getRoles.go +++ b/sdk/go/nutanix/getRoles.go @@ -14,6 +14,28 @@ import ( // Describes a list of roles. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.GetRoles(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetRoles(ctx *pulumi.Context, args *GetRolesArgs, opts ...pulumi.InvokeOption) (*GetRolesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetRolesResult diff --git a/sdk/go/nutanix/getUser.go b/sdk/go/nutanix/getUser.go index e038d10..f0ec581 100644 --- a/sdk/go/nutanix/getUser.go +++ b/sdk/go/nutanix/getUser.go @@ -12,8 +12,6 @@ import ( ) // Provides a datasource to retrieve a user based on the input parameters. -// -// ## Example Usage func LookupUser(ctx *pulumi.Context, args *LookupUserArgs, opts ...pulumi.InvokeOption) (*LookupUserResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupUserResult diff --git a/sdk/go/nutanix/getUserGroup.go b/sdk/go/nutanix/getUserGroup.go index 64254f5..0d12654 100644 --- a/sdk/go/nutanix/getUserGroup.go +++ b/sdk/go/nutanix/getUserGroup.go @@ -14,6 +14,42 @@ import ( // Provides a datasource to retrieve a user group based on the input parameters. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.GetUserGroup(ctx, &nutanix.GetUserGroupArgs{ +// UserGroupId: pulumi.StringRef("dd30a856-8e72-4158-b716-98455ceda220"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = nutanix.GetUserGroup(ctx, &nutanix.GetUserGroupArgs{ +// UserGroupName: pulumi.StringRef("example-group-1"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = nutanix.GetUserGroup(ctx, &nutanix.GetUserGroupArgs{ +// UserGroupDistinguishedName: pulumi.StringRef("cn=example-group-1,cn=users,dc=ntnxlab,dc=local"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetUserGroup(ctx *pulumi.Context, args *GetUserGroupArgs, opts ...pulumi.InvokeOption) (*GetUserGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetUserGroupResult diff --git a/sdk/go/nutanix/getUserGroups.go b/sdk/go/nutanix/getUserGroups.go index 3c7f2e8..bb413f0 100644 --- a/sdk/go/nutanix/getUserGroups.go +++ b/sdk/go/nutanix/getUserGroups.go @@ -14,6 +14,28 @@ import ( // Provides a datasource to retrieve all the user groups. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.LookupUserGroups(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupUserGroups(ctx *pulumi.Context, args *LookupUserGroupsArgs, opts ...pulumi.InvokeOption) (*LookupUserGroupsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupUserGroupsResult diff --git a/sdk/go/nutanix/getUsers.go b/sdk/go/nutanix/getUsers.go index c082f85..833246d 100644 --- a/sdk/go/nutanix/getUsers.go +++ b/sdk/go/nutanix/getUsers.go @@ -14,6 +14,39 @@ import ( // Provides a datasource to retrieve all the users. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewUser(ctx, "user", &nutanix.UserArgs{ +// DirectoryServiceUser: &nutanix.UserDirectoryServiceUserArgs{ +// DirectoryServiceReference: &nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs{ +// Uuid: pulumi.String(""), +// }, +// UserPrincipalName: pulumi.String("test-user@ntnxlab.local"), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = nutanix.LookupUser(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetUsersResult diff --git a/sdk/go/nutanix/ndbDatabase.go b/sdk/go/nutanix/ndbDatabase.go index 0d8cebc..e1e8e20 100644 --- a/sdk/go/nutanix/ndbDatabase.go +++ b/sdk/go/nutanix/ndbDatabase.go @@ -17,7 +17,84 @@ import ( // // ### NDB database resource with new database server VM // -// ### NDB database resource to provision HA instance with new database server VM +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewNdbDatabase(ctx, "dbp", &nutanix.NdbDatabaseArgs{ +// Databasetype: pulumi.String("postgres_database"), +// Description: pulumi.String("add description"), +// Softwareprofileid: pulumi.String("{{ software_profile_id }}"), +// Softwareprofileversionid: pulumi.String("{{ software_profile_version_id }}"), +// Computeprofileid: pulumi.String("{{ compute_profile_id }}"), +// Networkprofileid: pulumi.String("{{ network_profile_id }}"), +// Dbparameterprofileid: pulumi.String("{{ db_parameter_profile_id }}"), +// PostgresqlInfo: &nutanix.NdbDatabasePostgresqlInfoArgs{ +// ListenerPort: pulumi.String("{{ listner_port }}"), +// DatabaseSize: pulumi.String("{{ 200 }}"), +// DbPassword: pulumi.String("password"), +// DatabaseNames: pulumi.String("testdb1"), +// }, +// Nxclusterid: pulumi.Any(local.Clusters.EraCluster.Id), +// Sshpublickey: pulumi.String("{{ ssh-public-key }}"), +// Nodes: nutanix.NdbDatabaseNodeArray{ +// &nutanix.NdbDatabaseNodeArgs{ +// Vmname: pulumi.String("test-era-vm1"), +// Networkprofileid: pulumi.String(""), +// }, +// }, +// Timemachineinfo: &nutanix.NdbDatabaseTimemachineinfoArgs{ +// Name: pulumi.String("test-pg-inst"), +// Description: pulumi.String("description of time machine"), +// Slaid: pulumi.String("{{ sla_id }}"), +// Schedule: &nutanix.NdbDatabaseTimemachineinfoScheduleArgs{ +// Snapshottimeofday: &nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs{ +// Hours: pulumi.Int(16), +// Minutes: pulumi.Int(0), +// Seconds: pulumi.Int(0), +// }, +// Continuousschedule: &nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs{ +// Enabled: pulumi.Bool(true), +// Logbackupinterval: pulumi.Int(30), +// Snapshotsperday: pulumi.Int(1), +// }, +// Weeklyschedule: &nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs{ +// Enabled: pulumi.Bool(true), +// Dayofweek: pulumi.String("WEDNESDAY"), +// }, +// Monthlyschedule: &nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs{ +// Enabled: pulumi.Bool(true), +// Dayofmonth: pulumi.Int(27), +// }, +// Quartelyschedule: &nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs{ +// Enabled: pulumi.Bool(true), +// Startmonth: pulumi.String("JANUARY"), +// Dayofmonth: pulumi.Int(27), +// }, +// Yearlyschedule: &nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs{ +// Enabled: pulumi.Bool(false), +// Dayofmonth: pulumi.Int(31), +// Month: pulumi.String("DECEMBER"), +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` // // ### NDB database resource with registered database server VM // diff --git a/sdk/go/nutanix/role.go b/sdk/go/nutanix/role.go index d75e8b3..d32e8c9 100644 --- a/sdk/go/nutanix/role.go +++ b/sdk/go/nutanix/role.go @@ -15,6 +15,44 @@ import ( // Provides a resource to create a role based on the input parameters. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewRole(ctx, "test", &nutanix.RoleArgs{ +// Description: pulumi.String("DESCRIPTION"), +// PermissionReferenceLists: nutanix.RolePermissionReferenceListArray{ +// &nutanix.RolePermissionReferenceListArgs{ +// Kind: pulumi.String("permission"), +// Uuid: pulumi.String("ID OF PERMISSION"), +// }, +// &nutanix.RolePermissionReferenceListArgs{ +// Kind: pulumi.String("permission"), +// Uuid: pulumi.String("ID OF PERMISSION"), +// }, +// &nutanix.RolePermissionReferenceListArgs{ +// Kind: pulumi.String("permission"), +// Uuid: pulumi.String("ID OF PERMISSION"), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type Role struct { pulumi.CustomResourceState diff --git a/sdk/go/nutanix/serviceGroup.go b/sdk/go/nutanix/serviceGroup.go index f0c210a..f672143 100644 --- a/sdk/go/nutanix/serviceGroup.go +++ b/sdk/go/nutanix/serviceGroup.go @@ -15,6 +15,45 @@ import ( // Provides a resource to create a service group based on the input parameters. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewServiceGroup(ctx, "test", &nutanix.ServiceGroupArgs{ +// Description: pulumi.String("this is service group"), +// ServiceLists: nutanix.ServiceGroupServiceListArray{ +// &nutanix.ServiceGroupServiceListArgs{ +// Protocol: pulumi.String("TCP"), +// TcpPortRangeLists: nutanix.ServiceGroupServiceListTcpPortRangeListArray{ +// &nutanix.ServiceGroupServiceListTcpPortRangeListArgs{ +// EndPort: pulumi.Int(22), +// StartPort: pulumi.Int(22), +// }, +// &nutanix.ServiceGroupServiceListTcpPortRangeListArgs{ +// EndPort: pulumi.Int(2222), +// StartPort: pulumi.Int(2222), +// }, +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type ServiceGroup struct { pulumi.CustomResourceState diff --git a/sdk/go/nutanix/subnet.go b/sdk/go/nutanix/subnet.go index 524ceee..1ae0504 100644 --- a/sdk/go/nutanix/subnet.go +++ b/sdk/go/nutanix/subnet.go @@ -13,8 +13,6 @@ import ( ) // Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses. -// -// ## Example Usage type Subnet struct { pulumi.CustomResourceState diff --git a/sdk/go/nutanix/user.go b/sdk/go/nutanix/user.go index 6bbba38..3cf93e7 100644 --- a/sdk/go/nutanix/user.go +++ b/sdk/go/nutanix/user.go @@ -14,6 +14,64 @@ import ( // Provides a resource to create a user based on the input parameters. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewUser(ctx, "user", &nutanix.UserArgs{ +// DirectoryServiceUser: &nutanix.UserDirectoryServiceUserArgs{ +// DirectoryServiceReference: &nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs{ +// Uuid: pulumi.String(""), +// }, +// UserPrincipalName: pulumi.String("test-user@ntnxlab.local"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewUser(ctx, "user", &nutanix.UserArgs{ +// IdentityProviderUser: &nutanix.UserIdentityProviderUserArgs{ +// IdentityProviderReference: &nutanix.UserIdentityProviderUserIdentityProviderReferenceArgs{ +// Uuid: pulumi.String(""), +// }, +// Username: pulumi.String("username"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type User struct { pulumi.CustomResourceState diff --git a/sdk/go/nutanix/userGroups.go b/sdk/go/nutanix/userGroups.go index 120e391..500232c 100644 --- a/sdk/go/nutanix/userGroups.go +++ b/sdk/go/nutanix/userGroups.go @@ -14,6 +14,63 @@ import ( // Provides a resource to add a User group to the system.. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewUserGroups(ctx, "userGrp", &nutanix.UserGroupsArgs{ +// DirectoryServiceUserGroups: nutanix.UserGroupsDirectoryServiceUserGroupArray{ +// &nutanix.UserGroupsDirectoryServiceUserGroupArgs{ +// DistinguishedName: pulumi.String(""), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ```go +// package main +// +// import ( +// +// "github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := nutanix.NewUserGroups(ctx, "userGrp", &nutanix.UserGroupsArgs{ +// SamlUserGroups: nutanix.UserGroupsSamlUserGroupArray{ +// &nutanix.UserGroupsSamlUserGroupArgs{ +// IdpUuid: pulumi.String(""), +// Name: pulumi.String(""), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type UserGroups struct { pulumi.CustomResourceState diff --git a/sdk/nodejs/accessControlPolicy.ts b/sdk/nodejs/accessControlPolicy.ts index 9265689..5b2551f 100644 --- a/sdk/nodejs/accessControlPolicy.ts +++ b/sdk/nodejs/accessControlPolicy.ts @@ -8,8 +8,6 @@ import * as utilities from "./utilities"; /** * Provides a resource to create an access control policy based on the input parameters. - * - * ## Example Usage */ export class AccessControlPolicy extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/addressGroup.ts b/sdk/nodejs/addressGroup.ts index cdbe778..f9c22cf 100644 --- a/sdk/nodejs/addressGroup.ts +++ b/sdk/nodejs/addressGroup.ts @@ -10,6 +10,19 @@ import * as utilities from "./utilities"; * Provides a resource to create a address group based on the input parameters. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const testAddress = new nutanix.AddressGroup("testAddress", { + * description: "test address groups resource", + * ipAddressBlockLists: [{ + * ip: "10.0.0.0", + * prefixLength: 24, + * }], + * }); + * ``` */ export class AddressGroup extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/foundationCentralApiKeys.ts b/sdk/nodejs/foundationCentralApiKeys.ts index b1e52e8..049bac3 100644 --- a/sdk/nodejs/foundationCentralApiKeys.ts +++ b/sdk/nodejs/foundationCentralApiKeys.ts @@ -8,6 +8,13 @@ import * as utilities from "./utilities"; * Provides a resource to create a new API key for nodes registration with Foundation Central. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const newApiKey = new nutanix.FoundationCentralApiKeys("newApiKey", {alias: ""}); + * ``` */ export class FoundationCentralApiKeys extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/getAccessControlPolicy.ts b/sdk/nodejs/getAccessControlPolicy.ts index a7929cb..ba4c5d4 100644 --- a/sdk/nodejs/getAccessControlPolicy.ts +++ b/sdk/nodejs/getAccessControlPolicy.ts @@ -8,8 +8,6 @@ import * as utilities from "./utilities"; /** * Describes an Access Control Policy. - * - * ## Example Usage */ export function getAccessControlPolicy(args?: GetAccessControlPolicyArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -95,8 +93,6 @@ export interface GetAccessControlPolicyResult { } /** * Describes an Access Control Policy. - * - * ## Example Usage */ export function getAccessControlPolicyOutput(args?: GetAccessControlPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getAccessControlPolicy(a, opts)) diff --git a/sdk/nodejs/getAddressGroup.ts b/sdk/nodejs/getAddressGroup.ts index 80d2fad..684ea37 100644 --- a/sdk/nodejs/getAddressGroup.ts +++ b/sdk/nodejs/getAddressGroup.ts @@ -10,6 +10,23 @@ import * as utilities from "./utilities"; * Provides a datasource to retrieve a address group. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const testAddress = new nutanix.AddressGroup("testAddress", { + * description: "test address groups resource", + * ipAddressBlockLists: [{ + * ip: "10.0.0.0", + * prefixLength: 24, + * }], + * }); + * const addrGroup = nutanix.getAddressGroupOutput({ + * uuid: testAddress.id, + * }); + * ``` */ export function getAddressGroup(args: GetAddressGroupArgs, opts?: pulumi.InvokeOptions): Promise { @@ -62,6 +79,23 @@ export interface GetAddressGroupResult { * Provides a datasource to retrieve a address group. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const testAddress = new nutanix.AddressGroup("testAddress", { + * description: "test address groups resource", + * ipAddressBlockLists: [{ + * ip: "10.0.0.0", + * prefixLength: 24, + * }], + * }); + * const addrGroup = nutanix.getAddressGroupOutput({ + * uuid: testAddress.id, + * }); + * ``` */ export function getAddressGroupOutput(args: GetAddressGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getAddressGroup(a, opts)) diff --git a/sdk/nodejs/getAddressGroups.ts b/sdk/nodejs/getAddressGroups.ts index 3a8a8c0..5195596 100644 --- a/sdk/nodejs/getAddressGroups.ts +++ b/sdk/nodejs/getAddressGroups.ts @@ -10,6 +10,13 @@ import * as utilities from "./utilities"; * Provides a datasource to retrieve list of address groups. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const addrGroups = nutanix.getAddressGroups({}); + * ``` */ export function getAddressGroups(args?: GetAddressGroupsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -51,6 +58,13 @@ export interface GetAddressGroupsResult { * Provides a datasource to retrieve list of address groups. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const addrGroups = nutanix.getAddressGroups({}); + * ``` */ export function getAddressGroupsOutput(args?: GetAddressGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getAddressGroups(a, opts)) diff --git a/sdk/nodejs/getRole.ts b/sdk/nodejs/getRole.ts index 29a0683..c98144c 100644 --- a/sdk/nodejs/getRole.ts +++ b/sdk/nodejs/getRole.ts @@ -8,8 +8,6 @@ import * as utilities from "./utilities"; /** * Describes a Role. - * - * ## Example Usage */ export function getRole(args?: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -89,8 +87,6 @@ export interface GetRoleResult { } /** * Describes a Role. - * - * ## Example Usage */ export function getRoleOutput(args?: GetRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getRole(a, opts)) diff --git a/sdk/nodejs/getRoles.ts b/sdk/nodejs/getRoles.ts index 619add3..2848595 100644 --- a/sdk/nodejs/getRoles.ts +++ b/sdk/nodejs/getRoles.ts @@ -10,6 +10,13 @@ import * as utilities from "./utilities"; * Describes a list of roles. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const test = nutanix.getRoles({}); + * ``` */ export function getRoles(args?: GetRolesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -55,6 +62,13 @@ export interface GetRolesResult { * Describes a list of roles. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const test = nutanix.getRoles({}); + * ``` */ export function getRolesOutput(args?: GetRolesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getRoles(a, opts)) diff --git a/sdk/nodejs/getUser.ts b/sdk/nodejs/getUser.ts index 6e07842..8b539a6 100644 --- a/sdk/nodejs/getUser.ts +++ b/sdk/nodejs/getUser.ts @@ -8,8 +8,6 @@ import * as utilities from "./utilities"; /** * Provides a datasource to retrieve a user based on the input parameters. - * - * ## Example Usage */ export function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -105,8 +103,6 @@ export interface GetUserResult { } /** * Provides a datasource to retrieve a user based on the input parameters. - * - * ## Example Usage */ export function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getUser(a, opts)) diff --git a/sdk/nodejs/getUserGroup.ts b/sdk/nodejs/getUserGroup.ts index 30d1723..cecb015 100644 --- a/sdk/nodejs/getUserGroup.ts +++ b/sdk/nodejs/getUserGroup.ts @@ -10,6 +10,21 @@ import * as utilities from "./utilities"; * Provides a datasource to retrieve a user group based on the input parameters. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const usergroup = nutanix.getUserGroup({ + * userGroupId: "dd30a856-8e72-4158-b716-98455ceda220", + * }); + * const usergroupbyname = nutanix.getUserGroup({ + * userGroupName: "example-group-1", + * }); + * const test = nutanix.getUserGroup({ + * userGroupDistinguishedName: "cn=example-group-1,cn=users,dc=ntnxlab,dc=local", + * }); + * ``` */ export function getUserGroup(args?: GetUserGroupArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -115,6 +130,21 @@ export interface GetUserGroupResult { * Provides a datasource to retrieve a user group based on the input parameters. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const usergroup = nutanix.getUserGroup({ + * userGroupId: "dd30a856-8e72-4158-b716-98455ceda220", + * }); + * const usergroupbyname = nutanix.getUserGroup({ + * userGroupName: "example-group-1", + * }); + * const test = nutanix.getUserGroup({ + * userGroupDistinguishedName: "cn=example-group-1,cn=users,dc=ntnxlab,dc=local", + * }); + * ``` */ export function getUserGroupOutput(args?: GetUserGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getUserGroup(a, opts)) diff --git a/sdk/nodejs/getUserGroups.ts b/sdk/nodejs/getUserGroups.ts index 4eb7dbc..a9b37dd 100644 --- a/sdk/nodejs/getUserGroups.ts +++ b/sdk/nodejs/getUserGroups.ts @@ -10,6 +10,13 @@ import * as utilities from "./utilities"; * Provides a datasource to retrieve all the user groups. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const usergroups = nutanix.getUserGroups({}); + * ``` */ export function getUserGroups(args?: GetUserGroupsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -46,6 +53,13 @@ export interface GetUserGroupsResult { * Provides a datasource to retrieve all the user groups. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const usergroups = nutanix.getUserGroups({}); + * ``` */ export function getUserGroupsOutput(args?: GetUserGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getUserGroups(a, opts)) diff --git a/sdk/nodejs/getUsers.ts b/sdk/nodejs/getUsers.ts index 98c2ad0..b93283e 100644 --- a/sdk/nodejs/getUsers.ts +++ b/sdk/nodejs/getUsers.ts @@ -10,6 +10,20 @@ import * as utilities from "./utilities"; * Provides a datasource to retrieve all the users. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const user = new nutanix.User("user", {directoryServiceUser: { + * directoryServiceReference: { + * uuid: "", + * }, + * userPrincipalName: "test-user@ntnxlab.local", + * }}); + * const users = nutanix.getUser({}); + * ``` */ export function getUsers(args?: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -55,6 +69,20 @@ export interface GetUsersResult { * Provides a datasource to retrieve all the users. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * import * as nutanix from "@pulumi/nutanix"; + * + * const user = new nutanix.User("user", {directoryServiceUser: { + * directoryServiceReference: { + * uuid: "", + * }, + * userPrincipalName: "test-user@ntnxlab.local", + * }}); + * const users = nutanix.getUser({}); + * ``` */ export function getUsersOutput(args?: GetUsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getUsers(a, opts)) diff --git a/sdk/nodejs/ndbDatabase.ts b/sdk/nodejs/ndbDatabase.ts index b6e7036..821875b 100644 --- a/sdk/nodejs/ndbDatabase.ts +++ b/sdk/nodejs/ndbDatabase.ts @@ -13,7 +13,67 @@ import * as utilities from "./utilities"; * * ### NDB database resource with new database server VM * - * ### NDB database resource to provision HA instance with new database server VM + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const dbp = new nutanix.NdbDatabase("dbp", { + * databasetype: "postgres_database", + * description: "add description", + * softwareprofileid: "{{ software_profile_id }}", + * softwareprofileversionid: "{{ software_profile_version_id }}", + * computeprofileid: "{{ compute_profile_id }}", + * networkprofileid: "{{ network_profile_id }}", + * dbparameterprofileid: "{{ db_parameter_profile_id }}", + * postgresqlInfo: { + * listenerPort: "{{ listner_port }}", + * databaseSize: "{{ 200 }}", + * dbPassword: "password", + * databaseNames: "testdb1", + * }, + * nxclusterid: local.clusters.EraCluster.id, + * sshpublickey: "{{ ssh-public-key }}", + * nodes: [{ + * vmname: "test-era-vm1", + * networkprofileid: "", + * }], + * timemachineinfo: { + * name: "test-pg-inst", + * description: "description of time machine", + * slaid: "{{ sla_id }}", + * schedule: { + * snapshottimeofday: { + * hours: 16, + * minutes: 0, + * seconds: 0, + * }, + * continuousschedule: { + * enabled: true, + * logbackupinterval: 30, + * snapshotsperday: 1, + * }, + * weeklyschedule: { + * enabled: true, + * dayofweek: "WEDNESDAY", + * }, + * monthlyschedule: { + * enabled: true, + * dayofmonth: 27, + * }, + * quartelyschedule: { + * enabled: true, + * startmonth: "JANUARY", + * dayofmonth: 27, + * }, + * yearlyschedule: { + * enabled: false, + * dayofmonth: 31, + * month: "DECEMBER", + * }, + * }, + * }, + * }); + * ``` * * ### NDB database resource with registered database server VM * diff --git a/sdk/nodejs/role.ts b/sdk/nodejs/role.ts index b41fbe8..c3a8e50 100644 --- a/sdk/nodejs/role.ts +++ b/sdk/nodejs/role.ts @@ -10,6 +10,29 @@ import * as utilities from "./utilities"; * Provides a resource to create a role based on the input parameters. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const test = new nutanix.Role("test", { + * description: "DESCRIPTION", + * permissionReferenceLists: [ + * { + * kind: "permission", + * uuid: "ID OF PERMISSION", + * }, + * { + * kind: "permission", + * uuid: "ID OF PERMISSION", + * }, + * { + * kind: "permission", + * uuid: "ID OF PERMISSION", + * }, + * ], + * }); + * ``` */ export class Role extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/serviceGroup.ts b/sdk/nodejs/serviceGroup.ts index efb4977..edcf024 100644 --- a/sdk/nodejs/serviceGroup.ts +++ b/sdk/nodejs/serviceGroup.ts @@ -10,6 +10,28 @@ import * as utilities from "./utilities"; * Provides a resource to create a service group based on the input parameters. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const test = new nutanix.ServiceGroup("test", { + * description: "this is service group", + * serviceLists: [{ + * protocol: "TCP", + * tcpPortRangeLists: [ + * { + * endPort: 22, + * startPort: 22, + * }, + * { + * endPort: 2222, + * startPort: 2222, + * }, + * ], + * }], + * }); + * ``` */ export class ServiceGroup extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/subnet.ts b/sdk/nodejs/subnet.ts index a3b1d5b..bb1b626 100644 --- a/sdk/nodejs/subnet.ts +++ b/sdk/nodejs/subnet.ts @@ -8,8 +8,6 @@ import * as utilities from "./utilities"; /** * Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses. - * - * ## Example Usage */ export class Subnet extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/user.ts b/sdk/nodejs/user.ts index d831ccf..ed2cd90 100644 --- a/sdk/nodejs/user.ts +++ b/sdk/nodejs/user.ts @@ -10,6 +10,30 @@ import * as utilities from "./utilities"; * Provides a resource to create a user based on the input parameters. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const user = new nutanix.User("user", {directoryServiceUser: { + * directoryServiceReference: { + * uuid: "", + * }, + * userPrincipalName: "test-user@ntnxlab.local", + * }}); + * ``` + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const user = new nutanix.User("user", {identityProviderUser: { + * identityProviderReference: { + * uuid: "", + * }, + * username: "username", + * }}); + * ``` */ export class User extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/userGroups.ts b/sdk/nodejs/userGroups.ts index de89be0..163b0a4 100644 --- a/sdk/nodejs/userGroups.ts +++ b/sdk/nodejs/userGroups.ts @@ -10,6 +10,25 @@ import * as utilities from "./utilities"; * Provides a resource to add a User group to the system.. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const userGrp = new nutanix.UserGroups("userGrp", {directoryServiceUserGroups: [{ + * distinguishedName: "", + * }]}); + * ``` + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nutanix from "@pierskarsenbarg/nutanix"; + * + * const userGrp = new nutanix.UserGroups("userGrp", {samlUserGroups: [{ + * idpUuid: "", + * name: "", + * }]}); + * ``` */ export class UserGroups extends pulumi.CustomResource { /** diff --git a/sdk/python/pulumi_nutanix/access_control_policy.py b/sdk/python/pulumi_nutanix/access_control_policy.py index 0b0f4d9..692a0fa 100644 --- a/sdk/python/pulumi_nutanix/access_control_policy.py +++ b/sdk/python/pulumi_nutanix/access_control_policy.py @@ -341,8 +341,6 @@ def __init__(__self__, """ Provides a resource to create an access control policy based on the input parameters. - ## Example Usage - :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AccessControlPolicyCategoryArgs']]]] categories: - (Optional) Categories for the Access Control Policy. @@ -362,8 +360,6 @@ def __init__(__self__, """ Provides a resource to create an access control policy based on the input parameters. - ## Example Usage - :param str resource_name: The name of the resource. :param AccessControlPolicyArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nutanix/address_group.py b/sdk/python/pulumi_nutanix/address_group.py index 8875e46..5fb09fb 100644 --- a/sdk/python/pulumi_nutanix/address_group.py +++ b/sdk/python/pulumi_nutanix/address_group.py @@ -154,6 +154,18 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test_address = nutanix.AddressGroup("testAddress", + description="test address groups resource", + ip_address_block_lists=[nutanix.AddressGroupIpAddressBlockListArgs( + ip="10.0.0.0", + prefix_length=24, + )]) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: - (Optional) Description of the service group @@ -171,6 +183,18 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test_address = nutanix.AddressGroup("testAddress", + description="test address groups resource", + ip_address_block_lists=[nutanix.AddressGroupIpAddressBlockListArgs( + ip="10.0.0.0", + prefix_length=24, + )]) + ``` + :param str resource_name: The name of the resource. :param AddressGroupArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nutanix/foundation_central_api_keys.py b/sdk/python/pulumi_nutanix/foundation_central_api_keys.py index 88e445a..239008e 100644 --- a/sdk/python/pulumi_nutanix/foundation_central_api_keys.py +++ b/sdk/python/pulumi_nutanix/foundation_central_api_keys.py @@ -134,6 +134,13 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + new_api_key = nutanix.FoundationCentralApiKeys("newApiKey", alias="") + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] alias: - (Required) Alias for the api key to be created. @@ -149,6 +156,13 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + new_api_key = nutanix.FoundationCentralApiKeys("newApiKey", alias="") + ``` + :param str resource_name: The name of the resource. :param FoundationCentralApiKeysArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nutanix/get_access_control_policy.py b/sdk/python/pulumi_nutanix/get_access_control_policy.py index 2eadf55..749bd22 100644 --- a/sdk/python/pulumi_nutanix/get_access_control_policy.py +++ b/sdk/python/pulumi_nutanix/get_access_control_policy.py @@ -212,8 +212,6 @@ def get_access_control_policy(access_control_policy_id: Optional[str] = None, """ Describes an Access Control Policy. - ## Example Usage - :param str access_control_policy_id: - (Required) The UUID of an access control policy. :param Sequence[pulumi.InputType['GetAccessControlPolicyCategoryArgs']] categories: - The category values represented as a dictionary of key > list of values. @@ -251,8 +249,6 @@ def get_access_control_policy_output(access_control_policy_id: Optional[pulumi.I """ Describes an Access Control Policy. - ## Example Usage - :param str access_control_policy_id: - (Required) The UUID of an access control policy. :param Sequence[pulumi.InputType['GetAccessControlPolicyCategoryArgs']] categories: - The category values represented as a dictionary of key > list of values. diff --git a/sdk/python/pulumi_nutanix/get_address_group.py b/sdk/python/pulumi_nutanix/get_address_group.py index 30efade..25025a5 100644 --- a/sdk/python/pulumi_nutanix/get_address_group.py +++ b/sdk/python/pulumi_nutanix/get_address_group.py @@ -112,6 +112,19 @@ def get_address_group(uuid: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test_address = nutanix.AddressGroup("testAddress", + description="test address groups resource", + ip_address_block_lists=[nutanix.AddressGroupIpAddressBlockListArgs( + ip="10.0.0.0", + prefix_length=24, + )]) + addr_group = nutanix.get_address_group_output(uuid=test_address.id) + ``` + :param str uuid: - (Required) UUID of the address group """ @@ -137,6 +150,19 @@ def get_address_group_output(uuid: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test_address = nutanix.AddressGroup("testAddress", + description="test address groups resource", + ip_address_block_lists=[nutanix.AddressGroupIpAddressBlockListArgs( + ip="10.0.0.0", + prefix_length=24, + )]) + addr_group = nutanix.get_address_group_output(uuid=test_address.id) + ``` + :param str uuid: - (Required) UUID of the address group """ diff --git a/sdk/python/pulumi_nutanix/get_address_groups.py b/sdk/python/pulumi_nutanix/get_address_groups.py index 3a32d39..6452dda 100644 --- a/sdk/python/pulumi_nutanix/get_address_groups.py +++ b/sdk/python/pulumi_nutanix/get_address_groups.py @@ -77,6 +77,13 @@ def get_address_groups(metadatas: Optional[Sequence[pulumi.InputType['GetAddress ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + addr_groups = nutanix.get_address_groups() + ``` + :param Sequence[pulumi.InputType['GetAddressGroupsMetadataArgs']] metadatas: - (Optional) Use metadata to specify filters """ @@ -99,6 +106,13 @@ def get_address_groups_output(metadatas: Optional[pulumi.Input[Optional[Sequence ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + addr_groups = nutanix.get_address_groups() + ``` + :param Sequence[pulumi.InputType['GetAddressGroupsMetadataArgs']] metadatas: - (Optional) Use metadata to specify filters """ diff --git a/sdk/python/pulumi_nutanix/get_role.py b/sdk/python/pulumi_nutanix/get_role.py index 150800c..0254631 100644 --- a/sdk/python/pulumi_nutanix/get_role.py +++ b/sdk/python/pulumi_nutanix/get_role.py @@ -179,8 +179,6 @@ def get_role(categories: Optional[Sequence[pulumi.InputType['GetRoleCategoryArgs """ Describes a Role. - ## Example Usage - :param Sequence[pulumi.InputType['GetRoleCategoryArgs']] categories: - Categories for the Role. :param str role_id: - (Optional) The UUID of a Role. @@ -216,8 +214,6 @@ def get_role_output(categories: Optional[pulumi.Input[Optional[Sequence[pulumi.I """ Describes a Role. - ## Example Usage - :param Sequence[pulumi.InputType['GetRoleCategoryArgs']] categories: - Categories for the Role. :param str role_id: - (Optional) The UUID of a Role. diff --git a/sdk/python/pulumi_nutanix/get_roles.py b/sdk/python/pulumi_nutanix/get_roles.py index c26bacd..3e52703 100644 --- a/sdk/python/pulumi_nutanix/get_roles.py +++ b/sdk/python/pulumi_nutanix/get_roles.py @@ -89,6 +89,13 @@ def get_roles(metadatas: Optional[Sequence[pulumi.InputType['GetRolesMetadataArg ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test = nutanix.get_roles() + ``` + :param Sequence[pulumi.InputType['GetRolesMetadataArgs']] metadatas: - The role kind metadata. """ @@ -112,6 +119,13 @@ def get_roles_output(metadatas: Optional[pulumi.Input[Optional[Sequence[pulumi.I ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test = nutanix.get_roles() + ``` + :param Sequence[pulumi.InputType['GetRolesMetadataArgs']] metadatas: - The role kind metadata. """ diff --git a/sdk/python/pulumi_nutanix/get_user.py b/sdk/python/pulumi_nutanix/get_user.py index 8ff3dc9..3885d56 100644 --- a/sdk/python/pulumi_nutanix/get_user.py +++ b/sdk/python/pulumi_nutanix/get_user.py @@ -217,8 +217,6 @@ def get_user(categories: Optional[Sequence[pulumi.InputType['GetUserCategoryArgs """ Provides a datasource to retrieve a user based on the input parameters. - ## Example Usage - :param Sequence[pulumi.InputType['GetUserCategoryArgs']] categories: - (Optional) Categories for the Access Control Policy. :param Mapping[str, str] owner_reference: - (Optional) The reference to a user. @@ -261,8 +259,6 @@ def get_user_output(categories: Optional[pulumi.Input[Optional[Sequence[pulumi.I """ Provides a datasource to retrieve a user based on the input parameters. - ## Example Usage - :param Sequence[pulumi.InputType['GetUserCategoryArgs']] categories: - (Optional) Categories for the Access Control Policy. :param Mapping[str, str] owner_reference: - (Optional) The reference to a user. diff --git a/sdk/python/pulumi_nutanix/get_user_group.py b/sdk/python/pulumi_nutanix/get_user_group.py index 7fd4f12..607b372 100644 --- a/sdk/python/pulumi_nutanix/get_user_group.py +++ b/sdk/python/pulumi_nutanix/get_user_group.py @@ -217,6 +217,15 @@ def get_user_group(categories: Optional[Sequence[pulumi.InputType['GetUserGroupC ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + usergroup = nutanix.get_user_group(user_group_id="dd30a856-8e72-4158-b716-98455ceda220") + usergroupbyname = nutanix.get_user_group(user_group_name="example-group-1") + test = nutanix.get_user_group(user_group_distinguished_name="cn=example-group-1,cn=users,dc=ntnxlab,dc=local") + ``` + :param Sequence[pulumi.InputType['GetUserGroupCategoryArgs']] categories: - The Distinguished Categories for the user group. :param Mapping[str, str] owner_reference: - The reference to a user. @@ -266,6 +275,15 @@ def get_user_group_output(categories: Optional[pulumi.Input[Optional[Sequence[pu ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + usergroup = nutanix.get_user_group(user_group_id="dd30a856-8e72-4158-b716-98455ceda220") + usergroupbyname = nutanix.get_user_group(user_group_name="example-group-1") + test = nutanix.get_user_group(user_group_distinguished_name="cn=example-group-1,cn=users,dc=ntnxlab,dc=local") + ``` + :param Sequence[pulumi.InputType['GetUserGroupCategoryArgs']] categories: - The Distinguished Categories for the user group. :param Mapping[str, str] owner_reference: - The reference to a user. diff --git a/sdk/python/pulumi_nutanix/get_user_groups.py b/sdk/python/pulumi_nutanix/get_user_groups.py index 9a6420a..ce52010 100644 --- a/sdk/python/pulumi_nutanix/get_user_groups.py +++ b/sdk/python/pulumi_nutanix/get_user_groups.py @@ -80,6 +80,13 @@ def get_user_groups(metadatas: Optional[Sequence[pulumi.InputType['GetUserGroups ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + usergroups = nutanix.get_user_groups() + ``` + :param Sequence[pulumi.InputType['GetUserGroupsMetadataArgs']] metadatas: - The user group kind metadata. """ @@ -103,6 +110,13 @@ def get_user_groups_output(metadatas: Optional[pulumi.Input[Optional[Sequence[pu ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + usergroups = nutanix.get_user_groups() + ``` + :param Sequence[pulumi.InputType['GetUserGroupsMetadataArgs']] metadatas: - The user group kind metadata. """ diff --git a/sdk/python/pulumi_nutanix/get_users.py b/sdk/python/pulumi_nutanix/get_users.py index 972c59a..19a035b 100644 --- a/sdk/python/pulumi_nutanix/get_users.py +++ b/sdk/python/pulumi_nutanix/get_users.py @@ -89,6 +89,19 @@ def get_users(metadatas: Optional[Sequence[pulumi.InputType['GetUsersMetadataArg ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + user = nutanix.User("user", directory_service_user=nutanix.UserDirectoryServiceUserArgs( + directory_service_reference=nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs( + uuid="", + ), + user_principal_name="test-user@ntnxlab.local", + )) + users = nutanix.get_user() + ``` + :param Sequence[pulumi.InputType['GetUsersMetadataArgs']] metadatas: - The user kind metadata. """ @@ -112,6 +125,19 @@ def get_users_output(metadatas: Optional[pulumi.Input[Optional[Sequence[pulumi.I ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + user = nutanix.User("user", directory_service_user=nutanix.UserDirectoryServiceUserArgs( + directory_service_reference=nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs( + uuid="", + ), + user_principal_name="test-user@ntnxlab.local", + )) + users = nutanix.get_user() + ``` + :param Sequence[pulumi.InputType['GetUsersMetadataArgs']] metadatas: - The user kind metadata. """ diff --git a/sdk/python/pulumi_nutanix/ndb_database.py b/sdk/python/pulumi_nutanix/ndb_database.py index 7645e8f..289b5ce 100644 --- a/sdk/python/pulumi_nutanix/ndb_database.py +++ b/sdk/python/pulumi_nutanix/ndb_database.py @@ -1265,7 +1265,66 @@ def __init__(__self__, ### NDB database resource with new database server VM - ### NDB database resource to provision HA instance with new database server VM + ```python + import pulumi + import pulumi_nutanix as nutanix + + dbp = nutanix.NdbDatabase("dbp", + databasetype="postgres_database", + description="add description", + softwareprofileid="{{ software_profile_id }}", + softwareprofileversionid="{{ software_profile_version_id }}", + computeprofileid="{{ compute_profile_id }}", + networkprofileid="{{ network_profile_id }}", + dbparameterprofileid="{{ db_parameter_profile_id }}", + postgresql_info=nutanix.NdbDatabasePostgresqlInfoArgs( + listener_port="{{ listner_port }}", + database_size="{{ 200 }}", + db_password="password", + database_names="testdb1", + ), + nxclusterid=local["clusters"]["EraCluster"]["id"], + sshpublickey="{{ ssh-public-key }}", + nodes=[nutanix.NdbDatabaseNodeArgs( + vmname="test-era-vm1", + networkprofileid="", + )], + timemachineinfo=nutanix.NdbDatabaseTimemachineinfoArgs( + name="test-pg-inst", + description="description of time machine", + slaid="{{ sla_id }}", + schedule=nutanix.NdbDatabaseTimemachineinfoScheduleArgs( + snapshottimeofday=nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs( + hours=16, + minutes=0, + seconds=0, + ), + continuousschedule=nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs( + enabled=True, + logbackupinterval=30, + snapshotsperday=1, + ), + weeklyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs( + enabled=True, + dayofweek="WEDNESDAY", + ), + monthlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs( + enabled=True, + dayofmonth=27, + ), + quartelyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs( + enabled=True, + startmonth="JANUARY", + dayofmonth=27, + ), + yearlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs( + enabled=False, + dayofmonth=31, + month="DECEMBER", + ), + ), + )) + ``` ### NDB database resource with registered database server VM @@ -1378,7 +1437,66 @@ def __init__(__self__, ### NDB database resource with new database server VM - ### NDB database resource to provision HA instance with new database server VM + ```python + import pulumi + import pulumi_nutanix as nutanix + + dbp = nutanix.NdbDatabase("dbp", + databasetype="postgres_database", + description="add description", + softwareprofileid="{{ software_profile_id }}", + softwareprofileversionid="{{ software_profile_version_id }}", + computeprofileid="{{ compute_profile_id }}", + networkprofileid="{{ network_profile_id }}", + dbparameterprofileid="{{ db_parameter_profile_id }}", + postgresql_info=nutanix.NdbDatabasePostgresqlInfoArgs( + listener_port="{{ listner_port }}", + database_size="{{ 200 }}", + db_password="password", + database_names="testdb1", + ), + nxclusterid=local["clusters"]["EraCluster"]["id"], + sshpublickey="{{ ssh-public-key }}", + nodes=[nutanix.NdbDatabaseNodeArgs( + vmname="test-era-vm1", + networkprofileid="", + )], + timemachineinfo=nutanix.NdbDatabaseTimemachineinfoArgs( + name="test-pg-inst", + description="description of time machine", + slaid="{{ sla_id }}", + schedule=nutanix.NdbDatabaseTimemachineinfoScheduleArgs( + snapshottimeofday=nutanix.NdbDatabaseTimemachineinfoScheduleSnapshottimeofdayArgs( + hours=16, + minutes=0, + seconds=0, + ), + continuousschedule=nutanix.NdbDatabaseTimemachineinfoScheduleContinuousscheduleArgs( + enabled=True, + logbackupinterval=30, + snapshotsperday=1, + ), + weeklyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleWeeklyscheduleArgs( + enabled=True, + dayofweek="WEDNESDAY", + ), + monthlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleMonthlyscheduleArgs( + enabled=True, + dayofmonth=27, + ), + quartelyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleQuartelyscheduleArgs( + enabled=True, + startmonth="JANUARY", + dayofmonth=27, + ), + yearlyschedule=nutanix.NdbDatabaseTimemachineinfoScheduleYearlyscheduleArgs( + enabled=False, + dayofmonth=31, + month="DECEMBER", + ), + ), + )) + ``` ### NDB database resource with registered database server VM diff --git a/sdk/python/pulumi_nutanix/role.py b/sdk/python/pulumi_nutanix/role.py index 645c86c..348d563 100644 --- a/sdk/python/pulumi_nutanix/role.py +++ b/sdk/python/pulumi_nutanix/role.py @@ -285,6 +285,28 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test = nutanix.Role("test", + description="DESCRIPTION", + permission_reference_lists=[ + nutanix.RolePermissionReferenceListArgs( + kind="permission", + uuid="ID OF PERMISSION", + ), + nutanix.RolePermissionReferenceListArgs( + kind="permission", + uuid="ID OF PERMISSION", + ), + nutanix.RolePermissionReferenceListArgs( + kind="permission", + uuid="ID OF PERMISSION", + ), + ]) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleCategoryArgs']]]] categories: - (Optional) Categories for the role. @@ -305,6 +327,28 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test = nutanix.Role("test", + description="DESCRIPTION", + permission_reference_lists=[ + nutanix.RolePermissionReferenceListArgs( + kind="permission", + uuid="ID OF PERMISSION", + ), + nutanix.RolePermissionReferenceListArgs( + kind="permission", + uuid="ID OF PERMISSION", + ), + nutanix.RolePermissionReferenceListArgs( + kind="permission", + uuid="ID OF PERMISSION", + ), + ]) + ``` + :param str resource_name: The name of the resource. :param RoleArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nutanix/service_group.py b/sdk/python/pulumi_nutanix/service_group.py index 0e9021b..fe7c6af 100644 --- a/sdk/python/pulumi_nutanix/service_group.py +++ b/sdk/python/pulumi_nutanix/service_group.py @@ -154,6 +154,27 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test = nutanix.ServiceGroup("test", + description="this is service group", + service_lists=[nutanix.ServiceGroupServiceListArgs( + protocol="TCP", + tcp_port_range_lists=[ + nutanix.ServiceGroupServiceListTcpPortRangeListArgs( + end_port=22, + start_port=22, + ), + nutanix.ServiceGroupServiceListTcpPortRangeListArgs( + end_port=2222, + start_port=2222, + ), + ], + )]) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: - (Optional) Description of the service group @@ -171,6 +192,27 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + test = nutanix.ServiceGroup("test", + description="this is service group", + service_lists=[nutanix.ServiceGroupServiceListArgs( + protocol="TCP", + tcp_port_range_lists=[ + nutanix.ServiceGroupServiceListTcpPortRangeListArgs( + end_port=22, + start_port=22, + ), + nutanix.ServiceGroupServiceListTcpPortRangeListArgs( + end_port=2222, + start_port=2222, + ), + ], + )]) + ``` + :param str resource_name: The name of the resource. :param ServiceGroupArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nutanix/subnet.py b/sdk/python/pulumi_nutanix/subnet.py index bc08747..5b9d4a1 100644 --- a/sdk/python/pulumi_nutanix/subnet.py +++ b/sdk/python/pulumi_nutanix/subnet.py @@ -856,8 +856,6 @@ def __init__(__self__, """ Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses. - ## Example Usage - :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] availability_zone_reference: - (Optional) The reference to a availability_zone. @@ -893,8 +891,6 @@ def __init__(__self__, """ Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses. - ## Example Usage - :param str resource_name: The name of the resource. :param SubnetArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nutanix/user.py b/sdk/python/pulumi_nutanix/user.py index 79d4a02..bef880f 100644 --- a/sdk/python/pulumi_nutanix/user.py +++ b/sdk/python/pulumi_nutanix/user.py @@ -333,6 +333,30 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + user = nutanix.User("user", directory_service_user=nutanix.UserDirectoryServiceUserArgs( + directory_service_reference=nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs( + uuid="", + ), + user_principal_name="test-user@ntnxlab.local", + )) + ``` + + ```python + import pulumi + import pulumi_nutanix as nutanix + + user = nutanix.User("user", identity_provider_user=nutanix.UserIdentityProviderUserArgs( + identity_provider_reference=nutanix.UserIdentityProviderUserIdentityProviderReferenceArgs( + uuid="", + ), + username="username", + )) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['UserCategoryArgs']]]] categories: - (Optional) Categories for the Access Control Policy. @@ -352,6 +376,30 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + user = nutanix.User("user", directory_service_user=nutanix.UserDirectoryServiceUserArgs( + directory_service_reference=nutanix.UserDirectoryServiceUserDirectoryServiceReferenceArgs( + uuid="", + ), + user_principal_name="test-user@ntnxlab.local", + )) + ``` + + ```python + import pulumi + import pulumi_nutanix as nutanix + + user = nutanix.User("user", identity_provider_user=nutanix.UserIdentityProviderUserArgs( + identity_provider_reference=nutanix.UserIdentityProviderUserIdentityProviderReferenceArgs( + uuid="", + ), + username="username", + )) + ``` + :param str resource_name: The name of the resource. :param UserArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nutanix/user_groups.py b/sdk/python/pulumi_nutanix/user_groups.py index 8c845e3..2c9e5aa 100644 --- a/sdk/python/pulumi_nutanix/user_groups.py +++ b/sdk/python/pulumi_nutanix/user_groups.py @@ -230,6 +230,25 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + user_grp = nutanix.UserGroups("userGrp", directory_service_user_groups=[nutanix.UserGroupsDirectoryServiceUserGroupArgs( + distinguished_name="", + )]) + ``` + + ```python + import pulumi + import pulumi_nutanix as nutanix + + user_grp = nutanix.UserGroups("userGrp", saml_user_groups=[nutanix.UserGroupsSamlUserGroupArgs( + idp_uuid="", + name="", + )]) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['UserGroupsDirectoryServiceOusArgs']]]] directory_service_ous: - (Optional) A Directory Service organizational unit. @@ -247,6 +266,25 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_nutanix as nutanix + + user_grp = nutanix.UserGroups("userGrp", directory_service_user_groups=[nutanix.UserGroupsDirectoryServiceUserGroupArgs( + distinguished_name="", + )]) + ``` + + ```python + import pulumi + import pulumi_nutanix as nutanix + + user_grp = nutanix.UserGroups("userGrp", saml_user_groups=[nutanix.UserGroupsSamlUserGroupArgs( + idp_uuid="", + name="", + )]) + ``` + :param str resource_name: The name of the resource. :param UserGroupsArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource.