lib/fog/azurerm/docs/traffic_manager.md in fog-azure-rm-0.1.2 vs lib/fog/azurerm/docs/traffic_manager.md in fog-azure-rm-0.2.0
- old
+ new
@@ -13,17 +13,24 @@
Next, create a connection to the Traffic Manager Service:
```ruby
azure_traffic_manager_service = Fog::TrafficManager::AzureRM.new(
- tenant_id: '<Tenantid>', # Tenant id of Azure Active Directory Application
- client_id: '<Clientid>', # Client id of Azure Active Directory Application
- client_secret: '<ClientSecret>', # Client Secret of Azure Active Directory Application
- subscription_id: '<Subscriptionid>' # Subscription id of an Azure Account
+ tenant_id: '<Tenantid>', # Tenant id of Azure Active Directory Application
+ client_id: '<Clientid>', # Client id of Azure Active Directory Application
+ client_secret: '<ClientSecret>', # Client Secret of Azure Active Directory Application
+ subscription_id: '<Subscriptionid>', # Subscription id of an Azure Account
+ :environment => '<AzureCloud/AzureChinaCloud/AzureUSGovernment/AzureGermanCloud>' # Azure cloud environment. Default is AzureCloud.
)
```
+## Check Traffic Manager Profile Existence
+
+```ruby
+azure_traffic_manager_service.traffic_manager_profiles.check_traffic_manager_profile_exists(<Resource Group Name>, <Profile Name>)
+```
+
## Create Traffic Manager Profile
Create a new Traffic Manager Profile. The parameter 'traffic_routing_method' can be 'Performance', 'Weighted' or 'Priority'.
```ruby
@@ -79,9 +86,20 @@
Get a Traffic Manager Profile object from the get method and then destroy that Traffic Manager Profile.
```ruby
profile.destroy
+```
+
+## Check Traffic Manager Endpoint Existence
+
+```ruby
+ azure_network_service.traffic_manager_end_points.check_traffic_manager_endpoint_exists(
+ <Resource Group Name>,
+ <Profile Name>,
+ <Endpoint Name>,
+ <Type(externalEndpoints)>
+ )
```
## Create Traffic Manager Endpoint
Traffic Manager Profile is pre-requisite of Traffic Manager Endpoint. Create a new Traffic Manager Endpoint. The parameter 'type' can be 'externalEndpoints, 'azureEndpoints' or 'nestedEndpoints'.