Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg
nutanix.getServiceGroupV2
Explore with Pulumi AI
Get an service Group by ExtID
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const serviceGroup = nutanix.getServiceGroupV2({
extId: "07167778-266d-4052-9992-f30cbfd52e83",
});
import pulumi
import pulumi_nutanix as nutanix
service_group = nutanix.get_service_group_v2(ext_id="07167778-266d-4052-9992-f30cbfd52e83")
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.GetServiceGroupV2(ctx, &nutanix.GetServiceGroupV2Args{
ExtId: "07167778-266d-4052-9992-f30cbfd52e83",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var serviceGroup = Nutanix.GetServiceGroupV2.Invoke(new()
{
ExtId = "07167778-266d-4052-9992-f30cbfd52e83",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetServiceGroupV2Args;
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) {
final var serviceGroup = NutanixFunctions.getServiceGroupV2(GetServiceGroupV2Args.builder()
.extId("07167778-266d-4052-9992-f30cbfd52e83")
.build());
}
}
variables:
serviceGroup:
fn::invoke:
function: nutanix:getServiceGroupV2
arguments:
extId: 07167778-266d-4052-9992-f30cbfd52e83
Using getServiceGroupV2
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServiceGroupV2(args: GetServiceGroupV2Args, opts?: InvokeOptions): Promise<GetServiceGroupV2Result>
function getServiceGroupV2Output(args: GetServiceGroupV2OutputArgs, opts?: InvokeOptions): Output<GetServiceGroupV2Result>
def get_service_group_v2(ext_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceGroupV2Result
def get_service_group_v2_output(ext_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceGroupV2Result]
func GetServiceGroupV2(ctx *Context, args *GetServiceGroupV2Args, opts ...InvokeOption) (*GetServiceGroupV2Result, error)
func GetServiceGroupV2Output(ctx *Context, args *GetServiceGroupV2OutputArgs, opts ...InvokeOption) GetServiceGroupV2ResultOutput
> Note: This function is named GetServiceGroupV2
in the Go SDK.
public static class GetServiceGroupV2
{
public static Task<GetServiceGroupV2Result> InvokeAsync(GetServiceGroupV2Args args, InvokeOptions? opts = null)
public static Output<GetServiceGroupV2Result> Invoke(GetServiceGroupV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceGroupV2Result> getServiceGroupV2(GetServiceGroupV2Args args, InvokeOptions options)
public static Output<GetServiceGroupV2Result> getServiceGroupV2(GetServiceGroupV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getServiceGroupV2:getServiceGroupV2
arguments:
# arguments dictionary
The following arguments are supported:
- Ext
Id string - service group UUID.
- Ext
Id string - service group UUID.
- ext
Id String - service group UUID.
- ext
Id string - service group UUID.
- ext_
id str - service group UUID.
- ext
Id String - service group UUID.
getServiceGroupV2 Result
The following output properties are available:
- Created
By string - created by.
- Description string
- A user defined annotation for a Service Group.
- Ext
Id string - Icmp
Services List<PiersKarsenbarg. Nutanix. Outputs. Get Service Group V2Icmp Service> - Icmp Type Code List.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
System boolDefined - Service Group is system defined or not.
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Get Service Group 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
- A short identifier for a Service Group.
- Policy
References List<string> - Reference to policy associated with Service Group.
- Tcp
Services List<PiersKarsenbarg. Nutanix. Outputs. Get Service Group V2Tcp Service> - List of TCP ports in the service.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- Udp
Services List<PiersKarsenbarg. Nutanix. Outputs. Get Service Group V2Udp Service> - List of UDP ports in the service.
- Created
By string - created by.
- Description string
- A user defined annotation for a Service Group.
- Ext
Id string - Icmp
Services []GetService Group V2Icmp Service - Icmp Type Code List.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
System boolDefined - Service Group is system defined or not.
- Links
[]Get
Service Group 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
- A short identifier for a Service Group.
- Policy
References []string - Reference to policy associated with Service Group.
- Tcp
Services []GetService Group V2Tcp Service - List of TCP ports in the service.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- Udp
Services []GetService Group V2Udp Service - List of UDP ports in the service.
- created
By String - created by.
- description String
- A user defined annotation for a Service Group.
- ext
Id String - icmp
Services List<GetService Group V2Icmp Service> - Icmp Type Code List.
- id String
- The provider-assigned unique ID for this managed resource.
- is
System BooleanDefined - Service Group is system defined or not.
- links
List<Get
Service Group 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
- A short identifier for a Service Group.
- policy
References List<String> - Reference to policy associated with Service Group.
- tcp
Services List<GetService Group V2Tcp Service> - List of TCP ports in the service.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
- udp
Services List<GetService Group V2Udp Service> - List of UDP ports in the service.
- created
By string - created by.
- description string
- A user defined annotation for a Service Group.
- ext
Id string - icmp
Services GetService Group V2Icmp Service[] - Icmp Type Code List.
- id string
- The provider-assigned unique ID for this managed resource.
- is
System booleanDefined - Service Group is system defined or not.
- links
Get
Service Group 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
- A short identifier for a Service Group.
- policy
References string[] - Reference to policy associated with Service Group.
- tcp
Services GetService Group V2Tcp Service[] - List of TCP ports in the service.
- tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- udp
Services GetService Group V2Udp Service[] - List of UDP ports in the service.
- created_
by str - created by.
- description str
- A user defined annotation for a Service Group.
- ext_
id str - icmp_
services Sequence[GetService Group V2Icmp Service] - Icmp Type Code List.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
system_ booldefined - Service Group is system defined or not.
- links
Sequence[Get
Service Group 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 str
- A short identifier for a Service Group.
- policy_
references Sequence[str] - Reference to policy associated with Service Group.
- tcp_
services Sequence[GetService Group V2Tcp Service] - 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[GetService Group V2Udp Service] - List of UDP ports in the service.
- created
By String - created by.
- description String
- A user defined annotation for a Service Group.
- ext
Id String - icmp
Services List<Property Map> - Icmp Type Code List.
- id String
- The provider-assigned unique ID for this managed resource.
- is
System 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
- A short identifier for a Service Group.
- policy
References List<String> - Reference to policy associated with Service Group.
- tcp
Services List<Property Map> - List of TCP ports in the service.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
- udp
Services List<Property Map> - List of UDP ports in the service.
Supporting Types
GetServiceGroupV2IcmpService
- 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.
- 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
- Is
All boolAllowed - Set this field to true if both Type and Code is ANY.
- 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
- is
All BooleanAllowed - Set this field to true if both Type and Code is ANY.
- 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
- is
All booleanAllowed - Set this field to true if both Type and Code is ANY.
- 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.
- 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
- is
All BooleanAllowed - Set this field to true if both Type and Code is ANY.
- type Number
- Icmp service Type. Ignore this field if Type has to be ANY.
GetServiceGroupV2Link
GetServiceGroupV2TcpService
- end_
port int - end port
- start_
port int - start port
GetServiceGroupV2UdpService
- 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
nutanix
Terraform Provider.