メニュー

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

REST API: Public Keys Resource

リソースURI

/Credentials/PublicKeys/

プロパティ

各PublicKeyには下記のプロパティーがあります:

Names in PHP format
sid
sid<CR> Not PII

The unique string that that we created to identify the PublicKey resource.

accountSid
sid<AC> Not PII

The SID of the Account that created the Credential that the PublicKey resource belongs to.

friendlyName
文字列 PII MTL: 0 DAYS

The string that you assigned to describe the resource.

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

url
url Not PII

このリソースのURIで、右記のURLに対する相対パスです https://accounts.twilio.com

全Public Key Credentials(公開鍵資格情報)の一覧です

GET /Credentials/PublicKeys

戻り値:

全Public Key(公開鍵)の一覧です。

Credentialsを取得する

GET /Credentials/PublicKeys/{Sid}

パラメーター

Names in PHP format
sid
必須
GET sid<CR> Not PII

The Twilio-provided string that uniquely identifies the PublicKey resource to fetch.

戻り値:

特定の1つの資格情報です。

Credentialsを作成する

POST  /Credentials/PublicKeys

パラメーター

Names in PHP format
publicKey
必須
post pem_public_key PII MTL: 0 DAYS

A URL encoded representation of the public key. For example, -----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----

friendlyName
オプション
post 文字列 PII MTL: 0 DAYS

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

accountSid
オプション
post sid<AC> Not PII

The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request

戻り値:

作成されたCredentialsのインスタンスです。

Credentialsを更新する

POST  /Credentials/PublicKeys/{Sid}

パラメーター

Names in PHP format
sid
必須
post sid<CR> Not PII

The Twilio-provided string that uniquely identifies the PublicKey resource to update.

friendlyName
オプション
post 文字列 PII MTL: 0 DAYS

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

戻り値:

更新された資格情報のインスタンスです。

Credentialsを削除する

DELETE  /Credentials/PublicKeys/{Sid}

パラメーター

Names in PHP format
sid
必須
削除する sid<CR> Not PII

The Twilio-provided string that uniquely identifies the PublicKey resource to delete.

戻り値:

レスポンスは空です。

Rate this page:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.