Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version. You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com). You can create a maximum of 1000 versions of a traffic policy. If you reach the limit and need to create another version, you'll need to start a new traffic policy.
For .NET Core and PCL this operation is only available in asynchronous form. Please refer to CreateTrafficPolicyVersionAsync.
public abstract CreateTrafficPolicyVersionResponse CreateTrafficPolicyVersion( CreateTrafficPolicyVersionRequest request )
Container for the necessary parameters to execute the CreateTrafficPolicyVersion service method.
|ConcurrentModificationException||Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request.|
|InvalidInputException||The input is not valid.|
|InvalidTrafficPolicyDocumentException||The format of the traffic policy document that you specified in the Document element is invalid.|
|NoSuchTrafficPolicyException||No traffic policy exists with the specified ID.|
|TooManyTrafficPolicyVersionsForCurrentPolicyException||This traffic policy version can't be created because you've reached the limit of 1000 on the number of versions that you can create for the current traffic policy. To create more traffic policy versions, you can use GetTrafficPolicy to get the traffic policy document for a specified traffic policy version, and then use CreateTrafficPolicy to create a new traffic policy using the traffic policy document.|
Supported in: 4.5, 4.0, 3.5
Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms