api

package
v0.9.266 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URI_PREFIX = "/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudTrailQueryWithMarkerRequest

type CloudTrailQueryWithMarkerRequest struct {
	DomainId   string        `json:"domainId,omitempty"`
	Filters    []FieldFilter `json:"filters,omitempty"`
	StartTime  time.Time     `json:"startTime"`
	EndTime    time.Time     `json:"endTime"`
	PageSize   int           `json:"pageSize"`
	NextMarker string        `json:"nextMarker,omitempty"`
}

type EventDTO

type EventDTO struct {
	EventType               string         `json:"eventType"`
	EventSource             string         `json:"eventSource"`
	EventName               string         `json:"eventName"`
	EventTimeInMilliseconds int64          `json:"eventTimeInMilliseconds"`
	EventTime               string         `json:"eventTime"`
	UserIpAddress           string         `json:"userIpAddress"`
	UserAgent               string         `json:"userAgent"`
	RegionId                string         `json:"regionId"`
	RequestId               string         `json:"requestId"`
	OrderId                 string         `json:"orderId"`
	ApiVersion              string         `json:"apiVersion"`
	Description             string         `json:"description"`
	ErrorCode               string         `json:"errorCode"`
	ErrorMessage            string         `json:"errorMessage"`
	Success                 bool           `json:"success"`
	UserIdentity            UserIdentity   `json:"userIdentity"`
	Resources               []ResourceInfo `json:"resources"`
	OriginRequestParameters interface{}    `json:"originRequestParameters"`
	OriginResponse          interface{}    `json:"originResponse"`
}

type FieldFilter

type FieldFilter struct {
	Field string `json:"field"`
	Value string `json:"value"`
}

type PageWithMarkerResponse

type PageWithMarkerResponse struct {
	PageSize   int        `json:"pageSize"`
	Data       []EventDTO `json:"data"`
	NextMarker string     `json:"nextMarker"`
	Truncated  bool       `json:"truncated"`
}

type QueryEventsV2Response

type QueryEventsV2Response PageWithMarkerResponse

func QueryEventsV2

func QueryEventsV2(cli bce.Client, body *bce.Body) (*QueryEventsV2Response, error)

type ResourceInfo

type ResourceInfo struct {
	ResourceType string `json:"resourceType"`
	ResourceId   string `json:"resourceId"`
	ResourceName string `json:"resourceName"`
}

type UserIdentity

type UserIdentity struct {
	IamDomainId          string `json:"iamDomainId"`
	IamUserId            string `json:"iamUserId"`
	RoleId               string `json:"roleId"`
	LoginUserId          string `json:"loginUserId"`
	UserDisplayName      string `json:"userDisplayName"`
	OrganizationId       string `json:"organizationId"`
	OrganizationMasterId string `json:"organizationMasterId"`
	Accesskey            string `json:"accesskey"`
	ApiKey               string `json:"apiKey"`
	SecurityToken        string `json:"securityToken"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL