gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core
gcorelabs.getServergroup
Explore with Pulumi AI
Represent server group data
Using getServergroup
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 getServergroup(args: GetServergroupArgs, opts?: InvokeOptions): Promise<GetServergroupResult>
function getServergroupOutput(args: GetServergroupOutputArgs, opts?: InvokeOptions): Output<GetServergroupResult>
def get_servergroup(id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServergroupResult
def get_servergroup_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
project_name: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[float]] = None,
region_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServergroupResult]
func LookupServergroup(ctx *Context, args *LookupServergroupArgs, opts ...InvokeOption) (*LookupServergroupResult, error)
func LookupServergroupOutput(ctx *Context, args *LookupServergroupOutputArgs, opts ...InvokeOption) LookupServergroupResultOutput
> Note: This function is named LookupServergroup
in the Go SDK.
public static class GetServergroup
{
public static Task<GetServergroupResult> InvokeAsync(GetServergroupArgs args, InvokeOptions? opts = null)
public static Output<GetServergroupResult> Invoke(GetServergroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServergroupResult> getServergroup(GetServergroupArgs args, InvokeOptions options)
public static Output<GetServergroupResult> getServergroup(GetServergroupArgs args, InvokeOptions options)
fn::invoke:
function: gcorelabs:index/getServergroup:getServergroup
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Displayed server group name
- Id string
- The ID of this resource.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Name string
- Displayed server group name
- Id string
- The ID of this resource.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- name String
- Displayed server group name
- id String
- The ID of this resource.
- project
Id Double - project
Name String - region
Id Double - region
Name String
- name string
- Displayed server group name
- id string
- The ID of this resource.
- project
Id number - project
Name string - region
Id number - region
Name string
- name str
- Displayed server group name
- id str
- The ID of this resource.
- project_
id float - project_
name str - region_
id float - region_
name str
- name String
- Displayed server group name
- id String
- The ID of this resource.
- project
Id Number - project
Name String - region
Id Number - region
Name String
getServergroup Result
The following output properties are available:
- Id string
- The ID of this resource.
- Instances
List<Get
Servergroup Instance> - Instances in this server group
- Name string
- Displayed server group name
- Policy string
- Server group policy. Available value is 'affinity', 'anti-affinity'
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Id string
- The ID of this resource.
- Instances
[]Get
Servergroup Instance - Instances in this server group
- Name string
- Displayed server group name
- Policy string
- Server group policy. Available value is 'affinity', 'anti-affinity'
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- id String
- The ID of this resource.
- instances
List<Get
Servergroup Instance> - Instances in this server group
- name String
- Displayed server group name
- policy String
- Server group policy. Available value is 'affinity', 'anti-affinity'
- project
Id Double - project
Name String - region
Id Double - region
Name String
- id string
- The ID of this resource.
- instances
Get
Servergroup Instance[] - Instances in this server group
- name string
- Displayed server group name
- policy string
- Server group policy. Available value is 'affinity', 'anti-affinity'
- project
Id number - project
Name string - region
Id number - region
Name string
- id str
- The ID of this resource.
- instances
Sequence[Get
Servergroup Instance] - Instances in this server group
- name str
- Displayed server group name
- policy str
- Server group policy. Available value is 'affinity', 'anti-affinity'
- project_
id float - project_
name str - region_
id float - region_
name str
- id String
- The ID of this resource.
- instances List<Property Map>
- Instances in this server group
- name String
- Displayed server group name
- policy String
- Server group policy. Available value is 'affinity', 'anti-affinity'
- project
Id Number - project
Name String - region
Id Number - region
Name String
Supporting Types
GetServergroupInstance
- Instance
Id string - Instance
Name string
- Instance
Id string - Instance
Name string
- instance
Id String - instance
Name String
- instance
Id string - instance
Name string
- instance_
id str - instance_
name str
- instance
Id String - instance
Name String
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.