CaBundle The contents of the CA bundle (root and intermediate certificates), properties of the CA bundle, and user-provided contextual metadata for the CA bundle.
type CaBundle struct { // The OCID of the CA bundle. Id *string `mandatory:"true" json:"id"` // A user-friendly name for the CA bundle. Names are unique within a compartment. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods. Name *string `mandatory:"true" json:"name"` // Certificates (in PEM format) in the CA bundle. Can be of arbitrary length. CaBundlePem *string `mandatory:"true" json:"caBundlePem"` }
func (m CaBundle) String() string
CertificateAuthorityBundle The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate.
type CertificateAuthorityBundle struct { // The OCID of the certificate authority (CA). CertificateAuthorityId *string `mandatory:"true" json:"certificateAuthorityId"` // The name of the CA. CertificateAuthorityName *string `mandatory:"true" json:"certificateAuthorityName"` // A unique certificate identifier used in certificate revocation tracking, formatted as octets. // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` SerialNumber *string `mandatory:"true" json:"serialNumber"` // The certificate (in PEM format) for this CA version. CertificatePem *string `mandatory:"true" json:"certificatePem"` // A property indicating when the CA was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The version number of the CA. VersionNumber *int64 `mandatory:"true" json:"versionNumber"` Validity *Validity `mandatory:"true" json:"validity"` // A list of rotation states for this CA. Stages []VersionStageEnum `mandatory:"true" json:"stages"` // The certificate chain (in PEM format) for this CA version. CertChainPem *string `mandatory:"false" json:"certChainPem"` // The name of the CA. VersionName *string `mandatory:"false" json:"versionName"` RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` }
func (m CertificateAuthorityBundle) String() string
CertificateAuthorityBundleVersionCollection The results of a certificate authority (CA) version search. Results contain CA version summary objects and other data.
type CertificateAuthorityBundleVersionCollection struct { // A list of CA version summary objects. Items []CertificateAuthorityBundleVersionSummary `mandatory:"true" json:"items"` }
func (m CertificateAuthorityBundleVersionCollection) String() string
CertificateAuthorityBundleVersionSummary The properties of a version of a bundle for a certificate authority (CA). Certificate authority bundle version summary objects do not include the actual contents of the certificate.
type CertificateAuthorityBundleVersionSummary struct { // The OCID of the certificate authority (CA). CertificateAuthorityId *string `mandatory:"true" json:"certificateAuthorityId"` // An optional property indicating when the CA version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The version number of the CA. VersionNumber *int64 `mandatory:"true" json:"versionNumber"` // The name of the CA. CertificateAuthorityName *string `mandatory:"true" json:"certificateAuthorityName"` // A list of rotation states for this CA version. Stages []VersionStageEnum `mandatory:"true" json:"stages"` // A unique certificate identifier used in certificate revocation tracking, formatted as octets. // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` SerialNumber *string `mandatory:"false" json:"serialNumber"` // The name of the CA version. When this value is not null, the name is unique across CA versions for a given CA. VersionName *string `mandatory:"false" json:"versionName"` // An optional property indicating when to delete the CA version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` Validity *Validity `mandatory:"false" json:"validity"` RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` }
func (m CertificateAuthorityBundleVersionSummary) String() string
CertificateBundle The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate.
type CertificateBundle interface { // The OCID of the certificate. GetCertificateId() *string // The name of the certificate. GetCertificateName() *string // The version number of the certificate. GetVersionNumber() *int64 // A unique certificate identifier used in certificate revocation tracking, formatted as octets. // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` GetSerialNumber() *string // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` GetTimeCreated() *common.SDKTime GetValidity() *Validity // A list of rotation states for the certificate bundle. GetStages() []VersionStageEnum // The certificate in PEM format. GetCertificatePem() *string // The certificate chain (in PEM format) for the certificate bundle. GetCertChainPem() *string // The name of the certificate version. GetVersionName() *string GetRevocationStatus() *RevocationStatus }
CertificateBundleCertificateBundleTypeEnum Enum with underlying type: string
type CertificateBundleCertificateBundleTypeEnum string
Set of constants representing the allowable values for CertificateBundleCertificateBundleTypeEnum
const ( CertificateBundleCertificateBundleTypePublicOnly CertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_PUBLIC_ONLY" CertificateBundleCertificateBundleTypeWithPrivateKey CertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY" )
func GetCertificateBundleCertificateBundleTypeEnumValues() []CertificateBundleCertificateBundleTypeEnum
GetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for CertificateBundleCertificateBundleTypeEnum
CertificateBundlePublicOnly A certificate bundle, not including the private key.
type CertificateBundlePublicOnly struct { // The OCID of the certificate. CertificateId *string `mandatory:"true" json:"certificateId"` // The name of the certificate. CertificateName *string `mandatory:"true" json:"certificateName"` // The version number of the certificate. VersionNumber *int64 `mandatory:"true" json:"versionNumber"` // A unique certificate identifier used in certificate revocation tracking, formatted as octets. // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` SerialNumber *string `mandatory:"true" json:"serialNumber"` // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` Validity *Validity `mandatory:"true" json:"validity"` // The certificate in PEM format. CertificatePem *string `mandatory:"false" json:"certificatePem"` // The certificate chain (in PEM format) for the certificate bundle. CertChainPem *string `mandatory:"false" json:"certChainPem"` // The name of the certificate version. VersionName *string `mandatory:"false" json:"versionName"` RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` // A list of rotation states for the certificate bundle. Stages []VersionStageEnum `mandatory:"true" json:"stages"` }
func (m CertificateBundlePublicOnly) GetCertChainPem() *string
GetCertChainPem returns CertChainPem
func (m CertificateBundlePublicOnly) GetCertificateId() *string
GetCertificateId returns CertificateId
func (m CertificateBundlePublicOnly) GetCertificateName() *string
GetCertificateName returns CertificateName
func (m CertificateBundlePublicOnly) GetCertificatePem() *string
GetCertificatePem returns CertificatePem
func (m CertificateBundlePublicOnly) GetRevocationStatus() *RevocationStatus
GetRevocationStatus returns RevocationStatus
func (m CertificateBundlePublicOnly) GetSerialNumber() *string
GetSerialNumber returns SerialNumber
func (m CertificateBundlePublicOnly) GetStages() []VersionStageEnum
GetStages returns Stages
func (m CertificateBundlePublicOnly) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m CertificateBundlePublicOnly) GetValidity() *Validity
GetValidity returns Validity
func (m CertificateBundlePublicOnly) GetVersionName() *string
GetVersionName returns VersionName
func (m CertificateBundlePublicOnly) GetVersionNumber() *int64
GetVersionNumber returns VersionNumber
func (m CertificateBundlePublicOnly) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CertificateBundlePublicOnly) String() string
CertificateBundleVersionCollection The results of a certificate bundle versions search. Results contain certificate bundle version summary objects.
type CertificateBundleVersionCollection struct { // A list of certificate bundle version summary objects. Items []CertificateBundleVersionSummary `mandatory:"true" json:"items"` }
func (m CertificateBundleVersionCollection) String() string
CertificateBundleVersionSummary The properties of the certificate bundle. Certificate bundle version summary objects do not include the actual contents of the certificate.
type CertificateBundleVersionSummary struct { // The OCID of the certificate. CertificateId *string `mandatory:"true" json:"certificateId"` // The name of the certificate. CertificateName *string `mandatory:"true" json:"certificateName"` // The version number of the certificate. VersionNumber *int64 `mandatory:"true" json:"versionNumber"` // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // A list of rotation states for this certificate bundle version. Stages []VersionStageEnum `mandatory:"true" json:"stages"` // A unique certificate identifier used in certificate revocation tracking, formatted as octets. // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` SerialNumber *string `mandatory:"false" json:"serialNumber"` // The name of the certificate version. VersionName *string `mandatory:"false" json:"versionName"` Validity *Validity `mandatory:"false" json:"validity"` // An optional property indicating when to delete the certificate version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` }
func (m CertificateBundleVersionSummary) String() string
CertificateBundleWithPrivateKey A certificate bundle, including the private key.
type CertificateBundleWithPrivateKey struct { // The OCID of the certificate. CertificateId *string `mandatory:"true" json:"certificateId"` // The name of the certificate. CertificateName *string `mandatory:"true" json:"certificateName"` // The version number of the certificate. VersionNumber *int64 `mandatory:"true" json:"versionNumber"` // A unique certificate identifier used in certificate revocation tracking, formatted as octets. // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` SerialNumber *string `mandatory:"true" json:"serialNumber"` // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` Validity *Validity `mandatory:"true" json:"validity"` // The private key (in PEM format) for the certificate. PrivateKeyPem *string `mandatory:"true" json:"privateKeyPem"` // The certificate in PEM format. CertificatePem *string `mandatory:"false" json:"certificatePem"` // The certificate chain (in PEM format) for the certificate bundle. CertChainPem *string `mandatory:"false" json:"certChainPem"` // The name of the certificate version. VersionName *string `mandatory:"false" json:"versionName"` RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` // An optional passphrase for the private key. PrivateKeyPemPassphrase *string `mandatory:"false" json:"privateKeyPemPassphrase"` // A list of rotation states for the certificate bundle. Stages []VersionStageEnum `mandatory:"true" json:"stages"` }
func (m CertificateBundleWithPrivateKey) GetCertChainPem() *string
GetCertChainPem returns CertChainPem
func (m CertificateBundleWithPrivateKey) GetCertificateId() *string
GetCertificateId returns CertificateId
func (m CertificateBundleWithPrivateKey) GetCertificateName() *string
GetCertificateName returns CertificateName
func (m CertificateBundleWithPrivateKey) GetCertificatePem() *string
GetCertificatePem returns CertificatePem
func (m CertificateBundleWithPrivateKey) GetRevocationStatus() *RevocationStatus
GetRevocationStatus returns RevocationStatus
func (m CertificateBundleWithPrivateKey) GetSerialNumber() *string
GetSerialNumber returns SerialNumber
func (m CertificateBundleWithPrivateKey) GetStages() []VersionStageEnum
GetStages returns Stages
func (m CertificateBundleWithPrivateKey) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m CertificateBundleWithPrivateKey) GetValidity() *Validity
GetValidity returns Validity
func (m CertificateBundleWithPrivateKey) GetVersionName() *string
GetVersionName returns VersionName
func (m CertificateBundleWithPrivateKey) GetVersionNumber() *int64
GetVersionNumber returns VersionNumber
func (m CertificateBundleWithPrivateKey) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CertificateBundleWithPrivateKey) String() string
CertificatesClient a client for Certificates
type CertificatesClient struct { common.BaseClient // contains filtered or unexported fields }
func NewCertificatesClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CertificatesClient, err error)
NewCertificatesClientWithConfigurationProvider Creates a new default Certificates client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewCertificatesClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CertificatesClient, err error)
NewCertificatesClientWithOboToken Creates a new default Certificates 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 (client *CertificatesClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client CertificatesClient) GetCaBundle(ctx context.Context, request GetCaBundleRequest) (response GetCaBundleResponse, err error)
GetCaBundle Gets a ca-bundle bundle.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/GetCaBundle.go.html to see an example of how to use GetCaBundle API.
func (client CertificatesClient) GetCertificateAuthorityBundle(ctx context.Context, request GetCertificateAuthorityBundleRequest) (response GetCertificateAuthorityBundleResponse, err error)
GetCertificateAuthorityBundle Gets a certificate authority bundle that matches either the specified `stage`, `name`, or `versionNumber` parameter. If none of these parameters are provided, the bundle for the certificate authority version marked as `CURRENT` will be returned.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/GetCertificateAuthorityBundle.go.html to see an example of how to use GetCertificateAuthorityBundle API.
func (client CertificatesClient) GetCertificateBundle(ctx context.Context, request GetCertificateBundleRequest) (response GetCertificateBundleResponse, err error)
GetCertificateBundle Gets a certificate bundle that matches either the specified `stage`, `versionName`, or `versionNumber` parameter. If none of these parameters are provided, the bundle for the certificate version marked as `CURRENT` will be returned. By default, the private key is not included in the query result, and a CertificateBundlePublicOnly is returned. If the private key is needed, use the CertificateBundleTypeQueryParam parameter to get a CertificateBundleWithPrivateKey response.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/GetCertificateBundle.go.html to see an example of how to use GetCertificateBundle API.
func (client CertificatesClient) ListCertificateAuthorityBundleVersions(ctx context.Context, request ListCertificateAuthorityBundleVersionsRequest) (response ListCertificateAuthorityBundleVersionsResponse, err error)
ListCertificateAuthorityBundleVersions Lists all certificate authority bundle versions for the specified certificate authority.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/ListCertificateAuthorityBundleVersions.go.html to see an example of how to use ListCertificateAuthorityBundleVersions API.
func (client CertificatesClient) ListCertificateBundleVersions(ctx context.Context, request ListCertificateBundleVersionsRequest) (response ListCertificateBundleVersionsResponse, err error)
ListCertificateBundleVersions Lists all certificate bundle versions for the specified certificate.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/ListCertificateBundleVersions.go.html to see an example of how to use ListCertificateBundleVersions API.
func (client *CertificatesClient) SetRegion(region string)
SetRegion overrides the region of this client.
GetCaBundleRequest wrapper for the GetCaBundle operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/GetCaBundle.go.html to see an example of how to use GetCaBundleRequest.
type GetCaBundleRequest struct { // The OCID of the CA bundle. CaBundleId *string `mandatory:"true" contributesTo:"path" name:"caBundleId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // please provide the request ID. 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 }
func (request GetCaBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCaBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCaBundleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCaBundleRequest) String() string
GetCaBundleResponse wrapper for the GetCaBundle operation
type GetCaBundleResponse struct { // The underlying http response RawResponse *http.Response // The CaBundle instance CaBundle `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"` }
func (response GetCaBundleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCaBundleResponse) String() string
GetCertificateAuthorityBundleRequest wrapper for the GetCertificateAuthorityBundle operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/GetCertificateAuthorityBundle.go.html to see an example of how to use GetCertificateAuthorityBundleRequest.
type GetCertificateAuthorityBundleRequest struct { // The OCID of the certificate authority (CA). CertificateAuthorityId *string `mandatory:"true" contributesTo:"path" name:"certificateAuthorityId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The version number of the certificate authority (CA). VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"` // The name of the certificate authority (CA). (This might be referred to as the name of the CA version, as every CA consists of at least one version.) Names are unique across versions of a given CA. CertificateAuthorityVersionName *string `mandatory:"false" contributesTo:"query" name:"certificateAuthorityVersionName"` // The rotation state of the certificate version. Stage GetCertificateAuthorityBundleStageEnum `mandatory:"false" contributesTo:"query" name:"stage" 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 }
func (request GetCertificateAuthorityBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCertificateAuthorityBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCertificateAuthorityBundleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCertificateAuthorityBundleRequest) String() string
GetCertificateAuthorityBundleResponse wrapper for the GetCertificateAuthorityBundle operation
type GetCertificateAuthorityBundleResponse struct { // The underlying http response RawResponse *http.Response // The CertificateAuthorityBundle instance CertificateAuthorityBundle `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"` }
func (response GetCertificateAuthorityBundleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCertificateAuthorityBundleResponse) String() string
GetCertificateAuthorityBundleStageEnum Enum with underlying type: string
type GetCertificateAuthorityBundleStageEnum string
Set of constants representing the allowable values for GetCertificateAuthorityBundleStageEnum
const ( GetCertificateAuthorityBundleStageCurrent GetCertificateAuthorityBundleStageEnum = "CURRENT" GetCertificateAuthorityBundleStagePending GetCertificateAuthorityBundleStageEnum = "PENDING" GetCertificateAuthorityBundleStageLatest GetCertificateAuthorityBundleStageEnum = "LATEST" GetCertificateAuthorityBundleStagePrevious GetCertificateAuthorityBundleStageEnum = "PREVIOUS" GetCertificateAuthorityBundleStageDeprecated GetCertificateAuthorityBundleStageEnum = "DEPRECATED" )
func GetGetCertificateAuthorityBundleStageEnumValues() []GetCertificateAuthorityBundleStageEnum
GetGetCertificateAuthorityBundleStageEnumValues Enumerates the set of values for GetCertificateAuthorityBundleStageEnum
GetCertificateBundleCertificateBundleTypeEnum Enum with underlying type: string
type GetCertificateBundleCertificateBundleTypeEnum string
Set of constants representing the allowable values for GetCertificateBundleCertificateBundleTypeEnum
const ( GetCertificateBundleCertificateBundleTypePublicOnly GetCertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_PUBLIC_ONLY" GetCertificateBundleCertificateBundleTypeWithPrivateKey GetCertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY" )
func GetGetCertificateBundleCertificateBundleTypeEnumValues() []GetCertificateBundleCertificateBundleTypeEnum
GetGetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for GetCertificateBundleCertificateBundleTypeEnum
GetCertificateBundleRequest wrapper for the GetCertificateBundle operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/GetCertificateBundle.go.html to see an example of how to use GetCertificateBundleRequest.
type GetCertificateBundleRequest struct { // The OCID of the certificate. CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The version number of the certificate. The default value is 0, which means that this query parameter is ignored. VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"` // The name of the certificate. (This might be referred to as the name of the certificate version, as every certificate consists of at least one version.) Names are unique across versions of a given certificate. CertificateVersionName *string `mandatory:"false" contributesTo:"query" name:"certificateVersionName"` // The rotation state of the certificate version. Stage GetCertificateBundleStageEnum `mandatory:"false" contributesTo:"query" name:"stage" omitEmpty:"true"` // The type of certificate bundle. By default, the private key fields are not returned. When querying for certificate bundles, to return results with certificate contents, the private key in PEM format, and the private key passphrase, specify the value of this parameter as `CERTIFICATE_CONTENT_WITH_PRIVATE_KEY`. CertificateBundleType GetCertificateBundleCertificateBundleTypeEnum `mandatory:"false" contributesTo:"query" name:"certificateBundleType" 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 }
func (request GetCertificateBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCertificateBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCertificateBundleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCertificateBundleRequest) String() string
GetCertificateBundleResponse wrapper for the GetCertificateBundle operation
type GetCertificateBundleResponse struct { // The underlying http response RawResponse *http.Response // The CertificateBundle instance CertificateBundle `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"` }
func (response GetCertificateBundleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCertificateBundleResponse) String() string
GetCertificateBundleStageEnum Enum with underlying type: string
type GetCertificateBundleStageEnum string
Set of constants representing the allowable values for GetCertificateBundleStageEnum
const ( GetCertificateBundleStageCurrent GetCertificateBundleStageEnum = "CURRENT" GetCertificateBundleStagePending GetCertificateBundleStageEnum = "PENDING" GetCertificateBundleStageLatest GetCertificateBundleStageEnum = "LATEST" GetCertificateBundleStagePrevious GetCertificateBundleStageEnum = "PREVIOUS" GetCertificateBundleStageDeprecated GetCertificateBundleStageEnum = "DEPRECATED" )
func GetGetCertificateBundleStageEnumValues() []GetCertificateBundleStageEnum
GetGetCertificateBundleStageEnumValues Enumerates the set of values for GetCertificateBundleStageEnum
ListCertificateAuthorityBundleVersionsRequest wrapper for the ListCertificateAuthorityBundleVersions operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/ListCertificateAuthorityBundleVersions.go.html to see an example of how to use ListCertificateAuthorityBundleVersionsRequest.
type ListCertificateAuthorityBundleVersionsRequest struct { // The OCID of the certificate authority (CA). CertificateAuthorityId *string `mandatory:"true" contributesTo:"path" name:"certificateAuthorityId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The field to sort by. You can specify only one sort order. The default // order for `VERSION_NUMBER` is ascending. SortBy ListCertificateAuthorityBundleVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder ListCertificateAuthorityBundleVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" 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 }
func (request ListCertificateAuthorityBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCertificateAuthorityBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCertificateAuthorityBundleVersionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCertificateAuthorityBundleVersionsRequest) String() string
ListCertificateAuthorityBundleVersionsResponse wrapper for the ListCertificateAuthorityBundleVersions operation
type ListCertificateAuthorityBundleVersionsResponse struct { // The underlying http response RawResponse *http.Response // The CertificateAuthorityBundleVersionCollection instance CertificateAuthorityBundleVersionCollection `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"` }
func (response ListCertificateAuthorityBundleVersionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCertificateAuthorityBundleVersionsResponse) String() string
ListCertificateAuthorityBundleVersionsSortByEnum Enum with underlying type: string
type ListCertificateAuthorityBundleVersionsSortByEnum string
Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortByEnum
const ( ListCertificateAuthorityBundleVersionsSortByVersionNumber ListCertificateAuthorityBundleVersionsSortByEnum = "VERSION_NUMBER" )
func GetListCertificateAuthorityBundleVersionsSortByEnumValues() []ListCertificateAuthorityBundleVersionsSortByEnum
GetListCertificateAuthorityBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortByEnum
ListCertificateAuthorityBundleVersionsSortOrderEnum Enum with underlying type: string
type ListCertificateAuthorityBundleVersionsSortOrderEnum string
Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortOrderEnum
const ( ListCertificateAuthorityBundleVersionsSortOrderAsc ListCertificateAuthorityBundleVersionsSortOrderEnum = "ASC" ListCertificateAuthorityBundleVersionsSortOrderDesc ListCertificateAuthorityBundleVersionsSortOrderEnum = "DESC" )
func GetListCertificateAuthorityBundleVersionsSortOrderEnumValues() []ListCertificateAuthorityBundleVersionsSortOrderEnum
GetListCertificateAuthorityBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortOrderEnum
ListCertificateBundleVersionsRequest wrapper for the ListCertificateBundleVersions operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/56.1.0/certificates/ListCertificateBundleVersions.go.html to see an example of how to use ListCertificateBundleVersionsRequest.
type ListCertificateBundleVersionsRequest struct { // The OCID of the certificate. CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The field to sort by. You can specify only one sort order. The default // order for `VERSION_NUMBER` is ascending. SortBy ListCertificateBundleVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder ListCertificateBundleVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" 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 }
func (request ListCertificateBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCertificateBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCertificateBundleVersionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCertificateBundleVersionsRequest) String() string
ListCertificateBundleVersionsResponse wrapper for the ListCertificateBundleVersions operation
type ListCertificateBundleVersionsResponse struct { // The underlying http response RawResponse *http.Response // The CertificateBundleVersionCollection instance CertificateBundleVersionCollection `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"` }
func (response ListCertificateBundleVersionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCertificateBundleVersionsResponse) String() string
ListCertificateBundleVersionsSortByEnum Enum with underlying type: string
type ListCertificateBundleVersionsSortByEnum string
Set of constants representing the allowable values for ListCertificateBundleVersionsSortByEnum
const ( ListCertificateBundleVersionsSortByVersionNumber ListCertificateBundleVersionsSortByEnum = "VERSION_NUMBER" )
func GetListCertificateBundleVersionsSortByEnumValues() []ListCertificateBundleVersionsSortByEnum
GetListCertificateBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortByEnum
ListCertificateBundleVersionsSortOrderEnum Enum with underlying type: string
type ListCertificateBundleVersionsSortOrderEnum string
Set of constants representing the allowable values for ListCertificateBundleVersionsSortOrderEnum
const ( ListCertificateBundleVersionsSortOrderAsc ListCertificateBundleVersionsSortOrderEnum = "ASC" ListCertificateBundleVersionsSortOrderDesc ListCertificateBundleVersionsSortOrderEnum = "DESC" )
func GetListCertificateBundleVersionsSortOrderEnumValues() []ListCertificateBundleVersionsSortOrderEnum
GetListCertificateBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortOrderEnum
RevocationReasonEnum Enum with underlying type: string
type RevocationReasonEnum string
Set of constants representing the allowable values for RevocationReasonEnum
const ( RevocationReasonUnspecified RevocationReasonEnum = "UNSPECIFIED" RevocationReasonKeyCompromise RevocationReasonEnum = "KEY_COMPROMISE" RevocationReasonCaCompromise RevocationReasonEnum = "CA_COMPROMISE" RevocationReasonAffiliationChanged RevocationReasonEnum = "AFFILIATION_CHANGED" RevocationReasonSuperseded RevocationReasonEnum = "SUPERSEDED" RevocationReasonCessationOfOperation RevocationReasonEnum = "CESSATION_OF_OPERATION" RevocationReasonPrivilegeWithdrawn RevocationReasonEnum = "PRIVILEGE_WITHDRAWN" RevocationReasonAaCompromise RevocationReasonEnum = "AA_COMPROMISE" )
func GetRevocationReasonEnumValues() []RevocationReasonEnum
GetRevocationReasonEnumValues Enumerates the set of values for RevocationReasonEnum
RevocationStatus The current revocation status of the certificate or certificate authority (CA).
type RevocationStatus struct { // The time when the certificate or CA was revoked. TimeRevoked *common.SDKTime `mandatory:"true" json:"timeRevoked"` // The reason that the certificate or CA was revoked. RevocationReason RevocationReasonEnum `mandatory:"true" json:"revocationReason"` }
func (m RevocationStatus) String() string
Validity An object that describes a period of time during which an entity is valid.
type Validity struct { // The date on which the certificate validity period begins, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfValidityNotBefore *common.SDKTime `mandatory:"true" json:"timeOfValidityNotBefore"` // The date on which the certificate validity period ends, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfValidityNotAfter *common.SDKTime `mandatory:"true" json:"timeOfValidityNotAfter"` }
func (m Validity) String() string
VersionStageEnum Enum with underlying type: string
type VersionStageEnum string
Set of constants representing the allowable values for VersionStageEnum
const ( VersionStageCurrent VersionStageEnum = "CURRENT" VersionStagePending VersionStageEnum = "PENDING" VersionStageLatest VersionStageEnum = "LATEST" VersionStagePrevious VersionStageEnum = "PREVIOUS" VersionStageDeprecated VersionStageEnum = "DEPRECATED" VersionStageFailed VersionStageEnum = "FAILED" )
func GetVersionStageEnumValues() []VersionStageEnum
GetVersionStageEnumValues Enumerates the set of values for VersionStageEnum