nutanix.ServiceGroupsV2
Explore with Pulumi AI
Create an service Group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const service_group = new nutanix.ServiceGroupsV2("service-group", {
    description: "{{ desc }}",
    tcpServices: [{
        endPort: 232,
        startPort: 232,
    }],
    udpServices: [{
        endPort: 232,
        startPort: 232,
    }],
});
import pulumi
import pulumi_nutanix as nutanix
service_group = nutanix.ServiceGroupsV2("service-group",
    description="{{ desc }}",
    tcp_services=[{
        "end_port": 232,
        "start_port": 232,
    }],
    udp_services=[{
        "end_port": 232,
        "start_port": 232,
    }])
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.NewServiceGroupsV2(ctx, "service-group", &nutanix.ServiceGroupsV2Args{
			Description: pulumi.String("{{ desc }}"),
			TcpServices: nutanix.ServiceGroupsV2TcpServiceArray{
				&nutanix.ServiceGroupsV2TcpServiceArgs{
					EndPort:   pulumi.Int(232),
					StartPort: pulumi.Int(232),
				},
			},
			UdpServices: nutanix.ServiceGroupsV2UdpServiceArray{
				&nutanix.ServiceGroupsV2UdpServiceArgs{
					EndPort:   pulumi.Int(232),
					StartPort: pulumi.Int(232),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() => 
{
    var service_group = new Nutanix.ServiceGroupsV2("service-group", new()
    {
        Description = "{{ desc }}",
        TcpServices = new[]
        {
            new Nutanix.Inputs.ServiceGroupsV2TcpServiceArgs
            {
                EndPort = 232,
                StartPort = 232,
            },
        },
        UdpServices = new[]
        {
            new Nutanix.Inputs.ServiceGroupsV2UdpServiceArgs
            {
                EndPort = 232,
                StartPort = 232,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.ServiceGroupsV2;
import com.pulumi.nutanix.ServiceGroupsV2Args;
import com.pulumi.nutanix.inputs.ServiceGroupsV2TcpServiceArgs;
import com.pulumi.nutanix.inputs.ServiceGroupsV2UdpServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var service_group = new ServiceGroupsV2("service-group", ServiceGroupsV2Args.builder()
            .description("{{ desc }}")
            .tcpServices(ServiceGroupsV2TcpServiceArgs.builder()
                .endPort("232")
                .startPort("232")
                .build())
            .udpServices(ServiceGroupsV2UdpServiceArgs.builder()
                .endPort("232")
                .startPort("232")
                .build())
            .build());
    }
}
resources:
  service-group:
    type: nutanix:ServiceGroupsV2
    properties:
      description: '{{ desc }}'
      tcpServices:
        - endPort: '232'
          startPort: '232'
      udpServices:
        - endPort: '232'
          startPort: '232'
Create ServiceGroupsV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceGroupsV2(name: string, args?: ServiceGroupsV2Args, opts?: CustomResourceOptions);@overload
def ServiceGroupsV2(resource_name: str,
                    args: Optional[ServiceGroupsV2Args] = None,
                    opts: Optional[ResourceOptions] = None)
@overload
def ServiceGroupsV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    icmp_services: Optional[Sequence[ServiceGroupsV2IcmpServiceArgs]] = None,
                    name: Optional[str] = None,
                    tcp_services: Optional[Sequence[ServiceGroupsV2TcpServiceArgs]] = None,
                    udp_services: Optional[Sequence[ServiceGroupsV2UdpServiceArgs]] = None)func NewServiceGroupsV2(ctx *Context, name string, args *ServiceGroupsV2Args, opts ...ResourceOption) (*ServiceGroupsV2, error)public ServiceGroupsV2(string name, ServiceGroupsV2Args? args = null, CustomResourceOptions? opts = null)
public ServiceGroupsV2(String name, ServiceGroupsV2Args args)
public ServiceGroupsV2(String name, ServiceGroupsV2Args args, CustomResourceOptions options)
type: nutanix:ServiceGroupsV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceGroupsV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceGroupsV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceGroupsV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceGroupsV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceGroupsV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serviceGroupsV2Resource = new Nutanix.ServiceGroupsV2("serviceGroupsV2Resource", new()
{
    Description = "string",
    IcmpServices = new[]
    {
        new Nutanix.Inputs.ServiceGroupsV2IcmpServiceArgs
        {
            Code = 0,
            IsAllAllowed = false,
            Type = 0,
        },
    },
    Name = "string",
    TcpServices = new[]
    {
        new Nutanix.Inputs.ServiceGroupsV2TcpServiceArgs
        {
            EndPort = 0,
            StartPort = 0,
        },
    },
    UdpServices = new[]
    {
        new Nutanix.Inputs.ServiceGroupsV2UdpServiceArgs
        {
            EndPort = 0,
            StartPort = 0,
        },
    },
});
example, err := nutanix.NewServiceGroupsV2(ctx, "serviceGroupsV2Resource", &nutanix.ServiceGroupsV2Args{
	Description: pulumi.String("string"),
	IcmpServices: nutanix.ServiceGroupsV2IcmpServiceArray{
		&nutanix.ServiceGroupsV2IcmpServiceArgs{
			Code:         pulumi.Int(0),
			IsAllAllowed: pulumi.Bool(false),
			Type:         pulumi.Int(0),
		},
	},
	Name: pulumi.String("string"),
	TcpServices: nutanix.ServiceGroupsV2TcpServiceArray{
		&nutanix.ServiceGroupsV2TcpServiceArgs{
			EndPort:   pulumi.Int(0),
			StartPort: pulumi.Int(0),
		},
	},
	UdpServices: nutanix.ServiceGroupsV2UdpServiceArray{
		&nutanix.ServiceGroupsV2UdpServiceArgs{
			EndPort:   pulumi.Int(0),
			StartPort: pulumi.Int(0),
		},
	},
})
var serviceGroupsV2Resource = new ServiceGroupsV2("serviceGroupsV2Resource", ServiceGroupsV2Args.builder()
    .description("string")
    .icmpServices(ServiceGroupsV2IcmpServiceArgs.builder()
        .code(0)
        .isAllAllowed(false)
        .type(0)
        .build())
    .name("string")
    .tcpServices(ServiceGroupsV2TcpServiceArgs.builder()
        .endPort(0)
        .startPort(0)
        .build())
    .udpServices(ServiceGroupsV2UdpServiceArgs.builder()
        .endPort(0)
        .startPort(0)
        .build())
    .build());
service_groups_v2_resource = nutanix.ServiceGroupsV2("serviceGroupsV2Resource",
    description="string",
    icmp_services=[{
        "code": 0,
        "is_all_allowed": False,
        "type": 0,
    }],
    name="string",
    tcp_services=[{
        "end_port": 0,
        "start_port": 0,
    }],
    udp_services=[{
        "end_port": 0,
        "start_port": 0,
    }])
const serviceGroupsV2Resource = new nutanix.ServiceGroupsV2("serviceGroupsV2Resource", {
    description: "string",
    icmpServices: [{
        code: 0,
        isAllAllowed: false,
        type: 0,
    }],
    name: "string",
    tcpServices: [{
        endPort: 0,
        startPort: 0,
    }],
    udpServices: [{
        endPort: 0,
        startPort: 0,
    }],
});
type: nutanix:ServiceGroupsV2
properties:
    description: string
    icmpServices:
        - code: 0
          isAllAllowed: false
          type: 0
    name: string
    tcpServices:
        - endPort: 0
          startPort: 0
    udpServices:
        - endPort: 0
          startPort: 0
ServiceGroupsV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServiceGroupsV2 resource accepts the following input properties:
- Description string
- Description of the service group
- IcmpServices List<PiersKarsenbarg. Nutanix. Inputs. Service Groups V2Icmp Service> 
- Icmp Type Code List.
- Name string
- Name of the service group
- TcpServices List<PiersKarsenbarg. Nutanix. Inputs. Service Groups V2Tcp Service> 
- List of TCP ports in the service.
- UdpServices List<PiersKarsenbarg. Nutanix. Inputs. Service Groups V2Udp Service> 
- List of UDP ports in the service.
- Description string
- Description of the service group
- IcmpServices []ServiceGroups V2Icmp Service Args 
- Icmp Type Code List.
- Name string
- Name of the service group
- TcpServices []ServiceGroups V2Tcp Service Args 
- List of TCP ports in the service.
- UdpServices []ServiceGroups V2Udp Service Args 
- List of UDP ports in the service.
- description String
- Description of the service group
- icmpServices List<ServiceGroups V2Icmp Service> 
- Icmp Type Code List.
- name String
- Name of the service group
- tcpServices List<ServiceGroups V2Tcp Service> 
- List of TCP ports in the service.
- udpServices List<ServiceGroups V2Udp Service> 
- List of UDP ports in the service.
- description string
- Description of the service group
- icmpServices ServiceGroups V2Icmp Service[] 
- Icmp Type Code List.
- name string
- Name of the service group
- tcpServices ServiceGroups V2Tcp Service[] 
- List of TCP ports in the service.
- udpServices ServiceGroups V2Udp Service[] 
- List of UDP ports in the service.
- description str
- Description of the service group
- icmp_services Sequence[ServiceGroups V2Icmp Service Args] 
- Icmp Type Code List.
- name str
- Name of the service group
- tcp_services Sequence[ServiceGroups V2Tcp Service Args] 
- List of TCP ports in the service.
- udp_services Sequence[ServiceGroups V2Udp Service Args] 
- List of UDP ports in the service.
- description String
- Description of the service group
- icmpServices List<Property Map>
- Icmp Type Code List.
- name String
- Name of the service group
- tcpServices List<Property Map>
- List of TCP ports in the service.
- udpServices List<Property Map>
- List of UDP ports in the service.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceGroupsV2 resource produces the following output properties:
- CreatedBy string
- created by.
- ExtId string
- address group uuid.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsSystem boolDefined 
- Service Group is system defined or not.
- Links
List<PiersKarsenbarg. Nutanix. Outputs. Service Groups V2Link> 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- PolicyReferences List<string>
- Reference to policy associated with Address Group.
- TenantId string
- A globally unique identifier that represents the tenant that owns this entity.
- CreatedBy string
- created by.
- ExtId string
- address group uuid.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsSystem boolDefined 
- Service Group is system defined or not.
- Links
[]ServiceGroups V2Link 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- PolicyReferences []string
- Reference to policy associated with Address Group.
- TenantId string
- A globally unique identifier that represents the tenant that owns this entity.
- createdBy String
- created by.
- extId String
- address group uuid.
- id String
- The provider-assigned unique ID for this managed resource.
- isSystem BooleanDefined 
- Service Group is system defined or not.
- links
List<ServiceGroups V2Link> 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- policyReferences List<String>
- Reference to policy associated with Address Group.
- tenantId String
- A globally unique identifier that represents the tenant that owns this entity.
- createdBy string
- created by.
- extId string
- address group uuid.
- id string
- The provider-assigned unique ID for this managed resource.
- isSystem booleanDefined 
- Service Group is system defined or not.
- links
ServiceGroups V2Link[] 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- policyReferences string[]
- Reference to policy associated with Address Group.
- tenantId string
- A globally unique identifier that represents the tenant that owns this entity.
- created_by str
- created by.
- ext_id str
- address group uuid.
- id str
- The provider-assigned unique ID for this managed resource.
- is_system_ booldefined 
- Service Group is system defined or not.
- links
Sequence[ServiceGroups V2Link] 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- policy_references Sequence[str]
- Reference to policy associated with Address Group.
- tenant_id str
- A globally unique identifier that represents the tenant that owns this entity.
- createdBy String
- created by.
- extId String
- address group uuid.
- id String
- The provider-assigned unique ID for this managed resource.
- isSystem BooleanDefined 
- Service Group is system defined or not.
- links List<Property Map>
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- policyReferences List<String>
- Reference to policy associated with Address Group.
- tenantId String
- A globally unique identifier that represents the tenant that owns this entity.
Look up Existing ServiceGroupsV2 Resource
Get an existing ServiceGroupsV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceGroupsV2State, opts?: CustomResourceOptions): ServiceGroupsV2@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_by: Optional[str] = None,
        description: Optional[str] = None,
        ext_id: Optional[str] = None,
        icmp_services: Optional[Sequence[ServiceGroupsV2IcmpServiceArgs]] = None,
        is_system_defined: Optional[bool] = None,
        links: Optional[Sequence[ServiceGroupsV2LinkArgs]] = None,
        name: Optional[str] = None,
        policy_references: Optional[Sequence[str]] = None,
        tcp_services: Optional[Sequence[ServiceGroupsV2TcpServiceArgs]] = None,
        tenant_id: Optional[str] = None,
        udp_services: Optional[Sequence[ServiceGroupsV2UdpServiceArgs]] = None) -> ServiceGroupsV2func GetServiceGroupsV2(ctx *Context, name string, id IDInput, state *ServiceGroupsV2State, opts ...ResourceOption) (*ServiceGroupsV2, error)public static ServiceGroupsV2 Get(string name, Input<string> id, ServiceGroupsV2State? state, CustomResourceOptions? opts = null)public static ServiceGroupsV2 get(String name, Output<String> id, ServiceGroupsV2State state, CustomResourceOptions options)resources:  _:    type: nutanix:ServiceGroupsV2    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CreatedBy string
- created by.
- Description string
- Description of the service group
- ExtId string
- address group uuid.
- IcmpServices List<PiersKarsenbarg. Nutanix. Inputs. Service Groups V2Icmp Service> 
- Icmp Type Code List.
- IsSystem boolDefined 
- Service Group is system defined or not.
- Links
List<PiersKarsenbarg. Nutanix. Inputs. Service Groups V2Link> 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- Name string
- Name of the service group
- PolicyReferences List<string>
- Reference to policy associated with Address Group.
- TcpServices List<PiersKarsenbarg. Nutanix. Inputs. Service Groups V2Tcp Service> 
- List of TCP ports in the service.
- TenantId string
- A globally unique identifier that represents the tenant that owns this entity.
- UdpServices List<PiersKarsenbarg. Nutanix. Inputs. Service Groups V2Udp Service> 
- List of UDP ports in the service.
- CreatedBy string
- created by.
- Description string
- Description of the service group
- ExtId string
- address group uuid.
- IcmpServices []ServiceGroups V2Icmp Service Args 
- Icmp Type Code List.
- IsSystem boolDefined 
- Service Group is system defined or not.
- Links
[]ServiceGroups V2Link Args 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- Name string
- Name of the service group
- PolicyReferences []string
- Reference to policy associated with Address Group.
- TcpServices []ServiceGroups V2Tcp Service Args 
- List of TCP ports in the service.
- TenantId string
- A globally unique identifier that represents the tenant that owns this entity.
- UdpServices []ServiceGroups V2Udp Service Args 
- List of UDP ports in the service.
- createdBy String
- created by.
- description String
- Description of the service group
- extId String
- address group uuid.
- icmpServices List<ServiceGroups V2Icmp Service> 
- Icmp Type Code List.
- isSystem BooleanDefined 
- Service Group is system defined or not.
- links
List<ServiceGroups V2Link> 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- name String
- Name of the service group
- policyReferences List<String>
- Reference to policy associated with Address Group.
- tcpServices List<ServiceGroups V2Tcp Service> 
- List of TCP ports in the service.
- tenantId String
- A globally unique identifier that represents the tenant that owns this entity.
- udpServices List<ServiceGroups V2Udp Service> 
- List of UDP ports in the service.
- createdBy string
- created by.
- description string
- Description of the service group
- extId string
- address group uuid.
- icmpServices ServiceGroups V2Icmp Service[] 
- Icmp Type Code List.
- isSystem booleanDefined 
- Service Group is system defined or not.
- links
ServiceGroups V2Link[] 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- name string
- Name of the service group
- policyReferences string[]
- Reference to policy associated with Address Group.
- tcpServices ServiceGroups V2Tcp Service[] 
- List of TCP ports in the service.
- tenantId string
- A globally unique identifier that represents the tenant that owns this entity.
- udpServices ServiceGroups V2Udp Service[] 
- List of UDP ports in the service.
- created_by str
- created by.
- description str
- Description of the service group
- ext_id str
- address group uuid.
- icmp_services Sequence[ServiceGroups V2Icmp Service Args] 
- Icmp Type Code List.
- is_system_ booldefined 
- Service Group is system defined or not.
- links
Sequence[ServiceGroups V2Link Args] 
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- name str
- Name of the service group
- policy_references Sequence[str]
- Reference to policy associated with Address Group.
- tcp_services Sequence[ServiceGroups V2Tcp Service Args] 
- List of TCP ports in the service.
- tenant_id str
- A globally unique identifier that represents the tenant that owns this entity.
- udp_services Sequence[ServiceGroups V2Udp Service Args] 
- List of UDP ports in the service.
- createdBy String
- created by.
- description String
- Description of the service group
- extId String
- address group uuid.
- icmpServices List<Property Map>
- Icmp Type Code List.
- isSystem BooleanDefined 
- Service Group is system defined or not.
- links List<Property Map>
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- name String
- Name of the service group
- policyReferences List<String>
- Reference to policy associated with Address Group.
- tcpServices List<Property Map>
- List of TCP ports in the service.
- tenantId String
- A globally unique identifier that represents the tenant that owns this entity.
- udpServices List<Property Map>
- List of UDP ports in the service.
Supporting Types
ServiceGroupsV2IcmpService, ServiceGroupsV2IcmpServiceArgs        
- Code int
- Icmp service Code. Ignore this field if Code has to be ANY
- IsAll boolAllowed 
- Set this field to true if both Type and Code is ANY. Default is False.
- Type int
- Icmp service Type. Ignore this field if Type has to be ANY.
- Code int
- Icmp service Code. Ignore this field if Code has to be ANY
- IsAll boolAllowed 
- Set this field to true if both Type and Code is ANY. Default is False.
- Type int
- Icmp service Type. Ignore this field if Type has to be ANY.
- code Integer
- Icmp service Code. Ignore this field if Code has to be ANY
- isAll BooleanAllowed 
- Set this field to true if both Type and Code is ANY. Default is False.
- type Integer
- Icmp service Type. Ignore this field if Type has to be ANY.
- code number
- Icmp service Code. Ignore this field if Code has to be ANY
- isAll booleanAllowed 
- Set this field to true if both Type and Code is ANY. Default is False.
- type number
- Icmp service Type. Ignore this field if Type has to be ANY.
- code int
- Icmp service Code. Ignore this field if Code has to be ANY
- is_all_ boolallowed 
- Set this field to true if both Type and Code is ANY. Default is False.
- type int
- Icmp service Type. Ignore this field if Type has to be ANY.
- code Number
- Icmp service Code. Ignore this field if Code has to be ANY
- isAll BooleanAllowed 
- Set this field to true if both Type and Code is ANY. Default is False.
- type Number
- Icmp service Type. Ignore this field if Type has to be ANY.
ServiceGroupsV2Link, ServiceGroupsV2LinkArgs      
ServiceGroupsV2TcpService, ServiceGroupsV2TcpServiceArgs        
- end_port int
- end port
- start_port int
- start port
ServiceGroupsV2UdpService, ServiceGroupsV2UdpServiceArgs        
- end_port int
- end port
- start_port int
- start port
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nutanixTerraform Provider.
