VSphereAutomation::Appliance::NetworkingDnsHostnameApi
All URIs are relative to https://<vcenter>/rest
Method | HTTP request | Description |
---|---|---|
get | GET /appliance/networking/dns/hostname | Get the Fully Qualified Doman Name. |
set | PUT /appliance/networking/dns/hostname | Set the Fully Qualified Domain Name. |
test | POST /appliance/networking/dns/hostname/test | Test the Fully Qualified Domain Name. |
get
ApplianceNetworkingDnsHostnameResult get
Get the Fully Qualified Doman Name.
Example
# load the gem
require 'vsphere-automation-appliance'
# setup authorization
VSphereAutomation::Configuration.new.tap do |config|
# Configure API key authorization: api_key
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
end
api_instance = VSphereAutomation::Appliance::NetworkingDnsHostnameApi.new
begin
#Get the Fully Qualified Doman Name.
result = api_instance.get
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling NetworkingDnsHostnameApi->get: #{e}"
end
Parameters
This endpoint does not need any parameter.
Return type
ApplianceNetworkingDnsHostnameResult
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
set
set(request_body)
Set the Fully Qualified Domain Name.
Example
# load the gem
require 'vsphere-automation-appliance'
# setup authorization
VSphereAutomation::Configuration.new.tap do |config|
# Configure API key authorization: api_key
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
end
api_instance = VSphereAutomation::Appliance::NetworkingDnsHostnameApi.new
request_body = Appliance::ApplianceNetworkingDnsHostnameSet.new # ApplianceNetworkingDnsHostnameSet |
begin
#Set the Fully Qualified Domain Name.
api_instance.set(request_body)
rescue VSphereAutomation::ApiError => e
puts "Exception when calling NetworkingDnsHostnameApi->set: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
request_body | ApplianceNetworkingDnsHostnameSet |
Return type
nil (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
test
ApplianceNetworkingDnsHostnameTestResult test(request_body)
Test the Fully Qualified Domain Name.
Example
# load the gem
require 'vsphere-automation-appliance'
# setup authorization
VSphereAutomation::Configuration.new.tap do |config|
# Configure API key authorization: api_key
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
end
api_instance = VSphereAutomation::Appliance::NetworkingDnsHostnameApi.new
request_body = Appliance::ApplianceNetworkingDnsHostnameTest.new # ApplianceNetworkingDnsHostnameTest |
begin
#Test the Fully Qualified Domain Name.
result = api_instance.test(request_body)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling NetworkingDnsHostnameApi->test: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
request_body | ApplianceNetworkingDnsHostnameTest |
Return type
ApplianceNetworkingDnsHostnameTestResult
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json