Class ListAlertPoliciesRequest
Implements
Inherited Members
Namespace: Oci.DatasafeService.Requests
Assembly: OCI.DotNetSDK.Datasafe.dll
Syntax
public class ListAlertPoliciesRequest : IOciRequest
Examples
Click here to see an example of how to use ListAlertPolicies request.
Properties
AccessLevel
Declaration
[HttpConverter(TargetEnum.Query, "accessLevel")]
public ListAlertPoliciesRequest.AccessLevelEnum? AccessLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| ListAlertPoliciesRequest.AccessLevelEnum? | Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. |
AlertPolicyId
Declaration
[HttpConverter(TargetEnum.Query, "alertPolicyId")]
public string AlertPolicyId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A filter to return policy by it's OCID. |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[HttpConverter(TargetEnum.Query, "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A filter to return only resources that match the specified compartment OCID. |
Remarks
Required
CompartmentIdInSubtree
Declaration
[HttpConverter(TargetEnum.Query, "compartmentIdInSubtree")]
public bool? CompartmentIdInSubtree { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. |
DisplayName
Declaration
[HttpConverter(TargetEnum.Query, "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A filter to return only resources that match the specified display name. |
IsUserDefined
Declaration
[HttpConverter(TargetEnum.Query, "isUserDefined")]
public bool? IsUserDefined { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | An optional filter to return only alert policies that are user-defined or not. |
LifecycleState
Declaration
[HttpConverter(TargetEnum.Query, "lifecycleState")]
public AlertPolicyLifecycleState? LifecycleState { get; set; }
Property Value
| Type | Description |
|---|---|
| AlertPolicyLifecycleState? | An optional filter to return only alert policies that have the given life-cycle state. |
Limit
Declaration
[HttpConverter(TargetEnum.Query, "limit")]
public int? Limit { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination. |
OpcRequestId
Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Unique identifier for the request. |
Page
Declaration
[HttpConverter(TargetEnum.Query, "page")]
public string Page { get; set; }
Property Value
| Type | Description |
|---|---|
| string | For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination. |
SortBy
Declaration
[HttpConverter(TargetEnum.Query, "sortBy")]
public ListAlertPoliciesRequest.SortByEnum? SortBy { get; set; }
Property Value
| Type | Description |
|---|---|
| ListAlertPoliciesRequest.SortByEnum? | The field to sort by. Only one sort parameter may be provided. |
SortOrder
Declaration
[HttpConverter(TargetEnum.Query, "sortOrder")]
public ListAlertPoliciesRequest.SortOrderEnum? SortOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| ListAlertPoliciesRequest.SortOrderEnum? | The sort order to use, either ascending (ASC) or descending (DESC). |
TimeCreatedGreaterThanOrEqualTo
Declaration
[HttpConverter(TargetEnum.Query, "timeCreatedGreaterThanOrEqualTo")]
public DateTime? TimeCreatedGreaterThanOrEqualTo { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | A filter to return only the resources that were created after the specified date and time, as defined by RFC3339.
Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
|
TimeCreatedLessThan
Declaration
[HttpConverter(TargetEnum.Query, "timeCreatedLessThan")]
public DateTime? TimeCreatedLessThan { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | Search for resources that were created before a specific date.
Specifying this parameter corresponding |
Type
Declaration
[HttpConverter(TargetEnum.Query, "type")]
public AlertPolicyType? Type { get; set; }
Property Value
| Type | Description |
|---|---|
| AlertPolicyType? | An optional filter to return only alert policies of a certain type. |