Show / Hide Table of Contents

Class ListInfrastructuresRequest

Inheritance
object
ListInfrastructuresRequest
Implements
IOciRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DataccService.Requests
Assembly: OCI.DotNetSDK.Datacc.dll
Syntax
public class ListInfrastructuresRequest : IOciRequest
Examples

Click here to see an example of how to use ListInfrastructures request.

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[HttpConverter(TargetEnum.Query, "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment. For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied).

Remarks

Required

DisplayName

Declaration
[HttpConverter(TargetEnum.Query, "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A filter to return resources that match the entire display name given. The match is case sensitive.

LifecycleState

Declaration
[HttpConverter(TargetEnum.Query, "lifecycleState", CollectionFormatType.Multi)]
public List<InfrastructureLifecycleState> LifecycleState { get; set; }
Property Value
Type Description
List<InfrastructureLifecycleState>

A filter to return resources that match the specified lifecycle state.

Limit

Declaration
[HttpConverter(TargetEnum.Query, "limit")]
public int? Limit { get; set; }
Property Value
Type Description
int?

The maximum number of items to return in a page.

OpcRequestId

Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type Description
string

The client request identifier.

Page

Declaration
[HttpConverter(TargetEnum.Query, "page")]
public string Page { get; set; }
Property Value
Type Description
string

The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call.

SortBy

Declaration
[HttpConverter(TargetEnum.Query, "sortBy")]
public ListInfrastructuresRequest.SortByEnum? SortBy { get; set; }
Property Value
Type Description
ListInfrastructuresRequest.SortByEnum?

The field by which you want to sort. You can provide only one type of sort order. The default order for timeCreated is descending. The default order for displayName is ascending. If no value is specified, then timeCreated is the default. When listing software images within the same version, using sortBy=buildIdentifier is recommended. buildIdentifier is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image.

SortOrder

Declaration
[HttpConverter(TargetEnum.Query, "sortOrder")]
public SortOrder? SortOrder { get; set; }
Property Value
Type Description
SortOrder?

The sort order that you want to use, which is either ASC or DESC.

Implements

IOciRequest
In this article
Back to top