public class ModifyInstanceMetadataOptionsRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
httpEndpoint
Specifies whether to enable the access channel for instance metadata.
|
Integer |
httpPutResponseHopLimit
> This parameter is in invitational preview and is unavailable to general users.
|
String |
httpTokens
Specifies whether to forcefully use the security-enhanced mode (IMDSv2) to access instance metadata.
|
String |
instanceId
The ID of the instance.
|
String |
instanceMetadataTags |
Long |
ownerId |
String |
regionId
The region ID of the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
ModifyInstanceMetadataOptionsRequest() |
@NameInMap(value="HttpEndpoint") public String httpEndpoint
Specifies whether to enable the access channel for instance metadata. Valid values:
* enabled: enables the access channel for instance metadata.
* disabled: disables the access channel for instance metadata.
Default value: enabled.
> For more information about instance metadata, see [Overview of ECS instance metadata](~~49122~~).
@NameInMap(value="HttpPutResponseHopLimit") public Integer httpPutResponseHopLimit
> This parameter is in invitational preview and is unavailable to general users.
@NameInMap(value="HttpTokens") public String httpTokens
Specifies whether to forcefully use the security-enhanced mode (IMDSv2) to access instance metadata. Valid values:
* optional: does not forcefully use the security-enhanced mode (IMDSv2).
* required: forcefully uses the security-enhanced mode (IMDSv2). After you set this parameter to required, you cannot access instance metadata in normal mode.
Default value: optional.
> For more information about the modes of accessing instance metadata, see [Access mode of instance metadata](~~150575~~).
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="InstanceMetadataTags") public String instanceMetadataTags
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static ModifyInstanceMetadataOptionsRequest build(Map<String,?> map) throws Exception
Exception
public ModifyInstanceMetadataOptionsRequest setHttpEndpoint(String httpEndpoint)
public String getHttpEndpoint()
public ModifyInstanceMetadataOptionsRequest setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
public Integer getHttpPutResponseHopLimit()
public ModifyInstanceMetadataOptionsRequest setHttpTokens(String httpTokens)
public String getHttpTokens()
public ModifyInstanceMetadataOptionsRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyInstanceMetadataOptionsRequest setInstanceMetadataTags(String instanceMetadataTags)
public String getInstanceMetadataTags()
public ModifyInstanceMetadataOptionsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyInstanceMetadataOptionsRequest setRegionId(String regionId)
public String getRegionId()
public ModifyInstanceMetadataOptionsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyInstanceMetadataOptionsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2023. All rights reserved.