Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.53 KB

vendor-container.md

File metadata and controls

56 lines (42 loc) · 1.53 KB
copyright lastupdated keywords subcollection
years
2017, 2024
2024-07-15
collection, class, API, attributes, provider
CDN

{{site.data.keyword.attribute-definition-list}}

Vendor container

{: #vendor-container}

The SoftLayer_Container_Network_CdnMarketplace_Vendor collection contains the attributes used by our Vendor APIs. {: shortdesc}

class SoftLayer_Container_Network_CdnMarketplace_Vendor

  • vendorName: The name of a current {{site.data.keyword.cloud}} CDN provider.
  • featureSummary: A brief summary of the vendor features.
  • features: A list of features that are supported by the vendor.
  • status: Indicates whether a vendor is an available option through IBM Cloud.

Display a list of the available vendors and their features, with a call to the listVendors API:

require_once __DIR__.'/vendor/autoload.php';

$apiUsername = '<Your username>' ;
$apiKey = '<Your apiKey>' ;

$client = \SoftLayer\SoapClient::getClient('SoftLayer_Network_CdnMarketplace_Vendor', null, $apiUsername, $apiKey);
try {
    $vendors = $client->listVendors();
    print_r($vendors);
} catch (\Exception $e) {
    die('Unable to retrieve list of vendors: ' . $e->getMessage());
}

{: codeblock}

The previous API call results in output similar to this:

SoftLayer_Container_Network_CdnMarketplace_Vendor Object
(
    [vendorName] => akamai
    [featureSummary] => Performance, Reliability and Scale
    [features] => Web Delivery, Content Caching, Content Purge, HTTP/HTTPS Support
    [status] => ACTIVE
)

{: codeblock}