avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getServer
Explore with Pulumi AI
This data source is used to to get avi.Server objects.
Using getServer
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 getServer(args: GetServerArgs, opts?: InvokeOptions): Promise<GetServerResult>
function getServerOutput(args: GetServerOutputArgs, opts?: InvokeOptions): Output<GetServerResult>
def get_server(id: Optional[str] = None,
ip: Optional[str] = None,
pool_ref: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerResult
def get_server_output(id: Optional[pulumi.Input[str]] = None,
ip: Optional[pulumi.Input[str]] = None,
pool_ref: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerResult]
func LookupServer(ctx *Context, args *LookupServerArgs, opts ...InvokeOption) (*LookupServerResult, error)
func LookupServerOutput(ctx *Context, args *LookupServerOutputArgs, opts ...InvokeOption) LookupServerResultOutput
> Note: This function is named LookupServer
in the Go SDK.
public static class GetServer
{
public static Task<GetServerResult> InvokeAsync(GetServerArgs args, InvokeOptions? opts = null)
public static Output<GetServerResult> Invoke(GetServerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServerResult> getServer(GetServerArgs args, InvokeOptions options)
public static Output<GetServerResult> getServer(GetServerArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getServer:getServer
arguments:
# arguments dictionary
The following arguments are supported:
getServer Result
The following output properties are available:
- Autoscaling
Group stringName - Name of autoscaling group this server belongs to.
- Availability
Zone string - Description string
- A description of the server.
- Discovered
Networks List<GetServer Discovered Network> - Enabled string
- Enable or disable the server.
- External
Orchestration stringId - UID of server in external orchestration systems.
- External
Uuid string - UUID identifying VM in OpenStack and other external compute.
- Health
Monitor List<string>Refs - Hostname string
- DNS resolvable name of the server. May be used in place of the IP address.
- Id string
- Ip string
- IP address of a destination servers.
- Locations
List<Get
Server Location> - Geographic location of the server.Currently only for internal usage.
- Mac
Address string - Nw
Ref string - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrNWRuntime.
- Pool
Ref string - The pool is an object that contains destination servers and related attributes such as load-balancing and persistence.
- Port string
- Port of a destination servers.
- Preference
Order string - Prst
Hdr stringVal - Header value for custom header persistence.
- Ratio string
- Resolve
Server stringBy Dns - Rewrite
Host stringHeader - Rewrite incoming Host Header to server name.
- Server
Node string - Srv
Rdatas List<GetServer Srv Rdata> - Static string
- Type string
- Type of ip address (V4)
- Verify
Network string - Vm
Ref string - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrVMRuntime.
- Autoscaling
Group stringName - Name of autoscaling group this server belongs to.
- Availability
Zone string - Description string
- A description of the server.
- Discovered
Networks []GetServer Discovered Network - Enabled string
- Enable or disable the server.
- External
Orchestration stringId - UID of server in external orchestration systems.
- External
Uuid string - UUID identifying VM in OpenStack and other external compute.
- Health
Monitor []stringRefs - Hostname string
- DNS resolvable name of the server. May be used in place of the IP address.
- Id string
- Ip string
- IP address of a destination servers.
- Locations
[]Get
Server Location - Geographic location of the server.Currently only for internal usage.
- Mac
Address string - Nw
Ref string - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrNWRuntime.
- Pool
Ref string - The pool is an object that contains destination servers and related attributes such as load-balancing and persistence.
- Port string
- Port of a destination servers.
- Preference
Order string - Prst
Hdr stringVal - Header value for custom header persistence.
- Ratio string
- Resolve
Server stringBy Dns - Rewrite
Host stringHeader - Rewrite incoming Host Header to server name.
- Server
Node string - Srv
Rdatas []GetServer Srv Rdata - Static string
- Type string
- Type of ip address (V4)
- Verify
Network string - Vm
Ref string - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrVMRuntime.
- autoscaling
Group StringName - Name of autoscaling group this server belongs to.
- availability
Zone String - description String
- A description of the server.
- discovered
Networks List<GetServer Discovered Network> - enabled String
- Enable or disable the server.
- external
Orchestration StringId - UID of server in external orchestration systems.
- external
Uuid String - UUID identifying VM in OpenStack and other external compute.
- health
Monitor List<String>Refs - hostname String
- DNS resolvable name of the server. May be used in place of the IP address.
- id String
- ip String
- IP address of a destination servers.
- locations
List<Get
Server Location> - Geographic location of the server.Currently only for internal usage.
- mac
Address String - nw
Ref String - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrNWRuntime.
- pool
Ref String - The pool is an object that contains destination servers and related attributes such as load-balancing and persistence.
- port String
- Port of a destination servers.
- preference
Order String - prst
Hdr StringVal - Header value for custom header persistence.
- ratio String
- resolve
Server StringBy Dns - rewrite
Host StringHeader - Rewrite incoming Host Header to server name.
- server
Node String - srv
Rdatas List<GetServer Srv Rdata> - static_ String
- type String
- Type of ip address (V4)
- verify
Network String - vm
Ref String - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrVMRuntime.
- autoscaling
Group stringName - Name of autoscaling group this server belongs to.
- availability
Zone string - description string
- A description of the server.
- discovered
Networks GetServer Discovered Network[] - enabled string
- Enable or disable the server.
- external
Orchestration stringId - UID of server in external orchestration systems.
- external
Uuid string - UUID identifying VM in OpenStack and other external compute.
- health
Monitor string[]Refs - hostname string
- DNS resolvable name of the server. May be used in place of the IP address.
- id string
- ip string
- IP address of a destination servers.
- locations
Get
Server Location[] - Geographic location of the server.Currently only for internal usage.
- mac
Address string - nw
Ref string - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrNWRuntime.
- pool
Ref string - The pool is an object that contains destination servers and related attributes such as load-balancing and persistence.
- port string
- Port of a destination servers.
- preference
Order string - prst
Hdr stringVal - Header value for custom header persistence.
- ratio string
- resolve
Server stringBy Dns - rewrite
Host stringHeader - Rewrite incoming Host Header to server name.
- server
Node string - srv
Rdatas GetServer Srv Rdata[] - static string
- type string
- Type of ip address (V4)
- verify
Network string - vm
Ref string - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrVMRuntime.
- autoscaling_
group_ strname - Name of autoscaling group this server belongs to.
- availability_
zone str - description str
- A description of the server.
- discovered_
networks Sequence[GetServer Discovered Network] - enabled str
- Enable or disable the server.
- external_
orchestration_ strid - UID of server in external orchestration systems.
- external_
uuid str - UUID identifying VM in OpenStack and other external compute.
- health_
monitor_ Sequence[str]refs - hostname str
- DNS resolvable name of the server. May be used in place of the IP address.
- id str
- ip str
- IP address of a destination servers.
- locations
Sequence[Get
Server Location] - Geographic location of the server.Currently only for internal usage.
- mac_
address str - nw_
ref str - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrNWRuntime.
- pool_
ref str - The pool is an object that contains destination servers and related attributes such as load-balancing and persistence.
- port str
- Port of a destination servers.
- preference_
order str - prst_
hdr_ strval - Header value for custom header persistence.
- ratio str
- resolve_
server_ strby_ dns - rewrite_
host_ strheader - Rewrite incoming Host Header to server name.
- server_
node str - srv_
rdatas Sequence[GetServer Srv Rdata] - static str
- type str
- Type of ip address (V4)
- verify_
network str - vm_
ref str - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrVMRuntime.
- autoscaling
Group StringName - Name of autoscaling group this server belongs to.
- availability
Zone String - description String
- A description of the server.
- discovered
Networks List<Property Map> - enabled String
- Enable or disable the server.
- external
Orchestration StringId - UID of server in external orchestration systems.
- external
Uuid String - UUID identifying VM in OpenStack and other external compute.
- health
Monitor List<String>Refs - hostname String
- DNS resolvable name of the server. May be used in place of the IP address.
- id String
- ip String
- IP address of a destination servers.
- locations List<Property Map>
- Geographic location of the server.Currently only for internal usage.
- mac
Address String - nw
Ref String - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrNWRuntime.
- pool
Ref String - The pool is an object that contains destination servers and related attributes such as load-balancing and persistence.
- port String
- Port of a destination servers.
- preference
Order String - prst
Hdr StringVal - Header value for custom header persistence.
- ratio String
- resolve
Server StringBy Dns - rewrite
Host StringHeader - Rewrite incoming Host Header to server name.
- server
Node String - srv
Rdatas List<Property Map> - static String
- type String
- Type of ip address (V4)
- verify
Network String - vm
Ref String - This field is used internally by Avi, not editable by the user. It is a reference to an object of type VIMgrVMRuntime.
Supporting Types
GetServerDiscoveredNetwork
GetServerDiscoveredNetworkSubnet
- ip
Addrs List<Property Map> - mask String
GetServerDiscoveredNetworkSubnet6
- ip
Addrs List<Property Map> - mask String
GetServerDiscoveredNetworkSubnet6IpAddr
GetServerDiscoveredNetworkSubnetIpAddr
GetServerLocation
GetServerSrvRdata
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.