Documentation ¶
Index ¶
- type ActionTypeEnum
- type Bastion
- type BastionClient
- func (client BastionClient) ChangeBastionCompartment(ctx context.Context, request ChangeBastionCompartmentRequest) (response ChangeBastionCompartmentResponse, err error)
- func (client *BastionClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client BastionClient) CreateBastion(ctx context.Context, request CreateBastionRequest) (response CreateBastionResponse, err error)
- func (client BastionClient) CreateSession(ctx context.Context, request CreateSessionRequest) (response CreateSessionResponse, err error)
- func (client BastionClient) DeleteBastion(ctx context.Context, request DeleteBastionRequest) (response DeleteBastionResponse, err error)
- func (client BastionClient) DeleteSession(ctx context.Context, request DeleteSessionRequest) (response DeleteSessionResponse, err error)
- func (client BastionClient) GetBastion(ctx context.Context, request GetBastionRequest) (response GetBastionResponse, err error)
- func (client BastionClient) GetSession(ctx context.Context, request GetSessionRequest) (response GetSessionResponse, err error)
- func (client BastionClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
- func (client BastionClient) ListBastions(ctx context.Context, request ListBastionsRequest) (response ListBastionsResponse, err error)
- func (client BastionClient) ListSessions(ctx context.Context, request ListSessionsRequest) (response ListSessionsResponse, err error)
- func (client BastionClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
- func (client BastionClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
- func (client BastionClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
- func (client *BastionClient) SetRegion(region string)
- func (client BastionClient) UpdateBastion(ctx context.Context, request UpdateBastionRequest) (response UpdateBastionResponse, err error)
- func (client BastionClient) UpdateSession(ctx context.Context, request UpdateSessionRequest) (response UpdateSessionResponse, err error)
- type BastionLifecycleStateEnum
- type BastionSummary
- type ChangeBastionCompartmentDetails
- type ChangeBastionCompartmentRequest
- func (request ChangeBastionCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ChangeBastionCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ChangeBastionCompartmentRequest) RetryPolicy() *common.RetryPolicy
- func (request ChangeBastionCompartmentRequest) String() string
- type ChangeBastionCompartmentResponse
- type CreateBastionDetails
- type CreateBastionRequest
- func (request CreateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CreateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request CreateBastionRequest) RetryPolicy() *common.RetryPolicy
- func (request CreateBastionRequest) String() string
- type CreateBastionResponse
- type CreateManagedSshSessionTargetResourceDetails
- type CreatePortForwardingSessionTargetResourceDetails
- type CreateSessionDetails
- type CreateSessionDetailsKeyTypeEnum
- type CreateSessionRequest
- func (request CreateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CreateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request CreateSessionRequest) RetryPolicy() *common.RetryPolicy
- func (request CreateSessionRequest) String() string
- type CreateSessionResponse
- type CreateSessionTargetResourceDetails
- type DeleteBastionRequest
- func (request DeleteBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request DeleteBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request DeleteBastionRequest) RetryPolicy() *common.RetryPolicy
- func (request DeleteBastionRequest) String() string
- type DeleteBastionResponse
- type DeleteSessionRequest
- func (request DeleteSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request DeleteSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request DeleteSessionRequest) RetryPolicy() *common.RetryPolicy
- func (request DeleteSessionRequest) String() string
- type DeleteSessionResponse
- type GetBastionRequest
- func (request GetBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request GetBastionRequest) RetryPolicy() *common.RetryPolicy
- func (request GetBastionRequest) String() string
- type GetBastionResponse
- type GetSessionRequest
- func (request GetSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request GetSessionRequest) RetryPolicy() *common.RetryPolicy
- func (request GetSessionRequest) String() string
- type GetSessionResponse
- type GetWorkRequestRequest
- func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
- func (request GetWorkRequestRequest) String() string
- type GetWorkRequestResponse
- type ListBastionsBastionLifecycleStateEnum
- type ListBastionsRequest
- func (request ListBastionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListBastionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListBastionsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListBastionsRequest) String() string
- type ListBastionsResponse
- type ListBastionsSortByEnum
- type ListBastionsSortOrderEnum
- type ListSessionsRequest
- func (request ListSessionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListSessionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListSessionsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListSessionsRequest) String() string
- type ListSessionsResponse
- type ListSessionsSessionLifecycleStateEnum
- type ListSessionsSortByEnum
- type ListSessionsSortOrderEnum
- type ListWorkRequestErrorsRequest
- func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListWorkRequestErrorsRequest) String() string
- type ListWorkRequestErrorsResponse
- type ListWorkRequestLogsRequest
- func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListWorkRequestLogsRequest) String() string
- type ListWorkRequestLogsResponse
- type ListWorkRequestsRequest
- func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListWorkRequestsRequest) String() string
- type ListWorkRequestsResponse
- type ManagedSshSessionTargetResourceDetails
- type OperationStatusEnum
- type OperationTypeEnum
- type PortForwardingSessionTargetResourceDetails
- type PublicKeyDetails
- type Session
- type SessionKeyTypeEnum
- type SessionLifecycleStateEnum
- type SessionSummary
- type SessionTypeEnum
- type SortOrderEnum
- type TargetResourceDetails
- type UpdateBastionDetails
- type UpdateBastionRequest
- func (request UpdateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request UpdateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request UpdateBastionRequest) RetryPolicy() *common.RetryPolicy
- func (request UpdateBastionRequest) String() string
- type UpdateBastionResponse
- type UpdateSessionDetails
- type UpdateSessionRequest
- func (request UpdateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request UpdateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request UpdateSessionRequest) RetryPolicy() *common.RetryPolicy
- func (request UpdateSessionRequest) String() string
- type UpdateSessionResponse
- type WorkRequest
- type WorkRequestError
- type WorkRequestLogEntry
- type WorkRequestResource
- type WorkRequestSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionTypeEnum ¶
type ActionTypeEnum string
ActionTypeEnum Enum with underlying type: string
const ( ActionTypeCreated ActionTypeEnum = "CREATED" ActionTypeUpdated ActionTypeEnum = "UPDATED" ActionTypeDeleted ActionTypeEnum = "DELETED" ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS" ActionTypeRelated ActionTypeEnum = "RELATED" )
Set of constants representing the allowable values for ActionTypeEnum
func GetActionTypeEnumValues ¶
func GetActionTypeEnumValues() []ActionTypeEnum
GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum
type Bastion ¶
type Bastion struct { // The type of bastion. BastionType *string `mandatory:"true" json:"bastionType"` // The unique identifier (OCID) of the bastion, which can't be changed after creation. Id *string `mandatory:"true" json:"id"` // The name of the bastion, which can't be changed after creation. Name *string `mandatory:"true" json:"name"` // The unique identifier (OCID) of the compartment where the bastion is located. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to. TargetVcnId *string `mandatory:"true" json:"targetVcnId"` // The unique identifier (OCID) of the subnet that the bastion connects to. TargetSubnetId *string `mandatory:"true" json:"targetSubnetId"` // The maximum amount of time that any session on the bastion can remain active. MaxSessionTtlInSeconds *int `mandatory:"true" json:"maxSessionTtlInSeconds"` // The time the bastion was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The current state of the bastion. LifecycleState BastionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions. PhoneBookEntry *string `mandatory:"false" json:"phoneBookEntry"` // A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion. ClientCidrBlockAllowList []string `mandatory:"false" json:"clientCidrBlockAllowList"` // A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions. StaticJumpHostIpAddresses []string `mandatory:"false" json:"staticJumpHostIpAddresses"` // The private IP address of the created private endpoint. PrivateEndpointIpAddress *string `mandatory:"false" json:"privateEndpointIpAddress"` // The maximum number of active sessions allowed on the bastion. MaxSessionsAllowed *int `mandatory:"false" json:"maxSessionsAllowed"` // The time the bastion was updated. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // A message describing the current state in more detail. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Usage of system tag keys. These predefined keys are scoped to namespaces. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` }
Bastion A bastion resource. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.
type BastionClient ¶
type BastionClient struct { common.BaseClient // contains filtered or unexported fields }
BastionClient a client for Bastion
func NewBastionClientWithConfigurationProvider ¶
func NewBastionClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client BastionClient, err error)
NewBastionClientWithConfigurationProvider Creates a new default Bastion client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewBastionClientWithOboToken ¶
func NewBastionClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client BastionClient, err error)
NewBastionClientWithOboToken Creates a new default Bastion client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (BastionClient) ChangeBastionCompartment ¶
func (client BastionClient) ChangeBastionCompartment(ctx context.Context, request ChangeBastionCompartmentRequest) (response ChangeBastionCompartmentResponse, err error)
ChangeBastionCompartment Moves a bastion into a different compartment.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ChangeBastionCompartment.go.html to see an example of how to use ChangeBastionCompartment API.
func (*BastionClient) ConfigurationProvider ¶
func (client *BastionClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (BastionClient) CreateBastion ¶
func (client BastionClient) CreateBastion(ctx context.Context, request CreateBastionRequest) (response CreateBastionResponse, err error)
CreateBastion Creates a new bastion. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/CreateBastion.go.html to see an example of how to use CreateBastion API.
func (BastionClient) CreateSession ¶
func (client BastionClient) CreateSession(ctx context.Context, request CreateSessionRequest) (response CreateSessionResponse, err error)
CreateSession Creates a new session in a bastion. A bastion session lets authorized users connect to a target resource for a predetermined amount of time. The Bastion service recognizes two types of sessions, managed SSH sessions and SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/CreateSession.go.html to see an example of how to use CreateSession API.
func (BastionClient) DeleteBastion ¶
func (client BastionClient) DeleteBastion(ctx context.Context, request DeleteBastionRequest) (response DeleteBastionResponse, err error)
DeleteBastion Deletes a bastion identified by the bastion ID.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/DeleteBastion.go.html to see an example of how to use DeleteBastion API.
func (BastionClient) DeleteSession ¶
func (client BastionClient) DeleteSession(ctx context.Context, request DeleteSessionRequest) (response DeleteSessionResponse, err error)
DeleteSession Deletes a session identified by the session ID.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/DeleteSession.go.html to see an example of how to use DeleteSession API.
func (BastionClient) GetBastion ¶
func (client BastionClient) GetBastion(ctx context.Context, request GetBastionRequest) (response GetBastionResponse, err error)
GetBastion Retrieves a bastion identified by the bastion ID. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/GetBastion.go.html to see an example of how to use GetBastion API.
func (BastionClient) GetSession ¶
func (client BastionClient) GetSession(ctx context.Context, request GetSessionRequest) (response GetSessionResponse, err error)
GetSession Retrieves a session identified by the session ID. A bastion session lets authorized users connect to a target resource for a predetermined amount of time.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/GetSession.go.html to see an example of how to use GetSession API.
func (BastionClient) GetWorkRequest ¶
func (client BastionClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
GetWorkRequest Gets the status of the work request with the given ID.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API.
func (BastionClient) ListBastions ¶
func (client BastionClient) ListBastions(ctx context.Context, request ListBastionsRequest) (response ListBastionsResponse, err error)
ListBastions Retrieves a list of BastionSummary objects in a compartment. Bastions provide secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListBastions.go.html to see an example of how to use ListBastions API.
func (BastionClient) ListSessions ¶
func (client BastionClient) ListSessions(ctx context.Context, request ListSessionsRequest) (response ListSessionsResponse, err error)
ListSessions Retrieves a list of SessionSummary objects for an existing bastion. Bastion sessions let authorized users connect to a target resource for a predetermined amount of time.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListSessions.go.html to see an example of how to use ListSessions API.
func (BastionClient) ListWorkRequestErrors ¶
func (client BastionClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
ListWorkRequestErrors Return a (paginated) list of errors for a given work request.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API.
func (BastionClient) ListWorkRequestLogs ¶
func (client BastionClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
ListWorkRequestLogs Return a (paginated) list of logs for a given work request.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API.
func (BastionClient) ListWorkRequests ¶
func (client BastionClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
ListWorkRequests Lists the work requests in a compartment.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API.
func (*BastionClient) SetRegion ¶
func (client *BastionClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (BastionClient) UpdateBastion ¶
func (client BastionClient) UpdateBastion(ctx context.Context, request UpdateBastionRequest) (response UpdateBastionResponse, err error)
UpdateBastion Updates the bastion identified by the bastion ID. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/UpdateBastion.go.html to see an example of how to use UpdateBastion API.
func (BastionClient) UpdateSession ¶
func (client BastionClient) UpdateSession(ctx context.Context, request UpdateSessionRequest) (response UpdateSessionResponse, err error)
UpdateSession Updates the session identified by the session ID. A bastion session lets authorized users connect to a target resource for a predetermined amount of time.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/UpdateSession.go.html to see an example of how to use UpdateSession API.
type BastionLifecycleStateEnum ¶
type BastionLifecycleStateEnum string
BastionLifecycleStateEnum Enum with underlying type: string
const ( BastionLifecycleStateCreating BastionLifecycleStateEnum = "CREATING" BastionLifecycleStateUpdating BastionLifecycleStateEnum = "UPDATING" BastionLifecycleStateActive BastionLifecycleStateEnum = "ACTIVE" BastionLifecycleStateDeleting BastionLifecycleStateEnum = "DELETING" BastionLifecycleStateDeleted BastionLifecycleStateEnum = "DELETED" BastionLifecycleStateFailed BastionLifecycleStateEnum = "FAILED" )
Set of constants representing the allowable values for BastionLifecycleStateEnum
func GetBastionLifecycleStateEnumValues ¶
func GetBastionLifecycleStateEnumValues() []BastionLifecycleStateEnum
GetBastionLifecycleStateEnumValues Enumerates the set of values for BastionLifecycleStateEnum
type BastionSummary ¶
type BastionSummary struct { // The type of bastion. BastionType *string `mandatory:"true" json:"bastionType"` // The unique identifier (OCID) of the bastion, which can't be changed after creation. Id *string `mandatory:"true" json:"id"` // The name of the bastion, which can't be changed after creation. Name *string `mandatory:"true" json:"name"` // The unique identifier (OCID) of the compartment where the bastion is located. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to. TargetVcnId *string `mandatory:"true" json:"targetVcnId"` // The unique identifier (OCID) of the subnet that the bastion connects to. TargetSubnetId *string `mandatory:"true" json:"targetSubnetId"` // The time the bastion was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The current state of the bastion. LifecycleState BastionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The time the bastion was updated. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // A message describing the current state in more detail. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Usage of system tag keys. These predefined keys are scoped to namespaces. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` }
BastionSummary Summary information for a bastion resource. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.
func (BastionSummary) String ¶
func (m BastionSummary) String() string
type ChangeBastionCompartmentDetails ¶
type ChangeBastionCompartmentDetails struct { // The unique identifier (OCID) of the compartment that the bastion should move to. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
ChangeBastionCompartmentDetails Details about the compartment that the bastion should move to.
func (ChangeBastionCompartmentDetails) String ¶
func (m ChangeBastionCompartmentDetails) String() string
type ChangeBastionCompartmentRequest ¶
type ChangeBastionCompartmentRequest struct { // The unique identifier (OCID) of the bastion. BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"` // The compartment information to be updated. ChangeBastionCompartmentDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ChangeBastionCompartmentRequest wrapper for the ChangeBastionCompartment operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ChangeBastionCompartment.go.html to see an example of how to use ChangeBastionCompartmentRequest.
func (ChangeBastionCompartmentRequest) BinaryRequestBody ¶
func (request ChangeBastionCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ChangeBastionCompartmentRequest) HTTPRequest ¶
func (request ChangeBastionCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ChangeBastionCompartmentRequest) RetryPolicy ¶
func (request ChangeBastionCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ChangeBastionCompartmentRequest) String ¶
func (request ChangeBastionCompartmentRequest) String() string
type ChangeBastionCompartmentResponse ¶
type ChangeBastionCompartmentResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
ChangeBastionCompartmentResponse wrapper for the ChangeBastionCompartment operation
func (ChangeBastionCompartmentResponse) HTTPResponse ¶
func (response ChangeBastionCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ChangeBastionCompartmentResponse) String ¶
func (response ChangeBastionCompartmentResponse) String() string
type CreateBastionDetails ¶
type CreateBastionDetails struct { // The type of bastion. Use `standard`. BastionType *string `mandatory:"true" json:"bastionType"` // The unique identifier (OCID) of the compartment where the bastion is located. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The unique identifier (OCID) of the subnet that the bastion connects to. TargetSubnetId *string `mandatory:"true" json:"targetSubnetId"` // The name of the bastion, which can't be changed after creation. Name *string `mandatory:"false" json:"name"` // The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions. PhoneBookEntry *string `mandatory:"false" json:"phoneBookEntry"` // A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions. StaticJumpHostIpAddresses []string `mandatory:"false" json:"staticJumpHostIpAddresses"` // A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion. ClientCidrBlockAllowList []string `mandatory:"false" json:"clientCidrBlockAllowList"` // The maximum amount of time that any session on the bastion can remain active. MaxSessionTtlInSeconds *int `mandatory:"false" json:"maxSessionTtlInSeconds"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
CreateBastionDetails The configuration details for a new bastion. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.
func (CreateBastionDetails) String ¶
func (m CreateBastionDetails) String() string
type CreateBastionRequest ¶
type CreateBastionRequest struct { // Details for the new bastion. CreateBastionDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CreateBastionRequest wrapper for the CreateBastion operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/CreateBastion.go.html to see an example of how to use CreateBastionRequest.
func (CreateBastionRequest) BinaryRequestBody ¶
func (request CreateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (CreateBastionRequest) HTTPRequest ¶
func (request CreateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateBastionRequest) RetryPolicy ¶
func (request CreateBastionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateBastionRequest) String ¶
func (request CreateBastionRequest) String() string
type CreateBastionResponse ¶
type CreateBastionResponse struct { // The underlying http response RawResponse *http.Response // The Bastion instance Bastion `presentIn:"body"` // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // this contains the full URI for the get request, e.g. "https://iaas.us-phoenix-1.oraclecloud.com/20210331/bastions/<some-ocid>" Location *string `presentIn:"header" name:"location"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
CreateBastionResponse wrapper for the CreateBastion operation
func (CreateBastionResponse) HTTPResponse ¶
func (response CreateBastionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateBastionResponse) String ¶
func (response CreateBastionResponse) String() string
type CreateManagedSshSessionTargetResourceDetails ¶
type CreateManagedSshSessionTargetResourceDetails struct { // The name of the user on the target resource operating system that the session uses for the connection. TargetResourceOperatingSystemUserName *string `mandatory:"true" json:"targetResourceOperatingSystemUserName"` // The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to. TargetResourceId *string `mandatory:"true" json:"targetResourceId"` // The port number to connect to on the target resource. TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"` // The private IP address of the target resource that the session connects to. TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"` }
CreateManagedSshSessionTargetResourceDetails Details about a managed SSH session for a target resource.
func (CreateManagedSshSessionTargetResourceDetails) GetTargetResourcePort ¶
func (m CreateManagedSshSessionTargetResourceDetails) GetTargetResourcePort() *int
GetTargetResourcePort returns TargetResourcePort
func (CreateManagedSshSessionTargetResourceDetails) MarshalJSON ¶
func (m CreateManagedSshSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (CreateManagedSshSessionTargetResourceDetails) String ¶
func (m CreateManagedSshSessionTargetResourceDetails) String() string
type CreatePortForwardingSessionTargetResourceDetails ¶
type CreatePortForwardingSessionTargetResourceDetails struct { // The port number to connect to on the target resource. TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"` // The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to. TargetResourceId *string `mandatory:"false" json:"targetResourceId"` // The private IP address of the target resource that the session connects to. TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"` }
CreatePortForwardingSessionTargetResourceDetails Details about a port forwarding session for a target resource.
func (CreatePortForwardingSessionTargetResourceDetails) GetTargetResourcePort ¶
func (m CreatePortForwardingSessionTargetResourceDetails) GetTargetResourcePort() *int
GetTargetResourcePort returns TargetResourcePort
func (CreatePortForwardingSessionTargetResourceDetails) MarshalJSON ¶
func (m CreatePortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (CreatePortForwardingSessionTargetResourceDetails) String ¶
func (m CreatePortForwardingSessionTargetResourceDetails) String() string
type CreateSessionDetails ¶
type CreateSessionDetails struct { // The unique identifier (OCID) of the bastion on which to create this session. BastionId *string `mandatory:"true" json:"bastionId"` TargetResourceDetails CreateSessionTargetResourceDetails `mandatory:"true" json:"targetResourceDetails"` KeyDetails *PublicKeyDetails `mandatory:"true" json:"keyDetails"` // The name of the session. DisplayName *string `mandatory:"false" json:"displayName"` // The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format. KeyType CreateSessionDetailsKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` // The amount of time the session can remain active. SessionTtlInSeconds *int `mandatory:"false" json:"sessionTtlInSeconds"` }
CreateSessionDetails The configuration details for a new bastion session. A session lets authorized users connect to a target resource for a predetermined amount of time. The Bastion service recognizes two types of sessions, managed SSH sessions and SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.
func (CreateSessionDetails) String ¶
func (m CreateSessionDetails) String() string
func (*CreateSessionDetails) UnmarshalJSON ¶
func (m *CreateSessionDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
type CreateSessionDetailsKeyTypeEnum ¶
type CreateSessionDetailsKeyTypeEnum string
CreateSessionDetailsKeyTypeEnum Enum with underlying type: string
const (
CreateSessionDetailsKeyTypePub CreateSessionDetailsKeyTypeEnum = "PUB"
)
Set of constants representing the allowable values for CreateSessionDetailsKeyTypeEnum
func GetCreateSessionDetailsKeyTypeEnumValues ¶
func GetCreateSessionDetailsKeyTypeEnumValues() []CreateSessionDetailsKeyTypeEnum
GetCreateSessionDetailsKeyTypeEnumValues Enumerates the set of values for CreateSessionDetailsKeyTypeEnum
type CreateSessionRequest ¶
type CreateSessionRequest struct { // Details for the new session. CreateSessionDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CreateSessionRequest wrapper for the CreateSession operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/CreateSession.go.html to see an example of how to use CreateSessionRequest.
func (CreateSessionRequest) BinaryRequestBody ¶
func (request CreateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (CreateSessionRequest) HTTPRequest ¶
func (request CreateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateSessionRequest) RetryPolicy ¶
func (request CreateSessionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateSessionRequest) String ¶
func (request CreateSessionRequest) String() string
type CreateSessionResponse ¶
type CreateSessionResponse struct { // The underlying http response RawResponse *http.Response // The Session instance Session `presentIn:"body"` // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // this contains the full URI for the get request, e.g. "https://iaas.us-phoenix-1.oraclecloud.com/20210331/bastions/<some-ocid>" Location *string `presentIn:"header" name:"location"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
CreateSessionResponse wrapper for the CreateSession operation
func (CreateSessionResponse) HTTPResponse ¶
func (response CreateSessionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateSessionResponse) String ¶
func (response CreateSessionResponse) String() string
type CreateSessionTargetResourceDetails ¶
type CreateSessionTargetResourceDetails interface { // The port number to connect to on the target resource. GetTargetResourcePort() *int }
CreateSessionTargetResourceDetails Details about a bastion session's target resource.
type DeleteBastionRequest ¶
type DeleteBastionRequest struct { // The unique identifier (OCID) of the bastion. BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
DeleteBastionRequest wrapper for the DeleteBastion operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/DeleteBastion.go.html to see an example of how to use DeleteBastionRequest.
func (DeleteBastionRequest) BinaryRequestBody ¶
func (request DeleteBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (DeleteBastionRequest) HTTPRequest ¶
func (request DeleteBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteBastionRequest) RetryPolicy ¶
func (request DeleteBastionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteBastionRequest) String ¶
func (request DeleteBastionRequest) String() string
type DeleteBastionResponse ¶
type DeleteBastionResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
DeleteBastionResponse wrapper for the DeleteBastion operation
func (DeleteBastionResponse) HTTPResponse ¶
func (response DeleteBastionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteBastionResponse) String ¶
func (response DeleteBastionResponse) String() string
type DeleteSessionRequest ¶
type DeleteSessionRequest struct { // The unique identifier (OCID) of the session. SessionId *string `mandatory:"true" contributesTo:"path" name:"sessionId"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
DeleteSessionRequest wrapper for the DeleteSession operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/DeleteSession.go.html to see an example of how to use DeleteSessionRequest.
func (DeleteSessionRequest) BinaryRequestBody ¶
func (request DeleteSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (DeleteSessionRequest) HTTPRequest ¶
func (request DeleteSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteSessionRequest) RetryPolicy ¶
func (request DeleteSessionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteSessionRequest) String ¶
func (request DeleteSessionRequest) String() string
type DeleteSessionResponse ¶
type DeleteSessionResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
DeleteSessionResponse wrapper for the DeleteSession operation
func (DeleteSessionResponse) HTTPResponse ¶
func (response DeleteSessionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteSessionResponse) String ¶
func (response DeleteSessionResponse) String() string
type GetBastionRequest ¶
type GetBastionRequest struct { // The unique identifier (OCID) of the bastion. BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetBastionRequest wrapper for the GetBastion operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/GetBastion.go.html to see an example of how to use GetBastionRequest.
func (GetBastionRequest) BinaryRequestBody ¶
func (request GetBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetBastionRequest) HTTPRequest ¶
func (request GetBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetBastionRequest) RetryPolicy ¶
func (request GetBastionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetBastionRequest) String ¶
func (request GetBastionRequest) String() string
type GetBastionResponse ¶
type GetBastionResponse struct { // The underlying http response RawResponse *http.Response // The Bastion instance Bastion `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
GetBastionResponse wrapper for the GetBastion operation
func (GetBastionResponse) HTTPResponse ¶
func (response GetBastionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetBastionResponse) String ¶
func (response GetBastionResponse) String() string
type GetSessionRequest ¶
type GetSessionRequest struct { // The unique identifier (OCID) of the session. SessionId *string `mandatory:"true" contributesTo:"path" name:"sessionId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetSessionRequest wrapper for the GetSession operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/GetSession.go.html to see an example of how to use GetSessionRequest.
func (GetSessionRequest) BinaryRequestBody ¶
func (request GetSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetSessionRequest) HTTPRequest ¶
func (request GetSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetSessionRequest) RetryPolicy ¶
func (request GetSessionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetSessionRequest) String ¶
func (request GetSessionRequest) String() string
type GetSessionResponse ¶
type GetSessionResponse struct { // The underlying http response RawResponse *http.Response // The Session instance Session `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
GetSessionResponse wrapper for the GetSession operation
func (GetSessionResponse) HTTPResponse ¶
func (response GetSessionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetSessionResponse) String ¶
func (response GetSessionResponse) String() string
type GetWorkRequestRequest ¶
type GetWorkRequestRequest struct { // The unique identifier (OCID) of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetWorkRequestRequest wrapper for the GetWorkRequest operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest.
func (GetWorkRequestRequest) BinaryRequestBody ¶
func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetWorkRequestRequest) HTTPRequest ¶
func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetWorkRequestRequest) RetryPolicy ¶
func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetWorkRequestRequest) String ¶
func (request GetWorkRequestRequest) String() string
type GetWorkRequestResponse ¶
type GetWorkRequestResponse struct { // The underlying http response RawResponse *http.Response // The WorkRequest instance WorkRequest `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // A decimal number representing the number of seconds the client should wait before polling this endpoint again. RetryAfter *float32 `presentIn:"header" name:"retry-after"` }
GetWorkRequestResponse wrapper for the GetWorkRequest operation
func (GetWorkRequestResponse) HTTPResponse ¶
func (response GetWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetWorkRequestResponse) String ¶
func (response GetWorkRequestResponse) String() string
type ListBastionsBastionLifecycleStateEnum ¶
type ListBastionsBastionLifecycleStateEnum string
ListBastionsBastionLifecycleStateEnum Enum with underlying type: string
const ( ListBastionsBastionLifecycleStateCreating ListBastionsBastionLifecycleStateEnum = "CREATING" ListBastionsBastionLifecycleStateUpdating ListBastionsBastionLifecycleStateEnum = "UPDATING" ListBastionsBastionLifecycleStateActive ListBastionsBastionLifecycleStateEnum = "ACTIVE" ListBastionsBastionLifecycleStateDeleting ListBastionsBastionLifecycleStateEnum = "DELETING" ListBastionsBastionLifecycleStateDeleted ListBastionsBastionLifecycleStateEnum = "DELETED" ListBastionsBastionLifecycleStateFailed ListBastionsBastionLifecycleStateEnum = "FAILED" )
Set of constants representing the allowable values for ListBastionsBastionLifecycleStateEnum
func GetListBastionsBastionLifecycleStateEnumValues ¶
func GetListBastionsBastionLifecycleStateEnumValues() []ListBastionsBastionLifecycleStateEnum
GetListBastionsBastionLifecycleStateEnumValues Enumerates the set of values for ListBastionsBastionLifecycleStateEnum
type ListBastionsRequest ¶
type ListBastionsRequest struct { // The unique identifier (OCID) of the compartment in which to list resources. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A filter to return only resources their lifecycleState matches the given lifecycleState. BastionLifecycleState ListBastionsBastionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"bastionLifecycleState" omitEmpty:"true"` // The unique identifier (OCID) of the bastion in which to list resources. BastionId *string `mandatory:"false" contributesTo:"query" name:"bastionId"` // A filter to return only resources that match the entire name given. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either 'asc' or 'desc'. SortOrder ListBastionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default. SortBy ListBastionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListBastionsRequest wrapper for the ListBastions operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListBastions.go.html to see an example of how to use ListBastionsRequest.
func (ListBastionsRequest) BinaryRequestBody ¶
func (request ListBastionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListBastionsRequest) HTTPRequest ¶
func (request ListBastionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListBastionsRequest) RetryPolicy ¶
func (request ListBastionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListBastionsRequest) String ¶
func (request ListBastionsRequest) String() string
type ListBastionsResponse ¶
type ListBastionsResponse struct { // The underlying http response RawResponse *http.Response // A list of []BastionSummary instances Items []BastionSummary `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListBastionsResponse wrapper for the ListBastions operation
func (ListBastionsResponse) HTTPResponse ¶
func (response ListBastionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListBastionsResponse) String ¶
func (response ListBastionsResponse) String() string
type ListBastionsSortByEnum ¶
type ListBastionsSortByEnum string
ListBastionsSortByEnum Enum with underlying type: string
const ( ListBastionsSortByTimecreated ListBastionsSortByEnum = "timeCreated" ListBastionsSortByName ListBastionsSortByEnum = "name" )
Set of constants representing the allowable values for ListBastionsSortByEnum
func GetListBastionsSortByEnumValues ¶
func GetListBastionsSortByEnumValues() []ListBastionsSortByEnum
GetListBastionsSortByEnumValues Enumerates the set of values for ListBastionsSortByEnum
type ListBastionsSortOrderEnum ¶
type ListBastionsSortOrderEnum string
ListBastionsSortOrderEnum Enum with underlying type: string
const ( ListBastionsSortOrderAsc ListBastionsSortOrderEnum = "ASC" ListBastionsSortOrderDesc ListBastionsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListBastionsSortOrderEnum
func GetListBastionsSortOrderEnumValues ¶
func GetListBastionsSortOrderEnumValues() []ListBastionsSortOrderEnum
GetListBastionsSortOrderEnumValues Enumerates the set of values for ListBastionsSortOrderEnum
type ListSessionsRequest ¶
type ListSessionsRequest struct { // The unique identifier (OCID) of the bastion in which to list sessions. BastionId *string `mandatory:"true" contributesTo:"query" name:"bastionId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return only resources their lifecycleState matches the given lifecycleState. SessionLifecycleState ListSessionsSessionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"sessionLifecycleState" omitEmpty:"true"` // The unique identifier (OCID) of the session in which to list resources. SessionId *string `mandatory:"false" contributesTo:"query" name:"sessionId"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either 'asc' or 'desc'. SortOrder ListSessionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. SortBy ListSessionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListSessionsRequest wrapper for the ListSessions operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListSessions.go.html to see an example of how to use ListSessionsRequest.
func (ListSessionsRequest) BinaryRequestBody ¶
func (request ListSessionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListSessionsRequest) HTTPRequest ¶
func (request ListSessionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListSessionsRequest) RetryPolicy ¶
func (request ListSessionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListSessionsRequest) String ¶
func (request ListSessionsRequest) String() string
type ListSessionsResponse ¶
type ListSessionsResponse struct { // The underlying http response RawResponse *http.Response // A list of []SessionSummary instances Items []SessionSummary `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListSessionsResponse wrapper for the ListSessions operation
func (ListSessionsResponse) HTTPResponse ¶
func (response ListSessionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListSessionsResponse) String ¶
func (response ListSessionsResponse) String() string
type ListSessionsSessionLifecycleStateEnum ¶
type ListSessionsSessionLifecycleStateEnum string
ListSessionsSessionLifecycleStateEnum Enum with underlying type: string
const ( ListSessionsSessionLifecycleStateCreating ListSessionsSessionLifecycleStateEnum = "CREATING" ListSessionsSessionLifecycleStateActive ListSessionsSessionLifecycleStateEnum = "ACTIVE" ListSessionsSessionLifecycleStateDeleting ListSessionsSessionLifecycleStateEnum = "DELETING" ListSessionsSessionLifecycleStateDeleted ListSessionsSessionLifecycleStateEnum = "DELETED" ListSessionsSessionLifecycleStateFailed ListSessionsSessionLifecycleStateEnum = "FAILED" )
Set of constants representing the allowable values for ListSessionsSessionLifecycleStateEnum
func GetListSessionsSessionLifecycleStateEnumValues ¶
func GetListSessionsSessionLifecycleStateEnumValues() []ListSessionsSessionLifecycleStateEnum
GetListSessionsSessionLifecycleStateEnumValues Enumerates the set of values for ListSessionsSessionLifecycleStateEnum
type ListSessionsSortByEnum ¶
type ListSessionsSortByEnum string
ListSessionsSortByEnum Enum with underlying type: string
const ( ListSessionsSortByTimecreated ListSessionsSortByEnum = "timeCreated" ListSessionsSortByDisplayname ListSessionsSortByEnum = "displayName" )
Set of constants representing the allowable values for ListSessionsSortByEnum
func GetListSessionsSortByEnumValues ¶
func GetListSessionsSortByEnumValues() []ListSessionsSortByEnum
GetListSessionsSortByEnumValues Enumerates the set of values for ListSessionsSortByEnum
type ListSessionsSortOrderEnum ¶
type ListSessionsSortOrderEnum string
ListSessionsSortOrderEnum Enum with underlying type: string
const ( ListSessionsSortOrderAsc ListSessionsSortOrderEnum = "ASC" ListSessionsSortOrderDesc ListSessionsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListSessionsSortOrderEnum
func GetListSessionsSortOrderEnumValues ¶
func GetListSessionsSortOrderEnumValues() []ListSessionsSortOrderEnum
GetListSessionsSortOrderEnumValues Enumerates the set of values for ListSessionsSortOrderEnum
type ListWorkRequestErrorsRequest ¶
type ListWorkRequestErrorsRequest struct { // The unique identifier (OCID) of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest.
func (ListWorkRequestErrorsRequest) BinaryRequestBody ¶
func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListWorkRequestErrorsRequest) HTTPRequest ¶
func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestErrorsRequest) RetryPolicy ¶
func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestErrorsRequest) String ¶
func (request ListWorkRequestErrorsRequest) String() string
type ListWorkRequestErrorsResponse ¶
type ListWorkRequestErrorsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WorkRequestError instances Items []WorkRequestError `presentIn:"body"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation
func (ListWorkRequestErrorsResponse) HTTPResponse ¶
func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestErrorsResponse) String ¶
func (response ListWorkRequestErrorsResponse) String() string
type ListWorkRequestLogsRequest ¶
type ListWorkRequestLogsRequest struct { // The unique identifier (OCID) of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest.
func (ListWorkRequestLogsRequest) BinaryRequestBody ¶
func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListWorkRequestLogsRequest) HTTPRequest ¶
func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestLogsRequest) RetryPolicy ¶
func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestLogsRequest) String ¶
func (request ListWorkRequestLogsRequest) String() string
type ListWorkRequestLogsResponse ¶
type ListWorkRequestLogsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WorkRequestLogEntry instances Items []WorkRequestLogEntry `presentIn:"body"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation
func (ListWorkRequestLogsResponse) HTTPResponse ¶
func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestLogsResponse) String ¶
func (response ListWorkRequestLogsResponse) String() string
type ListWorkRequestsRequest ¶
type ListWorkRequestsRequest struct { // The unique identifier (OCID) of the compartment in which to list resources. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListWorkRequestsRequest wrapper for the ListWorkRequests operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest.
func (ListWorkRequestsRequest) BinaryRequestBody ¶
func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListWorkRequestsRequest) HTTPRequest ¶
func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestsRequest) RetryPolicy ¶
func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestsRequest) String ¶
func (request ListWorkRequestsRequest) String() string
type ListWorkRequestsResponse ¶
type ListWorkRequestsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WorkRequestSummary instances Items []WorkRequestSummary `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListWorkRequestsResponse wrapper for the ListWorkRequests operation
func (ListWorkRequestsResponse) HTTPResponse ¶
func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestsResponse) String ¶
func (response ListWorkRequestsResponse) String() string
type ManagedSshSessionTargetResourceDetails ¶
type ManagedSshSessionTargetResourceDetails struct { // The port number to connect to on the target resource. TargetResourcePort *int `mandatory:"true" json:"targetResourcePort"` // The name of the user on the target resource operating system that the session uses for the connection. TargetResourceOperatingSystemUserName *string `mandatory:"true" json:"targetResourceOperatingSystemUserName"` // The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to. TargetResourceId *string `mandatory:"true" json:"targetResourceId"` // The display name of the target Compute instance that the session connects to. TargetResourceDisplayName *string `mandatory:"true" json:"targetResourceDisplayName"` // The private IP address of the target resource that the session connects to. TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"` }
ManagedSshSessionTargetResourceDetails Details about a managed SSH session for a target resource.
func (ManagedSshSessionTargetResourceDetails) GetTargetResourcePort ¶
func (m ManagedSshSessionTargetResourceDetails) GetTargetResourcePort() *int
GetTargetResourcePort returns TargetResourcePort
func (ManagedSshSessionTargetResourceDetails) MarshalJSON ¶
func (m ManagedSshSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (ManagedSshSessionTargetResourceDetails) String ¶
func (m ManagedSshSessionTargetResourceDetails) String() string
type OperationStatusEnum ¶
type OperationStatusEnum string
OperationStatusEnum Enum with underlying type: string
const ( OperationStatusAccepted OperationStatusEnum = "ACCEPTED" OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS" OperationStatusFailed OperationStatusEnum = "FAILED" OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED" OperationStatusCanceling OperationStatusEnum = "CANCELING" OperationStatusCanceled OperationStatusEnum = "CANCELED" )
Set of constants representing the allowable values for OperationStatusEnum
func GetOperationStatusEnumValues ¶
func GetOperationStatusEnumValues() []OperationStatusEnum
GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum
type OperationTypeEnum ¶
type OperationTypeEnum string
OperationTypeEnum Enum with underlying type: string
const ( OperationTypeCreateBastion OperationTypeEnum = "CREATE_BASTION" OperationTypeUpdateBastion OperationTypeEnum = "UPDATE_BASTION" OperationTypeDeleteBastion OperationTypeEnum = "DELETE_BASTION" OperationTypeCreateSession OperationTypeEnum = "CREATE_SESSION" OperationTypeDeleteSession OperationTypeEnum = "DELETE_SESSION" )
Set of constants representing the allowable values for OperationTypeEnum
func GetOperationTypeEnumValues ¶
func GetOperationTypeEnumValues() []OperationTypeEnum
GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum
type PortForwardingSessionTargetResourceDetails ¶
type PortForwardingSessionTargetResourceDetails struct { // The port number to connect to on the target resource. TargetResourcePort *int `mandatory:"true" json:"targetResourcePort"` // The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to. TargetResourceId *string `mandatory:"false" json:"targetResourceId"` // The private IP address of the target resource that the session connects to. TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"` // The display name of the target Compute instance that the session connects to. TargetResourceDisplayName *string `mandatory:"false" json:"targetResourceDisplayName"` }
PortForwardingSessionTargetResourceDetails Details about a port forwarding session for a target resource.
func (PortForwardingSessionTargetResourceDetails) GetTargetResourcePort ¶
func (m PortForwardingSessionTargetResourceDetails) GetTargetResourcePort() *int
GetTargetResourcePort returns TargetResourcePort
func (PortForwardingSessionTargetResourceDetails) MarshalJSON ¶
func (m PortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (PortForwardingSessionTargetResourceDetails) String ¶
func (m PortForwardingSessionTargetResourceDetails) String() string
type PublicKeyDetails ¶
type PublicKeyDetails struct { // The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair. PublicKeyContent *string `mandatory:"true" json:"publicKeyContent"` }
PublicKeyDetails Public key details for a bastion session.
func (PublicKeyDetails) String ¶
func (m PublicKeyDetails) String() string
type Session ¶
type Session struct { // The unique identifier (OCID) of the session, which can't be changed after creation. Id *string `mandatory:"true" json:"id"` // The unique identifier (OCID) of the bastion that is hosting this session. BastionId *string `mandatory:"true" json:"bastionId"` // The name of the bastion that is hosting this session. BastionName *string `mandatory:"true" json:"bastionName"` TargetResourceDetails TargetResourceDetails `mandatory:"true" json:"targetResourceDetails"` KeyDetails *PublicKeyDetails `mandatory:"true" json:"keyDetails"` // The time the session was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The current state of the session. LifecycleState SessionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The amount of time the session can remain active. SessionTtlInSeconds *int `mandatory:"true" json:"sessionTtlInSeconds"` // The name of the session. DisplayName *string `mandatory:"false" json:"displayName"` // The username that the session uses to connect to the target resource. BastionUserName *string `mandatory:"false" json:"bastionUserName"` // The connection message for the session. SshMetadata map[string]string `mandatory:"false" json:"sshMetadata"` // The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format. KeyType SessionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` // The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion. BastionPublicHostKeyInfo *string `mandatory:"false" json:"bastionPublicHostKeyInfo"` // The time the session was updated. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // A message describing the current session state in more detail. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` }
Session A bastion session resource. A bastion session lets authorized users connect to a target resource using a Secure Shell (SSH) for a predetermined amount of time.
func (*Session) UnmarshalJSON ¶
UnmarshalJSON unmarshals from json
type SessionKeyTypeEnum ¶
type SessionKeyTypeEnum string
SessionKeyTypeEnum Enum with underlying type: string
const (
SessionKeyTypePub SessionKeyTypeEnum = "PUB"
)
Set of constants representing the allowable values for SessionKeyTypeEnum
func GetSessionKeyTypeEnumValues ¶
func GetSessionKeyTypeEnumValues() []SessionKeyTypeEnum
GetSessionKeyTypeEnumValues Enumerates the set of values for SessionKeyTypeEnum
type SessionLifecycleStateEnum ¶
type SessionLifecycleStateEnum string
SessionLifecycleStateEnum Enum with underlying type: string
const ( SessionLifecycleStateCreating SessionLifecycleStateEnum = "CREATING" SessionLifecycleStateActive SessionLifecycleStateEnum = "ACTIVE" SessionLifecycleStateDeleting SessionLifecycleStateEnum = "DELETING" SessionLifecycleStateDeleted SessionLifecycleStateEnum = "DELETED" SessionLifecycleStateFailed SessionLifecycleStateEnum = "FAILED" )
Set of constants representing the allowable values for SessionLifecycleStateEnum
func GetSessionLifecycleStateEnumValues ¶
func GetSessionLifecycleStateEnumValues() []SessionLifecycleStateEnum
GetSessionLifecycleStateEnumValues Enumerates the set of values for SessionLifecycleStateEnum
type SessionSummary ¶
type SessionSummary struct { // The unique identifier (OCID) of the session, which can't be changed after creation. Id *string `mandatory:"true" json:"id"` // The name of the bastion that is hosting this session. BastionName *string `mandatory:"true" json:"bastionName"` // The unique identifier (OCID) of the bastion that is hosting this session. BastionId *string `mandatory:"true" json:"bastionId"` TargetResourceDetails TargetResourceDetails `mandatory:"true" json:"targetResourceDetails"` // The time the session was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The current state of the session. LifecycleState SessionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The amount of time the session can remain active. SessionTtlInSeconds *int `mandatory:"true" json:"sessionTtlInSeconds"` // The name of the session. DisplayName *string `mandatory:"false" json:"displayName"` // The time the session was updated. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2020-01-25T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // A message describing the current session state in more detail. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` }
SessionSummary Summary information for a bastion session resource.
func (SessionSummary) String ¶
func (m SessionSummary) String() string
func (*SessionSummary) UnmarshalJSON ¶
func (m *SessionSummary) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
type SessionTypeEnum ¶
type SessionTypeEnum string
SessionTypeEnum Enum with underlying type: string
const ( SessionTypeManagedSsh SessionTypeEnum = "MANAGED_SSH" SessionTypePortForwarding SessionTypeEnum = "PORT_FORWARDING" )
Set of constants representing the allowable values for SessionTypeEnum
func GetSessionTypeEnumValues ¶
func GetSessionTypeEnumValues() []SessionTypeEnum
GetSessionTypeEnumValues Enumerates the set of values for SessionTypeEnum
type SortOrderEnum ¶
type SortOrderEnum string
SortOrderEnum Enum with underlying type: string
const ( SortOrderAsc SortOrderEnum = "ASC" SortOrderDesc SortOrderEnum = "DESC" )
Set of constants representing the allowable values for SortOrderEnum
func GetSortOrderEnumValues ¶
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
type TargetResourceDetails ¶
type TargetResourceDetails interface { // The port number to connect to on the target resource. GetTargetResourcePort() *int }
TargetResourceDetails Details about a bastion session's target resource.
type UpdateBastionDetails ¶
type UpdateBastionDetails struct { // The maximum amount of time that any session on the bastion can remain active. MaxSessionTtlInSeconds *int `mandatory:"false" json:"maxSessionTtlInSeconds"` // A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions. StaticJumpHostIpAddresses []string `mandatory:"false" json:"staticJumpHostIpAddresses"` // A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion. ClientCidrBlockAllowList []string `mandatory:"false" json:"clientCidrBlockAllowList"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
UpdateBastionDetails The configuration to update on an existing bastion.
func (UpdateBastionDetails) String ¶
func (m UpdateBastionDetails) String() string
type UpdateBastionRequest ¶
type UpdateBastionRequest struct { // The unique identifier (OCID) of the bastion. BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"` // The bastion information to be updated. UpdateBastionDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
UpdateBastionRequest wrapper for the UpdateBastion operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/UpdateBastion.go.html to see an example of how to use UpdateBastionRequest.
func (UpdateBastionRequest) BinaryRequestBody ¶
func (request UpdateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (UpdateBastionRequest) HTTPRequest ¶
func (request UpdateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateBastionRequest) RetryPolicy ¶
func (request UpdateBastionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateBastionRequest) String ¶
func (request UpdateBastionRequest) String() string
type UpdateBastionResponse ¶
type UpdateBastionResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
UpdateBastionResponse wrapper for the UpdateBastion operation
func (UpdateBastionResponse) HTTPResponse ¶
func (response UpdateBastionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateBastionResponse) String ¶
func (response UpdateBastionResponse) String() string
type UpdateSessionDetails ¶
type UpdateSessionDetails struct { // The name of the session. DisplayName *string `mandatory:"false" json:"displayName"` }
UpdateSessionDetails The session information to be updated.
func (UpdateSessionDetails) String ¶
func (m UpdateSessionDetails) String() string
type UpdateSessionRequest ¶
type UpdateSessionRequest struct { // The unique identifier (OCID) of the session. SessionId *string `mandatory:"true" contributesTo:"path" name:"sessionId"` // The session information to be updated. UpdateSessionDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
UpdateSessionRequest wrapper for the UpdateSession operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/bastion/UpdateSession.go.html to see an example of how to use UpdateSessionRequest.
func (UpdateSessionRequest) BinaryRequestBody ¶
func (request UpdateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (UpdateSessionRequest) HTTPRequest ¶
func (request UpdateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateSessionRequest) RetryPolicy ¶
func (request UpdateSessionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateSessionRequest) String ¶
func (request UpdateSessionRequest) String() string
type UpdateSessionResponse ¶
type UpdateSessionResponse struct { // The underlying http response RawResponse *http.Response // The Session instance Session `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
UpdateSessionResponse wrapper for the UpdateSession operation
func (UpdateSessionResponse) HTTPResponse ¶
func (response UpdateSessionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateSessionResponse) String ¶
func (response UpdateSessionResponse) String() string
type WorkRequest ¶
type WorkRequest struct { // Type of the work request. OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` // Status of current work request. Status OperationStatusEnum `mandatory:"true" json:"status"` // The unique identifier (OCID) of the work request. Id *string `mandatory:"true" json:"id"` // The ocid of the compartment that contains the work request. Work requests should be scoped to // the same compartment as the resource the work request affects. If the work request affects multiple resources, // and those resources are not in the same compartment, it is up to the service team to pick the primary // resource whose compartment should be used CompartmentId *string `mandatory:"true" json:"compartmentId"` // The resources affected by this work request. Resources []WorkRequestResource `mandatory:"true" json:"resources"` // Percentage of the request completed. PercentComplete *float32 `mandatory:"true" json:"percentComplete"` // The date and time the request was created, as described in // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), // section 14.29. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` }
WorkRequest A description of workrequest status.
func (WorkRequest) String ¶
func (m WorkRequest) String() string
type WorkRequestError ¶
type WorkRequestError struct { // A machine-usable code for the error that occurred. Error codes are listed on // (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) Code *string `mandatory:"true" json:"code"` // A human readable description of the issue encountered. Message *string `mandatory:"true" json:"message"` // The time the error occurred. An RFC3339 formatted datetime string. Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` }
WorkRequestError An error encountered while executing a work request.
func (WorkRequestError) String ¶
func (m WorkRequestError) String() string
type WorkRequestLogEntry ¶
type WorkRequestLogEntry struct { // Human-readable log message. Message *string `mandatory:"true" json:"message"` // The time the log message was written. An RFC3339 formatted datetime string. Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` }
WorkRequestLogEntry A log message from the execution of a work request.
func (WorkRequestLogEntry) String ¶
func (m WorkRequestLogEntry) String() string
type WorkRequestResource ¶
type WorkRequestResource struct { // The resource type the work request affects. EntityType *string `mandatory:"true" json:"entityType"` // The way in which this resource is affected by the work tracked in the work request. // A resource being created, updated, or deleted will remain in the IN_PROGRESS state until // work is complete for that resource at which point it will transition to CREATED, UPDATED, // or DELETED, respectively. ActionType ActionTypeEnum `mandatory:"true" json:"actionType"` // The unique identifier (OCID) of the resource that the work request affects. Identifier *string `mandatory:"true" json:"identifier"` // The URI path that the user can do a GET on to access the resource metadata. EntityUri *string `mandatory:"false" json:"entityUri"` }
WorkRequestResource A resource created or operated on by a work request.
func (WorkRequestResource) String ¶
func (m WorkRequestResource) String() string
type WorkRequestSummary ¶
type WorkRequestSummary struct { // Type of the work request. OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` // Status of current work request. Status OperationStatusEnum `mandatory:"true" json:"status"` // The unique identifier (OCID) of the work request. Id *string `mandatory:"true" json:"id"` // The ocid of the compartment that contains the work request. Work requests should be scoped to // the same compartment as the resource the work request affects. If the work request affects multiple resources, // and those resources are not in the same compartment, it is up to the service team to pick the primary // resource whose compartment should be used CompartmentId *string `mandatory:"true" json:"compartmentId"` // The resources affected by this work request. Resources []WorkRequestResource `mandatory:"true" json:"resources"` // Percentage of the request completed. PercentComplete *float32 `mandatory:"true" json:"percentComplete"` // The date and time the request was created, as described in // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), // section 14.29. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` }
WorkRequestSummary A description of workrequest status.
func (WorkRequestSummary) String ¶
func (m WorkRequestSummary) String() string
Source Files ¶
- action_type.go
- bastion.go
- bastion_client.go
- bastion_lifecycle_state.go
- bastion_summary.go
- change_bastion_compartment_details.go
- change_bastion_compartment_request_response.go
- create_bastion_details.go
- create_bastion_request_response.go
- create_managed_ssh_session_target_resource_details.go
- create_port_forwarding_session_target_resource_details.go
- create_session_details.go
- create_session_request_response.go
- create_session_target_resource_details.go
- delete_bastion_request_response.go
- delete_session_request_response.go
- get_bastion_request_response.go
- get_session_request_response.go
- get_work_request_request_response.go
- list_bastions_request_response.go
- list_sessions_request_response.go
- list_work_request_errors_request_response.go
- list_work_request_logs_request_response.go
- list_work_requests_request_response.go
- managed_ssh_session_target_resource_details.go
- operation_status.go
- operation_type.go
- port_forwarding_session_target_resource_details.go
- public_key_details.go
- session.go
- session_lifecycle_state.go
- session_summary.go
- session_type.go
- sort_order.go
- target_resource_details.go
- update_bastion_details.go
- update_bastion_request_response.go
- update_session_details.go
- update_session_request_response.go
- work_request.go
- work_request_error.go
- work_request_log_entry.go
- work_request_resource.go
- work_request_summary.go