Skip to main content

GetHTTPSConfig

Returns the HTTPS configuration for the specified bucket.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const GetBucketHTTPSConfigRequest =
cloudApi.storage.bucket_service.GetBucketHTTPSConfigRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.BucketServiceClient);

const result = await client.getHttpsConfig(
GetBucketHTTPSConfigRequest.fromPartial({
name: "name",
})
);
console.log(result);
})();

GetBucketHTTPSConfigRequest

name : string

Name of the bucket to return the HTTPS configuration for.

HTTPSConfig

A resource for HTTPS configuration of a bucket.

SourceType

A resource for type of TLS certificate source.

  • SOURCE_TYPE_UNSPECIFIED

    A resource for type of TLS certificate source.

  • SOURCE_TYPE_SELF_MANAGED

    Your certificate, uploaded directly.

  • SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER

    Certificate managed by Certificate Manager.

name : string

Name of the bucket.

sourceType : SourceType

Type of TLS certificate source.

issuer : google.protobuf.StringValue

Issuer of the TLS certificate.

subject : google.protobuf.StringValue

Subject of the TLS certificate.

dnsNames : string

List of DNS names of the TLS certificate (Subject Alternative Name field).

notBefore : google.protobuf.Timestamp

Start of the TLS certificate validity period (Not Before field).

notAfter : google.protobuf.Timestamp

End of the TLS certificate validity period (Not After field)

certificateId : string

ID of the TLS certificate in Certificate Manager.

To get information about the certificate from Certificate Manager, make a yandex.cloud.certificatemanager.v1.CertificateService.Get request.