ByCloud Docs
GuidesCLIAPISDK

Create certificate binding

bycloud certificates bindings create --certificate_id <certificate_id> --resource_type <resource_type> [flags]

Bind a certificate to a resource. Currently supports binding to Octavia listeners. The certificate must be in active status.

Options

--certificate_id

stringrequired

Certificate ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Body Options

--resource_id

stringrequired

The ID of the resource to bind to

--resource_type

stringrequired

The type of resource to bind the certificate to

Values: "octavia:listener"

--options

objectoptional

Binding options

Command

bycloud certificates bindings create \
--certificate_id "abc-123" \
--resource_type octavia:listener \
--resource_id "abc-123"

Output

ID 550e8400-e29b-41d4-a716-446655440000
CRN crn:sao1:certificate:binding:550e8400-e29b-41d4-a716-446655440000
CERTIFICATE_ID 550e8400-e29b-41d4-a716-446655440001
RESOURCE_TYPE octavia:listener
RESOURCE_ID 550e8400-e29b-41d4-a716-446655440002
OPTIONS
SNI false
STATUS active
ERROR_MESSAGE string
CREATED_AT 2024-01-15T10:30:00Z
UPDATED_AT 2024-01-15T10:30:00Z