GetHTTPSConfig
Returns the HTTPS configuration for the specified bucket.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.storage.v1.bucket_service_pb2_grpc import BucketServiceStub
from yandex.cloud.storage.v1.bucket_service_pb2 import GetBucketHTTPSConfigRequest
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(BucketServiceStub)
response = service.GetHTTPSConfig(GetBucketHTTPSConfigRequest(name="name"))
print(response)
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.