Skip to content

Include network interfaces in instance response (no pagination needed) #1009

@david-crespo

Description

@david-crespo

I believe there's a maximum of 8 or 6 or some small number, so there's no need to paginate.

let interfaces = nexus
.instance_list_network_interfaces(
&opctx,
&organization_name,
&project_name,
&instance_name,
&data_page_params_for(&rqctx, &query)?
.map_name(|n| Name::ref_cast(n)),
)
.await?
.into_iter()
.map(|d| d.into())
.collect();
Ok(HttpResponseOk(ScanByName::results_page(&query, interfaces)?))

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelated to the API.nexusRelated to nexus

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions