Method: Aws::Drs::Client#list_extensible_source_servers

Defined in:
lib/aws-sdk-drs/client.rb

#list_extensible_source_servers(params = {}) ⇒ Types::ListExtensibleSourceServersResponse

Returns a list of source servers on a staging account that are extensible, which means that: a. The source server is not already extended into this Account. b. The source server on the Account we’re reading from is not an extension of another source server.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_extensible_source_servers({
  max_results: 1,
  next_token: "PaginationToken",
  staging_account_id: "AccountID", # required
})

Response structure


resp.items #=> Array
resp.items[0].arn #=> String
resp.items[0].hostname #=> String
resp.items[0].tags #=> Hash
resp.items[0].tags["TagKey"] #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :max_results (Integer)

    The maximum number of extensible source servers to retrieve.

  • :next_token (String)

    The token of the next extensible source server to retrieve.

  • :staging_account_id (required, String)

    The Id of the staging Account to retrieve extensible source servers from.

Returns:

See Also:



2030
2031
2032
2033
# File 'lib/aws-sdk-drs/client.rb', line 2030

def list_extensible_source_servers(params = {}, options = {})
  req = build_request(:list_extensible_source_servers, params)
  req.send_request(options)
end